|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.portal.CachingPortalPageStore
public class CachingPortalPageStore
Caching store for PortalPage. The cache stores a id -> PortalPage and a
portalPage.owner -> id mapping.
| Constructor Summary | |
|---|---|
CachingPortalPageStore(PortalPageStore delegateStore,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| 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 ids)
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. |
void |
onClearCache(ClearCacheEvent event)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingPortalPageStore(PortalPageStore delegateStore,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public EnclosedIterable<PortalPage> get(SharedEntityAccessor.RetrievalDescriptor ids)
PortalPageStoreEnclosedIterable of PortalPages for the specified List of ids.
get in interface PortalPageStoreids - retrieval descriptor
public EnclosedIterable<PortalPage> getAll()
PortalPageStoreEnclosedIterable of all PortalPages in the database.
getAll in interface PortalPageStorepublic PortalPage getSystemDefaultPortalPage()
PortalPageStore
getSystemDefaultPortalPage in interface PortalPageStorepublic Collection<PortalPage> getAllOwnedPortalPages(com.atlassian.crowd.embedded.api.User owner)
PortalPageStore
getAllOwnedPortalPages in interface PortalPageStoreowner - the user who is the owner of the PortalPage's
public PortalPage getPortalPageByOwnerAndName(com.atlassian.crowd.embedded.api.User owner,
String portalPageName)
PortalPageStore
getPortalPageByOwnerAndName in interface PortalPageStoreowner - the User how is the owner of the PortalPageportalPageName - the name of the PortalPage
public PortalPage getPortalPage(Long portalPageId)
PortalPageStore
getPortalPage in interface PortalPageStoreportalPageId - the id of the PortalPage to locate
public PortalPage create(PortalPage portalPage)
PortalPageStore
create in interface PortalPageStoreportalPage - the PortalPage to create
public PortalPage update(PortalPage portalPage)
PortalPageStore
update in interface PortalPageStoreportalPage - the PortalPage to update
public boolean updatePortalPageOptimisticLock(Long portalPageId,
Long currentVersion)
PortalPageStore
updatePortalPageOptimisticLock in interface PortalPageStoreportalPageId - The dashboard to updatecurrentVersion - The current version for this dashboard
public PortalPage adjustFavouriteCount(SharedEntity portalPage,
int incrementValue)
PortalPageStore
adjustFavouriteCount in interface PortalPageStoreportalPage - the portal page to change.incrementValue - the value to increase the favourite count by. Can be a number < 0 to decrease the favourite count.
public void delete(Long portalPageId)
PortalPageStore
delete in interface PortalPageStoreportalPageId - the id of the PortalPage to deletepublic void flush()
PortalPageStore
flush in interface PortalPageStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||