public class OnboardingServiceImpl extends Object implements OnboardingService, Startable
| Constructor and Description |
|---|
OnboardingServiceImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
OnboardingStore store,
UserChecker userChecker,
LandingPageRegistrar landingPageRegistrar) |
| Modifier and Type | Method and Description |
|---|---|
void |
completeFirstUseFlow(ApplicationUser user)
Mark the user as completing their first user flow
|
String |
getCurrentFirstUseFlowSequence(ApplicationUser user)
Get the current sequence key for the flow that the user is completing.
|
FirstUseFlow |
getFirstUseFlow(ApplicationUser user)
Checks whether the user should do an onboarding flow for the product.
|
String |
getStartedFirstUseFlowKey(ApplicationUser user)
Get the key of the flow that the user is completing.
|
boolean |
hasCompletedFirstUseFlow(ApplicationUser user) |
void |
setCurrentFirstUseFlowSequence(ApplicationUser user,
String sequenceKey)
Assign the user as beginning a current sequence in the flow
|
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
public OnboardingServiceImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
OnboardingStore store,
UserChecker userChecker,
LandingPageRegistrar landingPageRegistrar)
public boolean hasCompletedFirstUseFlow(@Nonnull ApplicationUser user)
hasCompletedFirstUseFlow in interface OnboardingServiceuser - to check againstpublic void completeFirstUseFlow(@Nonnull ApplicationUser user)
OnboardingServicecompleteFirstUseFlow in interface OnboardingServiceuser - that the first flow has been completed forpublic void setCurrentFirstUseFlowSequence(@Nonnull ApplicationUser user, @Nonnull String sequenceKey)
OnboardingServicesetCurrentFirstUseFlowSequence in interface OnboardingServiceuser - that is completing the flowsequenceKey - of the sequence being started@Nullable public String getCurrentFirstUseFlowSequence(@Nonnull ApplicationUser user)
OnboardingServicegetCurrentFirstUseFlowSequence in interface OnboardingServiceuser - that is completing flow@Nullable public FirstUseFlow getFirstUseFlow(@Nullable ApplicationUser user)
OnboardingServicegetFirstUseFlow in interface OnboardingServiceFirstUseFlow if the user is eligible for one (and hasn't done one before), null otherwise.@Nullable public String getStartedFirstUseFlowKey(@Nonnull ApplicationUser user)
OnboardingServicegetStartedFirstUseFlowKey in interface OnboardingServiceuser - to check againstCopyright © 2002-2019 Atlassian. All Rights Reserved.