Class LayoutPropertiesHelper
- java.lang.Object
-
- lumis.portal.structure.LayoutPropertiesHelper
-
public class LayoutPropertiesHelper extends java.lang.Object
A Helper for persistence of layout properties.- Since:
- 5.6.0
- Version:
- $Revision: 11804 $ $Date: 2010-07-29 10:06:21 -0300 (Thu, 29 Jul 2010) $
-
-
Constructor Summary
Constructors Constructor Description LayoutPropertiesHelper(ILayoutPropertiesAccessor layoutPropertiesAccessor)
The constructor forLayoutPropertiesHelper
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setLayoutFilePath(java.lang.String layoutFilePath)
Changes the layout file path, updating other layout properties as appropriated.void
setLayoutType(int layoutType)
Sets the layout type for pages.
-
-
-
Constructor Detail
-
LayoutPropertiesHelper
public LayoutPropertiesHelper(ILayoutPropertiesAccessor layoutPropertiesAccessor)
The constructor forLayoutPropertiesHelper
.- Parameters:
layoutPropertiesAccessor
- the object used to access the layout properties.- Since:
- 5.6.0
-
-
Method Detail
-
setLayoutFilePath
public void setLayoutFilePath(java.lang.String layoutFilePath)
Changes the layout file path, updating other layout properties as appropriated.The
layoutFile
parameter cannot be an empty string ornull
. If it isnull
the attribute is removed and the attribute layoutType is automatically changed toPageConfig.PAGE_LAYOUT_TYPE_INHERIT
if the current value isPageConfig.PAGE_LAYOUT_TYPE_LAYOUT_FILE
, else if it is a valid value the attribute layoutType is automatically changed toPageConfig.PAGE_LAYOUT_TYPE_LAYOUT_FILE
.- Parameters:
layoutFilePath
- the path relative to the<lumisdata>/def
directory.- Since:
- 5.6.0
-
setLayoutType
public void setLayoutType(int layoutType)
Sets the layout type for pages.The layout type have to be a valid type and may not be set to
PageConfig.PAGE_LAYOUT_TYPE_LAYOUT_FILE
. If want to set to it, usesetLayoutFilePath(String)
and the layout type will be changed automatically.This method may not be used to set the layout type to
PageConfig.PAGE_LAYOUT_TYPE_LAYOUT_FILE
. Use the methodsetLayoutFilePath(String)
instead, and the layout type is changed automatically.If set to a value different of
PageConfig.PAGE_LAYOUT_TYPE_LAYOUT_FILE
, the "lumis.portal.page.layoutFile" property will be removed.- Parameters:
layoutType
- the layout type.- Since:
- 5.6.0
- See Also:
setLayoutFilePath(String)
-
-