Class PortalPageRetriever
java.lang.Object
com.atlassian.jira.web.action.util.portal.PortalPageRetriever
Object used by actions to retrieve PortalPages. This class caches the results of lookups
to ensure they are quick.
- Since:
- v3.13
-
Constructor Summary
ConstructorsConstructorDescriptionPortalPageRetriever(PortalPageService portalPageService, UserHistoryManager userHistoryManager, JiraAuthenticationContext authenticationContext) PortalPageRetriever(PortalPageService portalPageService, UserHistoryManager userHistoryManager, JiraAuthenticationContext authenticationContext, Long requestedPageId) -
Method Summary
Modifier and TypeMethodDescriptionReturn the id of the PortalPage a user is currently using.Return the PortalPage a user is currently using.voidsetRequestedPageId(Long requestedPageId)
-
Constructor Details
-
PortalPageRetriever
public PortalPageRetriever(PortalPageService portalPageService, UserHistoryManager userHistoryManager, JiraAuthenticationContext authenticationContext, Long requestedPageId) -
PortalPageRetriever
public PortalPageRetriever(PortalPageService portalPageService, UserHistoryManager userHistoryManager, JiraAuthenticationContext authenticationContext)
-
-
Method Details
-
getPageId
Return the id of the PortalPage a user is currently using. It returns the id stored in this object if it exists or the id from the session if it does not. It will return null of the id could not be returned found in either.- Returns:
- the id of PortalPage the user is currently operating under.
-
getRequestedPageId
-
setRequestedPageId
-
getPortalPage
Return the PortalPage a user is currently using. This method caches the result of the first lookup and continues to return the same value. While the same value may be returned, only the first call will ever put error messages into the passed context. null may be returned if it is not possible to work user's current PortalPage.- Parameters:
ctx- the service context to execute the method- Returns:
- the user's current PortalPage or null if no such page exists.
-