Class LayoutStorage

java.lang.Object
org.exoplatform.portal.mop.storage.LayoutStorage
Direct Known Subclasses:
CacheLayoutStorage

public class LayoutStorage extends Object
  • Constructor Details

  • 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

      public String getId(org.exoplatform.portal.config.model.ApplicationState state)
    • getApplicationData

      public org.exoplatform.portal.pom.data.ApplicationData getApplicationData(String applicationStorageId)
    • getApplicationModel

      public org.exoplatform.portal.config.model.Application getApplicationModel(String applicationStorageId)
    • loadCommitted

      public org.exoplatform.portal.pom.spi.portlet.Portlet loadCommitted(String applicationStorageId)
      Reads the preferences of a window from its row, never through the preferences cache of findWindow(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

      public boolean existsCommitted(String applicationStorageId)
      Whether a window's row exists, never read through the preferences cache of findWindow(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 of findWindow(Long) nor from the window the persistence context holds, whose former columns save(ApplicationState, Portlet) writes back
      Parameters:
      applicationStorageId - the window's storage id
      preferences - 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

      public List<ComponentEntity> clone(String objectType, String pageBody)
    • clonePermissions

      public void clonePermissions(String objectType, long dstId, long srcId)
    • clonePermissions

      public void clonePermissions(String objectType, long dstId, long srcId, PermissionEntity.TYPE type)
    • deletePermissions

      public void deletePermissions(String objectType, Long objectId)
    • createWindow

      protected WindowEntity createWindow(WindowEntity dstW)
    • updateWindow

      protected WindowEntity updateWindow(WindowEntity window)
    • updateWindowCustomization

      protected int updateWindowCustomization(Long id, byte[] customization)
    • findWindow

      protected WindowEntity findWindow(Long id)
    • deleteWindow

      protected void deleteWindow(WindowEntity window)
    • deleteWindowById

      protected void deleteWindowById(Long id)