Class LayoutStorage
java.lang.Object
org.exoplatform.portal.mop.storage.LayoutStorage
- Direct Known Subclasses:
CacheLayoutStorage
-
Constructor Summary
ConstructorsConstructorDescriptionLayoutStorage(WindowDAO windowDAO, ContainerDAO containerDAO, PermissionDAO permissionDAO) -
Method Summary
Modifier and TypeMethodDescriptionList<org.exoplatform.portal.pom.data.ComponentData> buildChildren(org.json.simple.JSONArray jsonBody) voidclonePermissions(String objectType, long dstId, long srcId) voidclonePermissions(String objectType, long dstId, long srcId, PermissionEntity.TYPE type) protected WindowEntitycreateWindow(WindowEntity dstW) voiddeleteChildren(org.json.simple.JSONArray children) voiddeletePermissions(String objectType, Long objectId) protected voiddeleteWindow(WindowEntity window) protected voiddeleteWindowById(Long id) booleanexistsCommitted(String applicationStorageId) Whether a window's row exists, never read through the preferences cache offindWindow(Long)nor from the window the persistence context holds, its preferences not readprotected WindowEntityfindWindow(Long id) org.exoplatform.portal.pom.data.ApplicationDatagetApplicationData(String applicationStorageId) org.exoplatform.portal.config.model.ApplicationgetApplicationModel(String applicationStorageId) getId(org.exoplatform.portal.config.model.ApplicationState state) getPermissions(String objectType, Long objectId, PermissionEntity.TYPE permisssionType) org.exoplatform.portal.pom.spi.portlet.Portletload(org.exoplatform.portal.config.model.ApplicationState state) org.exoplatform.portal.pom.spi.portlet.PortletloadCommitted(String applicationStorageId) Reads the preferences of a window from its row, never through the preferences cache offindWindow(Long)nor the window the persistence context holdsorg.exoplatform.portal.config.model.ApplicationStatesave(org.exoplatform.portal.config.model.ApplicationState state, org.exoplatform.portal.pom.spi.portlet.Portlet preferences) saveChildren(org.json.simple.JSONArray pageBody, List<org.exoplatform.portal.pom.data.ComponentData> children) booleansaveCommitted(String applicationStorageId, org.exoplatform.portal.pom.spi.portlet.Portlet preferences) Writes the preferences of a window to its row, and to that column alone: never from the preferences cache offindWindow(Long)nor from the window the persistence context holds, whose former columnssave(ApplicationState, Portlet)writes backsavePermissions(String objectType, long objectId, PermissionEntity.TYPE type, List<String> permissions) protected WindowEntityupdateWindow(WindowEntity window) protected intupdateWindowCustomization(Long id, byte[] customization)
-
Constructor Details
-
LayoutStorage
-
-
Method Details
-
load
public org.exoplatform.portal.pom.spi.portlet.Portlet load(org.exoplatform.portal.config.model.ApplicationState state) -
save
public org.exoplatform.portal.config.model.ApplicationState save(org.exoplatform.portal.config.model.ApplicationState state, org.exoplatform.portal.pom.spi.portlet.Portlet preferences) -
getId
-
getApplicationData
public org.exoplatform.portal.pom.data.ApplicationData getApplicationData(String applicationStorageId) -
getApplicationModel
public org.exoplatform.portal.config.model.Application getApplicationModel(String applicationStorageId) -
loadCommitted
Reads the preferences of a window from its row, never through the preferences cache offindWindow(Long)nor the window the persistence context holds- Parameters:
applicationStorageId- the window's storage id- Returns:
- the window's preferences, empty when it has none, null when no window has this id
-
existsCommitted
Whether a window's row exists, never read through the preferences cache offindWindow(Long)nor from the window the persistence context holds, its preferences not read- Parameters:
applicationStorageId- the window's storage id- Returns:
- true when a window has this id
-
saveCommitted
public boolean saveCommitted(String applicationStorageId, org.exoplatform.portal.pom.spi.portlet.Portlet preferences) Writes the preferences of a window to its row, and to that column alone: never from the preferences cache offindWindow(Long)nor from the window the persistence context holds, whose former columnssave(ApplicationState, Portlet)writes back- Parameters:
applicationStorageId- the window's storage idpreferences- the window's preferences, null for none- Returns:
- true when a window has this id
-
saveChildren
public List<ComponentEntity> saveChildren(org.json.simple.JSONArray pageBody, List<org.exoplatform.portal.pom.data.ComponentData> children) -
buildChildren
public List<org.exoplatform.portal.pom.data.ComponentData> buildChildren(org.json.simple.JSONArray jsonBody) -
deleteChildren
public void deleteChildren(org.json.simple.JSONArray children) -
getPermissions
public List<String> getPermissions(String objectType, Long objectId, PermissionEntity.TYPE permisssionType) -
savePermissions
public List<PermissionEntity> savePermissions(String objectType, long objectId, PermissionEntity.TYPE type, List<String> permissions) -
clone
-
clonePermissions
-
clonePermissions
-
deletePermissions
-
createWindow
-
updateWindow
-
updateWindowCustomization
-
findWindow
-
deleteWindow
-
deleteWindowById
-