com.atlassian.greenhopper.web.rapid.welcome
Class WelcomeHelper

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.welcome.WelcomeHelper

@Service
public class WelcomeHelper
extends java.lang.Object

Responsible for all interactions with the welcome mat.

Author:
ahennecke

Constructor Summary
WelcomeHelper()
           
 
Method Summary
 WelcomeModel buildModel(com.atlassian.crowd.embedded.api.User user)
           
 ServiceOutcome<WelcomeCreateResponse> createProject(com.atlassian.crowd.embedded.api.User user, WelcomeCreateProjectRequest createProjectRequest)
          Take the data entered by the user during the wizard steps and create stuff.
 com.atlassian.fugue.Option<SampleProjectKeyNamePair> getNextSampleDataProjectName(java.lang.String presetName)
           
 void handleAnalyticsOptInRequest(AnalyticsOptInRequest request)
          Either enables analytics or marks the user as having dismissed the message.
 ServiceOutcome<java.lang.Void> validateProject(com.atlassian.crowd.embedded.api.User user, java.lang.String name, java.lang.String key, java.lang.String lead)
          Check if the project data the user entered is valid.
 ServiceOutcome<java.lang.Void> validateProject(com.atlassian.crowd.embedded.api.User user, java.lang.String name, java.lang.String key, java.lang.String lead, java.lang.String workflowOption)
          Check if the project data the user entered is valid.
 ServiceOutcome<java.lang.Void> validateViewFind(com.atlassian.crowd.embedded.api.User user, java.lang.String idString)
          Check if the view searched for by the user was valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WelcomeHelper

public WelcomeHelper()
Method Detail

buildModel

public WelcomeModel buildModel(com.atlassian.crowd.embedded.api.User user)
Returns:
Model with data needed by the welcome mat wizard

validateProject

public ServiceOutcome<java.lang.Void> validateProject(com.atlassian.crowd.embedded.api.User user,
                                                      java.lang.String name,
                                                      java.lang.String key,
                                                      java.lang.String lead,
                                                      java.lang.String workflowOption)
Check if the project data the user entered is valid.


validateProject

public ServiceOutcome<java.lang.Void> validateProject(com.atlassian.crowd.embedded.api.User user,
                                                      java.lang.String name,
                                                      java.lang.String key,
                                                      java.lang.String lead)
Check if the project data the user entered is valid.


validateViewFind

public ServiceOutcome<java.lang.Void> validateViewFind(com.atlassian.crowd.embedded.api.User user,
                                                       java.lang.String idString)
Check if the view searched for by the user was valid


createProject

public ServiceOutcome<WelcomeCreateResponse> createProject(com.atlassian.crowd.embedded.api.User user,
                                                           WelcomeCreateProjectRequest createProjectRequest)
Take the data entered by the user during the wizard steps and create stuff. Trying to be transactional here - if something goes wrong with the different creations, we're trying to clean up the mess we made as much as possible.


getNextSampleDataProjectName

public com.atlassian.fugue.Option<SampleProjectKeyNamePair> getNextSampleDataProjectName(java.lang.String presetName)

handleAnalyticsOptInRequest

public void handleAnalyticsOptInRequest(AnalyticsOptInRequest request)
Either enables analytics or marks the user as having dismissed the message.



Copyright © 2007-2013 Atlassian. All Rights Reserved.