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_MANAGERFields 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.ColorSchemeReturns the layout set's color scheme.com.liferay.portal.kernel.model.GroupgetGroup()Returns the layout set's group.longReturns the layout set prototype's ID, or0if it has no layout set prototype.longbooleangetLogo()List<com.liferay.portal.kernel.model.Layout>intcom.liferay.portal.kernel.util.UnicodePropertiescom.liferay.portal.kernel.model.ThemegetTheme()protected com.liferay.portal.kernel.model.ThemegetThemeSetting(String key, String device) Returns the names of the layout set's virtual hosts.booleanbooleanbooleanbooleanbooleanisLogo()voidsetCompanyFallbackVirtualHostname(String companyFallbackVirtualHostname) voidsetSettings(String settings) voidsetSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties settingsUnicodeProperties) voidsetVirtualHostnames(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
persistMethods 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, toStringMethods inherited from class com.liferay.portal.kernel.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModelMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassNameMethods inherited from interface java.lang.Comparable
compareToMethods 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:
getCompanyFallbackVirtualHostnamein interfacecom.liferay.portal.kernel.model.LayoutSet- Overrides:
getCompanyFallbackVirtualHostnamein 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, or0if it has no layout set prototype.Prototype is Liferay's technical name for a site template.
- Returns:
- the layout set prototype's ID, or
0if 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:
getSettingsin interfacecom.liferay.portal.kernel.model.LayoutSetModel- Overrides:
getSettingsin 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:
getVirtualHostnamesin interfacecom.liferay.portal.kernel.model.LayoutSet- Overrides:
getVirtualHostnamesin 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:
hasSetModifiedDatein interfacecom.liferay.portal.kernel.model.LayoutSet- Overrides:
hasSetModifiedDatein classLayoutSetModelImpl
-
isLayoutSetPrototypeLinkActive
public boolean isLayoutSetPrototypeLinkActive() -
isLayoutSetPrototypeUpdateable
public boolean isLayoutSetPrototypeUpdateable() -
isLayoutSetReadyForPropagation
public boolean isLayoutSetReadyForPropagation() -
isLogo
public boolean isLogo() -
setCompanyFallbackVirtualHostname
- Specified by:
setCompanyFallbackVirtualHostnamein interfacecom.liferay.portal.kernel.model.LayoutSet- Overrides:
setCompanyFallbackVirtualHostnamein classLayoutSetModelImpl
-
setSettings
- Specified by:
setSettingsin interfacecom.liferay.portal.kernel.model.LayoutSetModel- Overrides:
setSettingsin 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:
setVirtualHostnamesin interfacecom.liferay.portal.kernel.model.LayoutSet- Overrides:
setVirtualHostnamesin classLayoutSetModelImpl- Parameters:
virtualHostnames- the map of the layout set's virtual host name and language IDs- See Also:
-
getTheme
-