Class LayoutModel
java.lang.Object
io.meeds.layout.model.LayoutModel
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLayoutModel(org.exoplatform.portal.config.model.ModelObject model) LayoutModel(org.exoplatform.portal.config.model.ModelObject model, PortletInstanceService portletInstanceService, PortletInstanceContext portletInstanceContext) -
Method Summary
Modifier and TypeMethodDescriptionbooleanrebaseStorage(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.voidorg.exoplatform.portal.config.model.PagetoPage()org.exoplatform.portal.config.model.PortalConfigtoSite()
-
Field Details
-
id
-
storageId
-
storageName
-
name
-
icon
-
template
-
factoryId
-
title
-
description
-
width
-
height
-
cssClass
-
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 overstoredNow- the same layout read again once the copy was madecopy- 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()
-