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

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

@Service
public class WelcomeHelper
extends AbstractResultBuilder

Responsible for all interactions with the welcome mat.

Author:
ahennecke

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.greenhopper.global.AbstractResultBuilder
AbstractResultBuilder.SuccessBuilder<T>
 
Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
WelcomeHelper()
           
 
Method Summary
 ResultEntry<WelcomeModel> buildModel()
           
 ResultEntry<WelcomeCreateResponse> createProject(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.
 ResultEntry<java.lang.Boolean> validateProject(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.
 ResultEntry<java.lang.Boolean> validateViewFind(java.lang.String idString)
          Check if the view searched for by the user was valid
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractResultBuilder
buildCombinedResult, buildErrorOnlyResult, buildResult, buildResult
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn
 
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 ResultEntry<WelcomeModel> buildModel()
Returns:
Model with data needed by the welcome mat wizard

validateProject

public ResultEntry<java.lang.Boolean> validateProject(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.


validateViewFind

public ResultEntry<java.lang.Boolean> validateViewFind(java.lang.String idString)
Check if the view searched for by the user was valid


createProject

public ResultEntry<WelcomeCreateResponse> createProject(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-2012 Atlassian. All Rights Reserved.