|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.portal.CachingPortletConfigurationStore
public class CachingPortletConfigurationStore
Caching store for Portlet Configurations. The cache stores a id -> PortletConfigurationStore and a portalPage.id -> id mapping.
This class is not completely thread safe in that it is possible for the cache and the database to become unsynchronized.
Constructor Summary | |
---|---|
CachingPortletConfigurationStore(PortletConfigurationStore delegateStore)
|
Method Summary | |
---|---|
PortletConfiguration |
add(Long pageId,
String portletKey,
Integer column,
Integer row)
Creates and adds a new PortletConfiguration to given PortalPage |
void |
delete(PortletConfiguration pc)
Deletes the given PortletConfiguration . |
void |
flush()
Flush the cache by removing all entries. |
List |
getByPortalPage(Long portalPageId)
Get all PortletConfiguration objects for a given
PortalPage id. |
PortletConfiguration |
getByPortletId(Long portletId)
Gall a PortletConfiguration by its id. |
void |
store(PortletConfiguration pc)
Saves the given PortletConfiguration . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingPortletConfigurationStore(PortletConfigurationStore delegateStore)
Method Detail |
---|
public List getByPortalPage(Long portalPageId)
PortletConfigurationStore
PortletConfiguration
objects for a given
PortalPage
id.
getByPortalPage
in interface PortletConfigurationStore
portalPageId
- The id of the page to retreive all configurations for.
public PortletConfiguration getByPortletId(Long portletId)
PortletConfigurationStore
PortletConfiguration
by its id.
getByPortletId
in interface PortletConfigurationStore
portletId
- The id of the portlet configuration
public void delete(PortletConfiguration pc)
PortletConfigurationStore
PortletConfiguration
.
delete
in interface PortletConfigurationStore
pc
- The PortletConfiguration to delete.public void store(PortletConfiguration pc)
PortletConfigurationStore
PortletConfiguration
.
store
in interface PortletConfigurationStore
pc
- The PortletConfiguration to save.public PortletConfiguration add(Long pageId, String portletKey, Integer column, Integer row)
PortletConfigurationStore
PortletConfiguration
to given PortalPage
add
in interface PortletConfigurationStore
pageId
- The id of the page to add the configuration to.portletKey
- The key of the portlet.column
- The column position of the portlet.row
- The row position of the portlet
public void flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |