public interface PortalPageManager extends SharedEntityAccessor<PortalPage>
SharedEntityAccessor.Factory, SharedEntityAccessor.RetrievalDescriptor| Modifier and Type | Method and Description |
|---|---|
PortalPage |
create(PortalPage portalPage)
Creates the specified PortalPage in the database
|
PortalPage |
createBasedOnClone(ApplicationUser pageOwner,
PortalPage portalPage,
PortalPage clonePortalPage)
Creates a PortalPage in the database by cloning its Portlet content from the specified clonePortalPage
|
PortalPage |
createBasedOnClone(com.atlassian.crowd.embedded.api.User pageOwner,
PortalPage portalPage,
PortalPage clonePortalPage)
Deprecated.
Use
createBasedOnClone(com.atlassian.jira.user.ApplicationUser, PortalPage, PortalPage) instead. Since v6.0.
Creates a PortalPage in the database by cloning its Portlet content from the specified clonePortalPage |
void |
delete(Long portalPageId)
Deletes the PortalPage with the specified portalPageId
|
EnclosedIterable<PortalPage> |
getAll()
Get all PortalPages.
|
Collection<PortalPage> |
getAllOwnedPortalPages(ApplicationUser owner)
Returns a Collection of PortalPage objects that are owned by the specified User
|
Collection<PortalPage> |
getAllOwnedPortalPages(com.atlassian.crowd.embedded.api.User owner)
Deprecated.
Use
getAllOwnedPortalPages(ApplicationUser) instead. Since v6.0.
Returns a Collection of PortalPage objects that are owned by the specified User |
PortalPage |
getPortalPage(ApplicationUser user,
Long portalPageId)
Returns the PortalPage with the specified portalPageId, IF the user is allowed to see it.
|
PortalPage |
getPortalPage(com.atlassian.crowd.embedded.api.User user,
Long portalPageId)
Deprecated.
Use
getPortalPage(ApplicationUser, Long) instead. Since v6.0.
Returns the PortalPage with the specified portalPageId, IF the user is allowed to see it. |
PortalPage |
getPortalPageById(Long portalPageId)
Gets a PortalPage by id regardless of owner
|
PortalPage |
getPortalPageByName(ApplicationUser owner,
String pageName)
Returns a PortalPage by searching for it by owner and pageName.
|
PortalPage |
getPortalPageByName(com.atlassian.crowd.embedded.api.User owner,
String pageName)
Deprecated.
Use
getPortalPageByName(com.atlassian.jira.user.ApplicationUser, String) instead. Since v6.0.
Returns a PortalPage by searching for it by owner and pageName. |
List<List<PortletConfiguration>> |
getPortletConfigurations(Long portalPageId)
Returns a sorted immutable list of lists of portletconfigurations for a particular portal page.
|
PortalPage |
getSystemDefaultPortalPage()
Returns the system default PortalPage.
|
void |
saveLegacyPortletConfiguration(PortletConfiguration portletConfiguration)
This can be called to save a
PortletConfiguration object
inside a PortalPage object to the underlying database store. |
SharedEntitySearchResult<PortalPage> |
search(SharedEntitySearchParameters searchParameters,
ApplicationUser user,
int pagePosition,
int pageWidth)
Search for the PortalPages that match the passed SearchParameters.
|
SharedEntitySearchResult<PortalPage> |
search(SharedEntitySearchParameters searchParameters,
com.atlassian.crowd.embedded.api.User user,
int pagePosition,
int pageWidth)
Deprecated.
Use
search(com.atlassian.jira.sharing.search.SharedEntitySearchParameters, com.atlassian.jira.user.ApplicationUser, int, int) instead. Since v6.0.
Search for the PortalPages that match the passed SearchParameters. The result can be paged so that a subset of the results can be returned. |
PortalPage |
update(PortalPage portalPage)
Updates the specified PortalPage in the database
|
adjustFavouriteCount, get, get, getAllIndexableSharedEntities, getSharedEntity, getSharedEntity, getType, hasPermissionToUsePortalPage getPortalPage(ApplicationUser user, Long portalPageId)
user - the User in playportalPageId - the id of the PortalPage to returnPortalPage getPortalPage(com.atlassian.crowd.embedded.api.User user, Long portalPageId)
getPortalPage(ApplicationUser, Long) instead. Since v6.0.
Returns the PortalPage with the specified portalPageId, IF the user is allowed to see it.user - the User in playportalPageId - the id of the PortalPage to returnCollection<PortalPage> getAllOwnedPortalPages(ApplicationUser owner)
owner - the User who owns the PortalPage'sCollection<PortalPage> getAllOwnedPortalPages(com.atlassian.crowd.embedded.api.User owner)
getAllOwnedPortalPages(ApplicationUser) instead. Since v6.0.
Returns a Collection of PortalPage objects that are owned by the specified Userowner - the User who owns the PortalPage'sEnclosedIterable<PortalPage> getAll()
getAll in interface SharedEntityAccessor<PortalPage>EnclosedIterable of PortalPagesPortalPage getPortalPageById(Long portalPageId)
portalPageId - the id of the PortalPage to retrievePortalPage getPortalPageByName(ApplicationUser owner, String pageName)
owner - the owner in playpageName - the name of the PortalPagePortalPage getPortalPageByName(com.atlassian.crowd.embedded.api.User owner, String pageName)
getPortalPageByName(com.atlassian.jira.user.ApplicationUser, String) instead. Since v6.0.
Returns a PortalPage by searching for it by owner and pageName.owner - the owner in playpageName - the name of the PortalPagePortalPage getSystemDefaultPortalPage()
PortalPage create(PortalPage portalPage)
portalPage - the PortalPage to createPortalPage createBasedOnClone(ApplicationUser pageOwner, PortalPage portalPage, PortalPage clonePortalPage)
pageOwner - the User who will own the cloned portal pageportalPage - the PortalPage to createclonePortalPage - the PortalPage to clone Portlet content fromPortalPage createBasedOnClone(com.atlassian.crowd.embedded.api.User pageOwner, PortalPage portalPage, PortalPage clonePortalPage)
createBasedOnClone(com.atlassian.jira.user.ApplicationUser, PortalPage, PortalPage) instead. Since v6.0.
Creates a PortalPage in the database by cloning its Portlet content from the specified clonePortalPagepageOwner - the User who will own the cloned portal pageportalPage - the PortalPage to createclonePortalPage - the PortalPage to clone Portlet content fromPortalPage update(PortalPage portalPage)
portalPage - the PortalPage to updatevoid delete(Long portalPageId)
portalPageId - the id of the PortalPage to deletevoid saveLegacyPortletConfiguration(PortletConfiguration portletConfiguration)
PortletConfiguration object
inside a PortalPage object to the underlying database store.portletConfiguration - The portletConfiguration to save.SharedEntitySearchResult<PortalPage> search(SharedEntitySearchParameters searchParameters, ApplicationUser user, int pagePosition, int pageWidth)
searchParameters - the SearchParameters to query.user - the user performing the search.pagePosition - the page to return.pageWidth - the number of results per page.SharedEntitySearchResult<PortalPage> search(SharedEntitySearchParameters searchParameters, com.atlassian.crowd.embedded.api.User user, int pagePosition, int pageWidth)
search(com.atlassian.jira.sharing.search.SharedEntitySearchParameters, com.atlassian.jira.user.ApplicationUser, int, int) instead. Since v6.0.
Search for the PortalPages that match the passed SearchParameters. The result can be paged so that a subset of the results can be returned.searchParameters - the SearchParameters to query.user - the user performing the search.pagePosition - the page to return.pageWidth - the number of results per page.List<List<PortletConfiguration>> getPortletConfigurations(Long portalPageId)
portalPageId - The portal page id to fetch portlet configs forCopyright © 2002-2015 Atlassian. All Rights Reserved.