public class MyJiraHomeLinkerImpl extends Object implements MyJiraHomeLinker
MyJiraHomeLinker.DEFAULT_HOME_NOT_ANON
is returned for logged in users, or MyJiraHomeLinker.DEFAULT_HOME_OD_ANON
for anons.DEFAULT_HOME_NOT_ANON, DEFAULT_HOME_OD_ANON
Constructor and Description |
---|
MyJiraHomeLinkerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
MyJiraHomePreference myJiraHomePreference,
ProjectService projectService) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultUserHome()
Returns the default My JIRA Home relative URL for logged in users.
|
String |
getHomeLink(ApplicationUser user)
Returns the My JIRA Home as a link for the given user.
|
public MyJiraHomeLinkerImpl(@Nonnull com.atlassian.plugin.PluginAccessor pluginAccessor, @Nonnull MyJiraHomePreference myJiraHomePreference, @Nonnull ProjectService projectService)
@Nonnull public String getHomeLink(@Nullable ApplicationUser user)
MyJiraHomeLinker
getHomeLink
in interface MyJiraHomeLinker
user
- the user for which the home link is requestedMyJiraHomeLinker.DEFAULT_HOME_OD_ANON
if anonymous
or MyJiraHomeLinker.DEFAULT_HOME_NOT_ANON
if logged in if none is defined or there were errors while loading.@Nonnull public String getDefaultUserHome()
MyJiraHomeLinker
getDefaultUserHome
in interface MyJiraHomeLinker
Copyright © 2002-2024 Atlassian. All Rights Reserved.