Package com.liferay.portal.kernel.model
Class LayoutSetWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<LayoutSet>
com.liferay.portal.kernel.model.LayoutSetWrapper
- All Implemented Interfaces:
BaseModel<LayoutSet>,CTModel<LayoutSet>,ClassedModel,LayoutSet,LayoutSetModel,ModelWrapper<LayoutSet>,MVCCModel,PersistedModel,ShardedModel,Serializable,Cloneable,Comparable<LayoutSet>
public class LayoutSetWrapper
extends BaseModelWrapper<LayoutSet>
implements LayoutSet, ModelWrapper<LayoutSet>
This class is a wrapper for LayoutSet.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
modelFields inherited from interface com.liferay.portal.kernel.model.LayoutSet
LAYOUT_SET_ID_ACCESSOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the layout set's color scheme.Returns the color scheme ID of this layout set.longReturns the company ID of this layout set.Returns the create date of this layout set.getCss()Returns the css of this layout set.longReturns the ct collection ID of this layout set.longReturns the favicon file entry ID of this layout set.getGroup()Returns the layout set's group.longReturns the group ID of this layout set.longReturns the layout set ID of this layout set.longReturns the layout set prototype's ID, or0if it has no layout set prototype.booleanReturns the layout set prototype link enabled of this layout set.Returns the layout set prototype uuid of this layout set.longbooleangetLogo()longReturns the logo ID of this layout set.Returns the modified date of this layout set.longReturns the mvcc version of this layout set.intlongReturns the primary key of this layout set.booleanReturns the private layout of this layout set.Returns the settings of this layout set.getTheme()Returns the theme ID of this layout set.getThemeSetting(String key, String device) Returns the names of the layout set's virtual hosts.booleanbooleanbooleanReturnstrueif this layout set is layout set prototype link enabled.booleanbooleanbooleanisLogo()booleanReturnstrueif this layout set is private layout.voidpersist()Updates this model instance in the database or adds it if it does not yet exist.voidsetColorSchemeId(String colorSchemeId) Sets the color scheme ID of this layout set.voidsetCompanyFallbackVirtualHostname(String companyFallbackVirtualHostname) voidsetCompanyId(long companyId) Sets the company ID of this layout set.voidsetCreateDate(Date createDate) Sets the create date of this layout set.voidSets the css of this layout set.voidsetCtCollectionId(long ctCollectionId) Sets the ct collection ID of this layout set.voidsetFaviconFileEntryId(long faviconFileEntryId) Sets the favicon file entry ID of this layout set.voidsetGroupId(long groupId) Sets the group ID of this layout set.voidsetLayoutSetId(long layoutSetId) Sets the layout set ID of this layout set.voidsetLayoutSetPrototypeLinkEnabled(boolean layoutSetPrototypeLinkEnabled) Sets whether this layout set is layout set prototype link enabled.voidsetLayoutSetPrototypeUuid(String layoutSetPrototypeUuid) Sets the layout set prototype uuid of this layout set.voidsetLogoId(long logoId) Sets the logo ID of this layout set.voidsetModelAttributes(Map<String, Object> attributes) voidsetModifiedDate(Date modifiedDate) Sets the modified date of this layout set.voidsetMvccVersion(long mvccVersion) Sets the mvcc version of this layout set.voidsetPrimaryKey(long primaryKey) Sets the primary key of this layout set.voidsetPrivateLayout(boolean privateLayout) Sets whether this layout set is private layout.voidsetSettings(String settings) Sets the settings of this layout set.voidsetSettingsProperties(UnicodeProperties settingsUnicodeProperties) voidsetThemeId(String themeId) Sets the theme ID of this layout set.voidsetVirtualHostnames(TreeMap<String, String> virtualHostnames) Sets the names of the layout set's virtual host name and language IDs.protected LayoutSetWrapperMethods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModelMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, 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.ModelWrapper
getWrappedModel
-
Constructor Details
-
LayoutSetWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributesin interfaceBaseModel<LayoutSet>
-
setModelAttributes
- Specified by:
setModelAttributesin interfaceBaseModel<LayoutSet>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValuesin interfaceBaseModel<LayoutSet>- Specified by:
cloneWithOriginalValuesin interfaceLayoutSetModel
-
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.
- Specified by:
getColorSchemein interfaceLayoutSet- Returns:
- the layout set's color scheme
-
getColorSchemeId
Returns the color scheme ID of this layout set.- Specified by:
getColorSchemeIdin interfaceLayoutSetModel- Returns:
- the color scheme ID of this layout set
-
getCompanyFallbackVirtualHostname
- Specified by:
getCompanyFallbackVirtualHostnamein interfaceLayoutSet
-
getCompanyId
public long getCompanyId()Returns the company ID of this layout set.- Specified by:
getCompanyIdin interfaceLayoutSetModel- Specified by:
getCompanyIdin interfaceShardedModel- Returns:
- the company ID of this layout set
-
getCreateDate
Returns the create date of this layout set.- Specified by:
getCreateDatein interfaceLayoutSetModel- Returns:
- the create date of this layout set
-
getCss
Returns the css of this layout set.- Specified by:
getCssin interfaceLayoutSetModel- Returns:
- the css of this layout set
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this layout set.- Specified by:
getCtCollectionIdin interfaceCTModel<LayoutSet>- Specified by:
getCtCollectionIdin interfaceLayoutSetModel- Returns:
- the ct collection ID of this layout set
-
getFaviconFileEntryId
public long getFaviconFileEntryId()Returns the favicon file entry ID of this layout set.- Specified by:
getFaviconFileEntryIdin interfaceLayoutSetModel- Returns:
- the favicon file entry ID of this layout set
-
getFaviconURL
- Specified by:
getFaviconURLin interfaceLayoutSet
-
getGroup
Returns the layout set's group.- Specified by:
getGroupin interfaceLayoutSet- Returns:
- the layout set's group
- Throws:
PortalException
-
getGroupId
public long getGroupId()Returns the group ID of this layout set.- Specified by:
getGroupIdin interfaceLayoutSetModel- Returns:
- the group ID of this layout set
-
getLayoutSetId
public long getLayoutSetId()Returns the layout set ID of this layout set.- Specified by:
getLayoutSetIdin interfaceLayoutSetModel- Returns:
- the layout set ID of this layout set
-
getLayoutSetPrototypeId
Returns the layout set prototype's ID, or0if it has no layout set prototype.Prototype is Liferay's technical name for a site template.
- Specified by:
getLayoutSetPrototypeIdin interfaceLayoutSet- Returns:
- the layout set prototype's ID, or
0if it has no layout set prototype - Throws:
PortalException
-
getLayoutSetPrototypeLinkEnabled
public boolean getLayoutSetPrototypeLinkEnabled()Returns the layout set prototype link enabled of this layout set.- Specified by:
getLayoutSetPrototypeLinkEnabledin interfaceLayoutSetModel- Returns:
- the layout set prototype link enabled of this layout set
-
getLayoutSetPrototypeUuid
Returns the layout set prototype uuid of this layout set.- Specified by:
getLayoutSetPrototypeUuidin interfaceLayoutSetModel- Returns:
- the layout set prototype uuid of this layout set
-
getLiveLogoId
public long getLiveLogoId()- Specified by:
getLiveLogoIdin interfaceLayoutSet
-
getLogo
public boolean getLogo() -
getLogoId
public long getLogoId()Returns the logo ID of this layout set.- Specified by:
getLogoIdin interfaceLayoutSetModel- Returns:
- the logo ID of this layout set
-
getMergeFailFriendlyURLLayouts
- Specified by:
getMergeFailFriendlyURLLayoutsin interfaceLayoutSet
-
getModifiedDate
Returns the modified date of this layout set.- Specified by:
getModifiedDatein interfaceLayoutSetModel- Returns:
- the modified date of this layout set
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this layout set.- Specified by:
getMvccVersionin interfaceLayoutSetModel- Specified by:
getMvccVersionin interfaceMVCCModel- Returns:
- the mvcc version of this layout set
-
getPageCount
public int getPageCount()- Specified by:
getPageCountin interfaceLayoutSet
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this layout set.- Specified by:
getPrimaryKeyin interfaceCTModel<LayoutSet>- Specified by:
getPrimaryKeyin interfaceLayoutSetModel- Returns:
- the primary key of this layout set
-
getPrivateLayout
public boolean getPrivateLayout()Returns the private layout of this layout set.- Specified by:
getPrivateLayoutin interfaceLayoutSetModel- Returns:
- the private layout of this layout set
-
getSettings
Returns the settings of this layout set.- Specified by:
getSettingsin interfaceLayoutSetModel- Returns:
- the settings of this layout set
-
getSettingsProperties
- Specified by:
getSettingsPropertiesin interfaceLayoutSet
-
getSettingsProperty
- Specified by:
getSettingsPropertyin interfaceLayoutSet
-
getTheme
-
getThemeId
Returns the theme ID of this layout set.- Specified by:
getThemeIdin interfaceLayoutSetModel- Returns:
- the theme ID of this layout set
-
getThemeSetting
- Specified by:
getThemeSettingin interfaceLayoutSet
-
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 interfaceLayoutSet- 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 interfaceLayoutSet
-
isLayoutSetPrototypeLinkActive
public boolean isLayoutSetPrototypeLinkActive()- Specified by:
isLayoutSetPrototypeLinkActivein interfaceLayoutSet
-
isLayoutSetPrototypeLinkEnabled
public boolean isLayoutSetPrototypeLinkEnabled()Returnstrueif this layout set is layout set prototype link enabled.- Specified by:
isLayoutSetPrototypeLinkEnabledin interfaceLayoutSetModel- Returns:
trueif this layout set is layout set prototype link enabled;falseotherwise
-
isLayoutSetPrototypeUpdateable
public boolean isLayoutSetPrototypeUpdateable()- Specified by:
isLayoutSetPrototypeUpdateablein interfaceLayoutSet
-
isLayoutSetReadyForPropagation
public boolean isLayoutSetReadyForPropagation()- Specified by:
isLayoutSetReadyForPropagationin interfaceLayoutSet
-
isLogo
public boolean isLogo() -
isPrivateLayout
public boolean isPrivateLayout()Returnstrueif this layout set is private layout.- Specified by:
isPrivateLayoutin interfaceLayoutSetModel- Returns:
trueif this layout set is private layout;falseotherwise
-
persist
public void persist()Description copied from interface:PersistedModelUpdates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persistin interfacePersistedModel
-
setColorSchemeId
Sets the color scheme ID of this layout set.- Specified by:
setColorSchemeIdin interfaceLayoutSetModel- Parameters:
colorSchemeId- the color scheme ID of this layout set
-
setCompanyFallbackVirtualHostname
- Specified by:
setCompanyFallbackVirtualHostnamein interfaceLayoutSet
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this layout set.- Specified by:
setCompanyIdin interfaceLayoutSetModel- Specified by:
setCompanyIdin interfaceShardedModel- Parameters:
companyId- the company ID of this layout set
-
setCreateDate
Sets the create date of this layout set.- Specified by:
setCreateDatein interfaceLayoutSetModel- Parameters:
createDate- the create date of this layout set
-
setCss
Sets the css of this layout set.- Specified by:
setCssin interfaceLayoutSetModel- Parameters:
css- the css of this layout set
-
setCtCollectionId
public void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this layout set.- Specified by:
setCtCollectionIdin interfaceCTModel<LayoutSet>- Specified by:
setCtCollectionIdin interfaceLayoutSetModel- Parameters:
ctCollectionId- the ct collection ID of this layout set
-
setFaviconFileEntryId
public void setFaviconFileEntryId(long faviconFileEntryId) Sets the favicon file entry ID of this layout set.- Specified by:
setFaviconFileEntryIdin interfaceLayoutSetModel- Parameters:
faviconFileEntryId- the favicon file entry ID of this layout set
-
setGroupId
public void setGroupId(long groupId) Sets the group ID of this layout set.- Specified by:
setGroupIdin interfaceLayoutSetModel- Parameters:
groupId- the group ID of this layout set
-
setLayoutSetId
public void setLayoutSetId(long layoutSetId) Sets the layout set ID of this layout set.- Specified by:
setLayoutSetIdin interfaceLayoutSetModel- Parameters:
layoutSetId- the layout set ID of this layout set
-
setLayoutSetPrototypeLinkEnabled
public void setLayoutSetPrototypeLinkEnabled(boolean layoutSetPrototypeLinkEnabled) Sets whether this layout set is layout set prototype link enabled.- Specified by:
setLayoutSetPrototypeLinkEnabledin interfaceLayoutSetModel- Parameters:
layoutSetPrototypeLinkEnabled- the layout set prototype link enabled of this layout set
-
setLayoutSetPrototypeUuid
Sets the layout set prototype uuid of this layout set.- Specified by:
setLayoutSetPrototypeUuidin interfaceLayoutSetModel- Parameters:
layoutSetPrototypeUuid- the layout set prototype uuid of this layout set
-
setLogoId
public void setLogoId(long logoId) Sets the logo ID of this layout set.- Specified by:
setLogoIdin interfaceLayoutSetModel- Parameters:
logoId- the logo ID of this layout set
-
setModifiedDate
Sets the modified date of this layout set.- Specified by:
setModifiedDatein interfaceLayoutSetModel- Parameters:
modifiedDate- the modified date of this layout set
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this layout set.- Specified by:
setMvccVersionin interfaceLayoutSetModel- Specified by:
setMvccVersionin interfaceMVCCModel- Parameters:
mvccVersion- the mvcc version of this layout set
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this layout set.- Specified by:
setPrimaryKeyin interfaceCTModel<LayoutSet>- Specified by:
setPrimaryKeyin interfaceLayoutSetModel- Parameters:
primaryKey- the primary key of this layout set
-
setPrivateLayout
public void setPrivateLayout(boolean privateLayout) Sets whether this layout set is private layout.- Specified by:
setPrivateLayoutin interfaceLayoutSetModel- Parameters:
privateLayout- the private layout of this layout set
-
setSettings
Sets the settings of this layout set.- Specified by:
setSettingsin interfaceLayoutSetModel- Parameters:
settings- the settings of this layout set
-
setSettingsProperties
- Specified by:
setSettingsPropertiesin interfaceLayoutSet
-
setThemeId
Sets the theme ID of this layout set.- Specified by:
setThemeIdin interfaceLayoutSetModel- Parameters:
themeId- the theme ID of this layout set
-
setVirtualHostnames
Sets the names of the layout set's virtual host name and language IDs.- Specified by:
setVirtualHostnamesin interfaceLayoutSet- Parameters:
virtualHostnames- the map of the layout set's virtual host name and language IDs- See Also:
-
toXmlString
- Specified by:
toXmlStringin interfaceLayoutSetModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctionsin interfaceBaseModel<LayoutSet>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumersin interfaceBaseModel<LayoutSet>
-
wrap
- Specified by:
wrapin classBaseModelWrapper<LayoutSet>
-