com.atlassian.jira.portal
Interface PortalPageStore

All Known Implementing Classes:
CachingPortalPageStore, OfBizPortalPageStore

public interface PortalPageStore

This is the store for PortalPage objects

Since:
v3.13

Method Summary
 PortalPage adjustFavouriteCount(SharedEntity portalPage, int incrementValue)
          Updates the favourite count of the PortalPage in the database.
 PortalPage create(PortalPage portalPage)
          Creates a PortalPage in the database
 void delete(Long portalPageId)
          Deletes the PortalPage with the specified portalPageId
 CloseableIterable get(SharedEntityAccessor.RetrievalDescriptor descriptor)
          Get a CloseableIterable of PortalPages for the specified List of ids.
 CloseableIterable getAll()
          Get a CloseableIterable of all PortalPages in the database.
 Collection getAllOwnedPortalPages(User owner)
          Gets all the PortalPage's owned by the specified User
 PortalPage getPortalPage(Long portalPageId)
          Gets the PortalPage with the specified portalPageId
 PortalPage getPortalPageByOwnerAndName(User owner, String portalPageName)
          Gets the specified PortalPage that is owned by the User and has the specified portalPageName
 PortalPage getSystemDefaultPortalPage()
          Goes to the database and fetches the system default dashboard configuration.
 PortalPage update(PortalPage portalPage)
          Updates the PortalPage in the database.
 

Method Detail

getSystemDefaultPortalPage

PortalPage getSystemDefaultPortalPage()
Goes to the database and fetches the system default dashboard configuration.

Returns:
the system default portal page.

get

CloseableIterable get(SharedEntityAccessor.RetrievalDescriptor descriptor)
Get a CloseableIterable of PortalPages for the specified List of ids.

Make sure any CloseableIterator constructed has its close method called after iterating.

Parameters:
descriptor - retrieval descriptor
Returns:
CloseableIterable that contains reference to PortalPages with the specified ids.

getAll

CloseableIterable getAll()
Get a CloseableIterable of all PortalPages in the database.

Make sure any CloseableIterator constructed has its close method called after iterating.

Returns:
CloseableIterable that contains reference to all PortalPages.

getAllOwnedPortalPages

Collection getAllOwnedPortalPages(User owner)
Gets all the PortalPage's owned by the specified User

Parameters:
owner - the user who is the owner of the PortalPage's
Returns:
a Collection of PortalPage objects owner by the User

getPortalPageByOwnerAndName

PortalPage getPortalPageByOwnerAndName(User owner,
                                       String portalPageName)
Gets the specified PortalPage that is owned by the User and has the specified portalPageName

Parameters:
owner - the User how is the owner of the PortalPage
portalPageName - the name of the PortalPage
Returns:
a PortalPage object or null if it cant be found

getPortalPage

PortalPage getPortalPage(Long portalPageId)
Gets the PortalPage with the specified portalPageId

Parameters:
portalPageId - the id of the PortalPage to locate
Returns:
a PortalPage or null if it cant be found

create

PortalPage create(PortalPage portalPage)
Creates a PortalPage in the database

Parameters:
portalPage - the PortalPage to create
Returns:
the new PortalPage with its new database id

update

PortalPage update(PortalPage portalPage)
Updates the PortalPage in the database.

Parameters:
portalPage - the PortalPage to update
Returns:
a newly updated PortalPage object

adjustFavouriteCount

PortalPage adjustFavouriteCount(SharedEntity portalPage,
                                int incrementValue)
Updates the favourite count of the PortalPage in the database.

Parameters:
portalPage - the portal page to change.
incrementValue - the value to increase the favourite count by. Can be a number < 0 to decrease the favourite count.
Returns:
a newly updated PortalPage object.

delete

void delete(Long portalPageId)
Deletes the PortalPage with the specified portalPageId

Parameters:
portalPageId - the id of the PortalPage to delete


Copyright © 2002-2009 Atlassian. All Rights Reserved.