Class LandingPageRedirectManager
java.lang.Object
com.atlassian.jira.web.landingpage.LandingPageRedirectManager
- All Implemented Interfaces:
LandingPageRegistrar,LandingPageRedirector
@ThreadSafe
@ParametersAreNonnullByDefault
public class LandingPageRedirectManager
extends Object
implements LandingPageRegistrar, LandingPageRedirector
Allows to add redirects for user's landing page (location where users are taken after login).
Currently landing page redirects work on: - Dashboard - default landing page for users in Server mode - MyJIRAHome - default landing page for users in Cloud - Jira Setup Completed - when user finished setting up JIRA.
- Since:
- v7.0
-
Field Summary
Fields inherited from interface com.atlassian.jira.web.landingpage.LandingPageRedirector
DARK_FEATURE_DISABLE_LANDING_PAGE_REDIRECT_FLAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionredirectUrl(ApplicationUser applicationUser) Returns the landing page URL to which the given user should be redirected.voidregisterRedirect(PageRedirect redirect, int priority) Registers the given redirection.booleanunregisterRedirect(PageRedirect redirectToRemove) Unregisters the given redirection.
-
Constructor Details
-
LandingPageRedirectManager
-
-
Method Details
-
registerRedirect
Description copied from interface:LandingPageRegistrarRegisters the given redirection.- Specified by:
registerRedirectin interfaceLandingPageRegistrar- Parameters:
redirect- the redirection to registerpriority- the priority of the redirection; the lower the value, the higher the priority
-
unregisterRedirect
Description copied from interface:LandingPageRegistrarUnregisters the given redirection.- Specified by:
unregisterRedirectin interfaceLandingPageRegistrar- Parameters:
redirectToRemove- the redirection to unregister- Returns:
trueif it was previously registered
-
redirectUrl
Description copied from interface:LandingPageRedirectorReturns the landing page URL to which the given user should be redirected.- Specified by:
redirectUrlin interfaceLandingPageRedirector- Returns:
Optional.empty()for no redirection
-