Package com.atlassian.jira.onboarding
Class OnboardingServiceImpl
java.lang.Object
com.atlassian.jira.onboarding.OnboardingServiceImpl
- All Implemented Interfaces:
Startable,OnboardingService
-
Constructor Summary
ConstructorsConstructorDescriptionOnboardingServiceImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, OnboardingStore store, UserChecker userChecker, LandingPageRegistrar landingPageRegistrar) -
Method Summary
Modifier and TypeMethodDescriptionvoidMark the user as completing their first user flowGet the current sequence key for the flow that the user is completing.Checks whether the user should do an onboarding flow for the product.Get the key of the flow that the user is completing.booleanvoidsetCurrentFirstUseFlowSequence(ApplicationUser user, String sequenceKey) Assign the user as beginning a current sequence in the flowvoidstart()This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
-
Constructor Details
-
OnboardingServiceImpl
public OnboardingServiceImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, OnboardingStore store, UserChecker userChecker, LandingPageRegistrar landingPageRegistrar)
-
-
Method Details
-
hasCompletedFirstUseFlow
- Specified by:
hasCompletedFirstUseFlowin interfaceOnboardingService- Parameters:
user- to check against- Returns:
- whether a user has already completed a first user flow.
-
completeFirstUseFlow
Description copied from interface:OnboardingServiceMark the user as completing their first user flow- Specified by:
completeFirstUseFlowin interfaceOnboardingService- Parameters:
user- that the first flow has been completed for
-
setCurrentFirstUseFlowSequence
public void setCurrentFirstUseFlowSequence(@Nonnull ApplicationUser user, @Nonnull String sequenceKey) Description copied from interface:OnboardingServiceAssign the user as beginning a current sequence in the flow- Specified by:
setCurrentFirstUseFlowSequencein interfaceOnboardingService- Parameters:
user- that is completing the flowsequenceKey- of the sequence being started
-
getCurrentFirstUseFlowSequence
Description copied from interface:OnboardingServiceGet the current sequence key for the flow that the user is completing.- Specified by:
getCurrentFirstUseFlowSequencein interfaceOnboardingService- Parameters:
user- that is completing flow- Returns:
- sequence key of flow
-
getFirstUseFlow
Description copied from interface:OnboardingServiceChecks whether the user should do an onboarding flow for the product. Returns the appropriate onboarding flow to put the user through (if any). Additionally stores a resolved user property when the onboarding was evaluated and skipped for the current user- Specified by:
getFirstUseFlowin interfaceOnboardingService- Returns:
- a
FirstUseFlowif the user is eligible for one (and hasn't done one before), null otherwise.
-
getStartedFirstUseFlowKey
Description copied from interface:OnboardingServiceGet the key of the flow that the user is completing.- Specified by:
getStartedFirstUseFlowKeyin interfaceOnboardingService- Parameters:
user- to check against- Returns:
- key or null if not doing a flow
-
start
public void start()Description copied from interface:StartableThis method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
-