java.lang.Object | |
↳ | com.atlassian.jira.portal.CachingPortalPageStore |
Caching store for PortalPage
. The cache stores a id -> PortalPage and a
portalPage.owner -> id mapping.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Updates the favourite count of the PortalPage in the database.
| |||||||||||
Creates a PortalPage in the database
| |||||||||||
Deletes the PortalPage with the specified portalPageId
| |||||||||||
Flushes any caches that may exist
| |||||||||||
Get a
EnclosedIterable of PortalPages for the specified List of ids. | |||||||||||
Get a
EnclosedIterable of all PortalPages in the database. | |||||||||||
Gets all the PortalPage's owned by the specified User
| |||||||||||
Gets all the PortalPage's owned by the specified User
| |||||||||||
Gets the PortalPage with the specified portalPageId
| |||||||||||
Gets the specified PortalPage that is owned by the User and has the specified portalPageName
| |||||||||||
Goes to the database and fetches the system default dashboard configuration.
| |||||||||||
Updates the PortalPage in the database.
| |||||||||||
This method will increment the version of the given portalPage by one.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.portal.PortalPageStore
|
Updates the favourite count of the PortalPage in the database.
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. |
Creates a PortalPage in the database
portalPage | the PortalPage to create |
---|
Deletes the PortalPage with the specified portalPageId
portalPageId | the id of the PortalPage to delete |
---|
Flushes any caches that may exist
Get a EnclosedIterable
of PortalPages for the specified List of ids.
ids | retrieval descriptor |
---|
Get a EnclosedIterable
of all PortalPages in the database.
Gets all the PortalPage's owned by the specified User
owner | the user who is the owner of the PortalPage's |
---|
Gets all the PortalPage's owned by the specified User
userKey | The key of the user who is the owner of the PortalPage's |
---|
Gets the PortalPage with the specified portalPageId
portalPageId | the id of the PortalPage to locate |
---|
Gets the specified PortalPage that is owned by the User and has the specified portalPageName
owner | the User how is the owner of the PortalPage |
---|---|
portalPageName | the name of the PortalPage |
Goes to the database and fetches the system default dashboard configuration.
Updates the PortalPage in the database.
portalPage | the PortalPage to update |
---|
This method will increment the version of the given portalPage by one. When doing this, it will check that the version currently equals what was passed in. If the update is successful, this method returns true. False otherwise
In JIRA since we don't have transactions, this method should be called inside a pessimistic lock (potentially striped by portalPageId) and all update operations should follow while holding this same lock.
portalPageId | The dashboard to update |
---|---|
currentVersion | The current version for this dashboard |