Package com.liferay.portal.model.impl
Class LayoutSetImpl
Object
com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.LayoutSet>
com.liferay.portal.model.impl.LayoutSetModelImpl
com.liferay.portal.model.impl.LayoutSetBaseImpl
com.liferay.portal.model.impl.LayoutSetImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.LayoutSet>
,com.liferay.portal.kernel.model.change.tracking.CTModel<com.liferay.portal.kernel.model.LayoutSet>
,com.liferay.portal.kernel.model.ClassedModel
,com.liferay.portal.kernel.model.LayoutSet
,com.liferay.portal.kernel.model.LayoutSetModel
,com.liferay.portal.kernel.model.MVCCModel
,com.liferay.portal.kernel.model.PersistedModel
,com.liferay.portal.kernel.model.ShardedModel
,Serializable
,Cloneable
,Comparable<com.liferay.portal.kernel.model.LayoutSet>
Represents a portal layout set, providing access to the layout set's color
schemes, groups, prototypes, themes, and more.
Each Group
in Liferay can have a public and a private layout set.
This keeps information common to all layouts (pages) in the layout set.
- Author:
- Brian Wing Shun Chan, Jorge Ferrer
- See Also:
-
Field Summary
Fields inherited from class com.liferay.portal.model.impl.LayoutSetModelImpl
COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, GROUPID_COLUMN_BITMASK, LAYOUTSETID_COLUMN_BITMASK, LAYOUTSETPROTOTYPEUUID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, LOGOID_COLUMN_BITMASK, ORDER_BY_JPQL, ORDER_BY_SQL, PRIVATELAYOUT_COLUMN_BITMASK, SESSION_FACTORY, TABLE_COLUMNS, TABLE_COLUMNS_MAP, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER
Fields inherited from interface com.liferay.portal.kernel.model.LayoutSet
LAYOUT_SET_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.ColorScheme
Returns the layout set's color scheme.com.liferay.portal.kernel.model.Group
getGroup()
Returns the layout set's group.long
Returns the layout set prototype's ID, or0
if it has no layout set prototype.long
boolean
getLogo()
List<com.liferay.portal.kernel.model.Layout>
int
com.liferay.portal.kernel.util.UnicodeProperties
com.liferay.portal.kernel.model.Theme
getTheme()
protected com.liferay.portal.kernel.model.Theme
getThemeSetting
(String key, String device) Returns the names of the layout set's virtual hosts.boolean
boolean
boolean
boolean
boolean
isLogo()
void
setCompanyFallbackVirtualHostname
(String companyFallbackVirtualHostname) void
setSettings
(String settings) void
setSettingsProperties
(com.liferay.portal.kernel.util.UnicodeProperties settingsUnicodeProperties) void
setVirtualHostnames
(TreeMap<String, String> virtualHostnames) Sets the names of the layout set's virtual host name and language IDs.Methods inherited from class com.liferay.portal.model.impl.LayoutSetBaseImpl
persist
Methods inherited from class com.liferay.portal.model.impl.LayoutSetModelImpl
clone, cloneWithOriginalValues, compareTo, equals, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getColorSchemeId, getColumnBitmask, getColumnBitmask, getColumnOriginalValue, getColumnValue, getCompanyId, getCreateDate, getCss, getCtCollectionId, getExpandoBridge, getFaviconFileEntryId, getGroupId, getLayoutSetId, getLayoutSetPrototypeLinkEnabled, getLayoutSetPrototypeUuid, getLogoId, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getMvccVersion, getOriginalCompanyId, getOriginalGroupId, getOriginalLayoutSetPrototypeUuid, getOriginalLogoId, getOriginalPrivateLayout, getPrimaryKey, getPrimaryKeyObj, getPrivateLayout, getThemeId, hashCode, isEntityCacheEnabled, isFinderCacheEnabled, isLayoutSetPrototypeLinkEnabled, isPrivateLayout, resetOriginalValues, setColorSchemeId, setCompanyId, setCreateDate, setCss, setCtCollectionId, setExpandoBridgeAttributes, setFaviconFileEntryId, setGroupId, setLayoutSetId, setLayoutSetPrototypeLinkEnabled, setLayoutSetPrototypeUuid, setLogoId, setModelAttributes, setModifiedDate, setMvccVersion, setPrimaryKey, setPrimaryKeyObj, setPrivateLayout, setThemeId, toCacheModel, toEscapedModel, toString
Methods inherited from class com.liferay.portal.kernel.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.LayoutSetModel
cloneWithOriginalValues, getColorSchemeId, getCompanyId, getCreateDate, getCss, getCtCollectionId, getFaviconFileEntryId, getGroupId, getLayoutSetId, getLayoutSetPrototypeLinkEnabled, getLayoutSetPrototypeUuid, getLogoId, getModifiedDate, getMvccVersion, getPrimaryKey, getPrivateLayout, getThemeId, isLayoutSetPrototypeLinkEnabled, isPrivateLayout, setColorSchemeId, setCompanyId, setCreateDate, setCss, setCtCollectionId, setFaviconFileEntryId, setGroupId, setLayoutSetId, setLayoutSetPrototypeLinkEnabled, setLayoutSetPrototypeUuid, setLogoId, setModifiedDate, setMvccVersion, setPrimaryKey, setPrivateLayout, setThemeId, toXmlString
-
Constructor Details
-
LayoutSetImpl
public LayoutSetImpl()
-
-
Method Details
-
getColorScheme
public com.liferay.portal.kernel.model.ColorScheme getColorScheme()Returns the layout set's color scheme.Just like themes, color schemes can be configured on the layout set level. The layout set's color scheme can be overridden on the layout level.
- Returns:
- the layout set's color scheme
-
getCompanyFallbackVirtualHostname
- Specified by:
getCompanyFallbackVirtualHostname
in interfacecom.liferay.portal.kernel.model.LayoutSet
- Overrides:
getCompanyFallbackVirtualHostname
in classLayoutSetModelImpl
-
getFaviconURL
-
getGroup
public com.liferay.portal.kernel.model.Group getGroup() throws com.liferay.portal.kernel.exception.PortalExceptionReturns the layout set's group.- Returns:
- the layout set's group
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutSetPrototypeId
public long getLayoutSetPrototypeId() throws com.liferay.portal.kernel.exception.PortalExceptionReturns the layout set prototype's ID, or0
if it has no layout set prototype.Prototype is Liferay's technical name for a site template.
- Returns:
- the layout set prototype's ID, or
0
if it has no layout set prototype - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLiveLogoId
public long getLiveLogoId() -
getLogo
public boolean getLogo() -
getMergeFailFriendlyURLLayouts
-
getPageCount
public int getPageCount() -
getSettings
- Specified by:
getSettings
in interfacecom.liferay.portal.kernel.model.LayoutSetModel
- Overrides:
getSettings
in classLayoutSetModelImpl
-
getSettingsProperties
public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() -
getSettingsProperty
-
getTheme
public com.liferay.portal.kernel.model.Theme getTheme() -
getThemeSetting
-
getVirtualHostnames
Returns the names of the layout set's virtual hosts.When accessing a layout set that has a virtual host, the URL elements "/web/sitename" or "/group/sitename" can be omitted.
- Specified by:
getVirtualHostnames
in interfacecom.liferay.portal.kernel.model.LayoutSet
- Overrides:
getVirtualHostnames
in classLayoutSetModelImpl
- Returns:
- a map from the layout set's virtual host names to the language ids configured for them. If the virtual host is configured for the default language, it will map to the empty string instead of a language id. If the layout set has no virtual hosts configured, the returned map will be empty.
-
hasSetModifiedDate
public boolean hasSetModifiedDate()- Specified by:
hasSetModifiedDate
in interfacecom.liferay.portal.kernel.model.LayoutSet
- Overrides:
hasSetModifiedDate
in classLayoutSetModelImpl
-
isLayoutSetPrototypeLinkActive
public boolean isLayoutSetPrototypeLinkActive() -
isLayoutSetPrototypeUpdateable
public boolean isLayoutSetPrototypeUpdateable() -
isLayoutSetReadyForPropagation
public boolean isLayoutSetReadyForPropagation() -
isLogo
public boolean isLogo() -
setCompanyFallbackVirtualHostname
- Specified by:
setCompanyFallbackVirtualHostname
in interfacecom.liferay.portal.kernel.model.LayoutSet
- Overrides:
setCompanyFallbackVirtualHostname
in classLayoutSetModelImpl
-
setSettings
- Specified by:
setSettings
in interfacecom.liferay.portal.kernel.model.LayoutSetModel
- Overrides:
setSettings
in classLayoutSetModelImpl
-
setSettingsProperties
public void setSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties settingsUnicodeProperties) -
setVirtualHostnames
Sets the names of the layout set's virtual host name and language IDs.- Specified by:
setVirtualHostnames
in interfacecom.liferay.portal.kernel.model.LayoutSet
- Overrides:
setVirtualHostnames
in classLayoutSetModelImpl
- Parameters:
virtualHostnames
- the map of the layout set's virtual host name and language IDs- See Also:
-
getTheme
-