@ThreadSafe @Internal @ParametersAreNonnullByDefault public class LandingPageRedirectManager extends Object
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.
Modifier and Type | Field and Description |
---|---|
static String |
DARK_FEATURE_DISABLE_LANDING_PAGE_REDIRECT_FLAG |
Constructor and Description |
---|
LandingPageRedirectManager(FeatureManager featureManager) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
redirectUrl(ApplicationUser applicationUser)
Determines the redirect URL for landing page.
|
void |
registerRedirect(PageRedirect redirect,
int priority)
Adds page redirection of landing page to a specified location.
|
boolean |
unregisterRedirect(PageRedirect redirectToRemove)
Removes redirection to the given url.
|
public static final String DARK_FEATURE_DISABLE_LANDING_PAGE_REDIRECT_FLAG
public LandingPageRedirectManager(FeatureManager featureManager)
public void registerRedirect(PageRedirect redirect, int priority)
redirect
- to add.priority
- of the redirect; the lower the value the higher the priority. Redirects with higher priority
will take a precedence.public boolean unregisterRedirect(PageRedirect redirectToRemove)
redirectToRemove
- which should be removedpublic Optional<String> redirectUrl(@Nullable ApplicationUser applicationUser)
Optional.empty()
if there are no active
redirects.Copyright © 2002-2017 Atlassian. All Rights Reserved.