|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortalPageStore
This is the store for PortalPage objects
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 |
void |
flush()
Flushes any caches that may exist |
EnclosedIterable<PortalPage> |
get(SharedEntityAccessor.RetrievalDescriptor descriptor)
Get a EnclosedIterable of PortalPages for the specified List of ids. |
EnclosedIterable<PortalPage> |
getAll()
Get a EnclosedIterable of all PortalPages in the database. |
Collection<PortalPage> |
getAllOwnedPortalPages(com.atlassian.crowd.embedded.api.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(com.atlassian.crowd.embedded.api.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. |
boolean |
updatePortalPageOptimisticLock(Long portalPageId,
Long currentVersion)
This method will increment the version of the given portalPage by one. |
Method Detail |
---|
PortalPage getSystemDefaultPortalPage()
EnclosedIterable<PortalPage> get(SharedEntityAccessor.RetrievalDescriptor descriptor)
EnclosedIterable
of PortalPages for the specified List of ids.
descriptor
- retrieval descriptor
EnclosedIterable<PortalPage> getAll()
EnclosedIterable
of all PortalPages in the database.
Collection<PortalPage> getAllOwnedPortalPages(com.atlassian.crowd.embedded.api.User owner)
owner
- the user who is the owner of the PortalPage's
PortalPage getPortalPageByOwnerAndName(com.atlassian.crowd.embedded.api.User owner, String portalPageName)
owner
- the User how is the owner of the PortalPageportalPageName
- the name of the PortalPage
PortalPage getPortalPage(Long portalPageId)
portalPageId
- the id of the PortalPage to locate
PortalPage create(PortalPage portalPage)
portalPage
- the PortalPage to create
PortalPage update(PortalPage portalPage)
portalPage
- the PortalPage to update
boolean updatePortalPageOptimisticLock(Long portalPageId, Long currentVersion)
portalPageId
- The dashboard to updatecurrentVersion
- The current version for this dashboard
PortalPage adjustFavouriteCount(SharedEntity portalPage, int incrementValue)
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.
void delete(Long portalPageId)
portalPageId
- the id of the PortalPage to deletevoid flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |