Class LayoutModel

java.lang.Object
io.meeds.layout.model.LayoutModel

public class LayoutModel extends Object
  • Field Details

    • id

      protected String id
    • storageId

      protected String storageId
    • storageName

      protected String storageName
    • name

      protected String name
    • icon

      protected String icon
    • template

      protected String template
    • factoryId

      protected String factoryId
    • title

      protected String title
    • description

      protected String description
    • width

      protected String width
    • height

      protected String height
    • cssClass

      protected String cssClass
    • borderColor

      protected String borderColor
  • Constructor Details

    • LayoutModel

      public LayoutModel(org.exoplatform.portal.config.model.ModelObject model)
    • LayoutModel

      public LayoutModel(org.exoplatform.portal.config.model.ModelObject model, PortletInstanceService portletInstanceService, PortletInstanceContext portletInstanceContext)
  • Method Details

    • resetStorage

      public void resetStorage()
    • rebaseStorage

      public boolean rebaseStorage(org.exoplatform.portal.config.model.ModelObject stored, org.exoplatform.portal.config.model.ModelObject storedNow, org.exoplatform.portal.config.model.ModelObject copy)
      Points every element of this layout, assembled over a stored layout without copying its windows, at the element found at the same place in a copy of that stored layout, so that writing it over the copy keeps the copy's own containers and windows, with the preferences the copy gave them. Nothing changes when the check fails.
      Parameters:
      stored - the stored layout this one was assembled over
      storedNow - the same layout read again once the copy was made
      copy - the copy of the stored layout
      Returns:
      false, leaving this layout as it was, when the stored layout changed since it was read, the copy does not have its shape, or this layout holds an element the stored layout does not
    • toPage

      public org.exoplatform.portal.config.model.Page toPage()
    • toSite

      public org.exoplatform.portal.config.model.PortalConfig toSite()