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
model
Fields 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.long
Returns the company ID of this layout set.Returns the create date of this layout set.getCss()
Returns the css of this layout set.long
Returns the ct collection ID of this layout set.long
Returns the favicon file entry ID of this layout set.getGroup()
Returns the layout set's group.long
Returns the group ID of this layout set.long
Returns the layout set ID of this layout set.long
Returns the layout set prototype's ID, or0
if it has no layout set prototype.boolean
Returns the layout set prototype link enabled of this layout set.Returns the layout set prototype uuid of this layout set.long
boolean
getLogo()
long
Returns the logo ID of this layout set.Returns the modified date of this layout set.long
Returns the mvcc version of this layout set.int
long
Returns the primary key of this layout set.boolean
Returns 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.boolean
boolean
boolean
Returnstrue
if this layout set is layout set prototype link enabled.boolean
boolean
boolean
isLogo()
boolean
Returnstrue
if this layout set is private layout.void
persist()
Updates this model instance in the database or adds it if it does not yet exist.void
setColorSchemeId
(String colorSchemeId) Sets the color scheme ID of this layout set.void
setCompanyFallbackVirtualHostname
(String companyFallbackVirtualHostname) void
setCompanyId
(long companyId) Sets the company ID of this layout set.void
setCreateDate
(Date createDate) Sets the create date of this layout set.void
Sets the css of this layout set.void
setCtCollectionId
(long ctCollectionId) Sets the ct collection ID of this layout set.void
setFaviconFileEntryId
(long faviconFileEntryId) Sets the favicon file entry ID of this layout set.void
setGroupId
(long groupId) Sets the group ID of this layout set.void
setLayoutSetId
(long layoutSetId) Sets the layout set ID of this layout set.void
setLayoutSetPrototypeLinkEnabled
(boolean layoutSetPrototypeLinkEnabled) Sets whether this layout set is layout set prototype link enabled.void
setLayoutSetPrototypeUuid
(String layoutSetPrototypeUuid) Sets the layout set prototype uuid of this layout set.void
setLogoId
(long logoId) Sets the logo ID of this layout set.void
setModelAttributes
(Map<String, Object> attributes) void
setModifiedDate
(Date modifiedDate) Sets the modified date of this layout set.void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this layout set.void
setPrimaryKey
(long primaryKey) Sets the primary key of this layout set.void
setPrivateLayout
(boolean privateLayout) Sets whether this layout set is private layout.void
setSettings
(String settings) Sets the settings of this layout set.void
setSettingsProperties
(UnicodeProperties settingsUnicodeProperties) void
setThemeId
(String themeId) Sets the theme ID of this layout set.void
setVirtualHostnames
(TreeMap<String, String> virtualHostnames) Sets the names of the layout set's virtual host name and language IDs.protected LayoutSetWrapper
Methods 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, 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, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, 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.ModelWrapper
getWrappedModel
-
Constructor Details
-
LayoutSetWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<LayoutSet>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<LayoutSet>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<LayoutSet>
- Specified by:
cloneWithOriginalValues
in 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:
getColorScheme
in interfaceLayoutSet
- Returns:
- the layout set's color scheme
-
getColorSchemeId
Returns the color scheme ID of this layout set.- Specified by:
getColorSchemeId
in interfaceLayoutSetModel
- Returns:
- the color scheme ID of this layout set
-
getCompanyFallbackVirtualHostname
- Specified by:
getCompanyFallbackVirtualHostname
in interfaceLayoutSet
-
getCompanyId
public long getCompanyId()Returns the company ID of this layout set.- Specified by:
getCompanyId
in interfaceLayoutSetModel
- Specified by:
getCompanyId
in interfaceShardedModel
- Returns:
- the company ID of this layout set
-
getCreateDate
Returns the create date of this layout set.- Specified by:
getCreateDate
in interfaceLayoutSetModel
- Returns:
- the create date of this layout set
-
getCss
Returns the css of this layout set.- Specified by:
getCss
in interfaceLayoutSetModel
- Returns:
- the css of this layout set
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this layout set.- Specified by:
getCtCollectionId
in interfaceCTModel<LayoutSet>
- Specified by:
getCtCollectionId
in 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:
getFaviconFileEntryId
in interfaceLayoutSetModel
- Returns:
- the favicon file entry ID of this layout set
-
getFaviconURL
- Specified by:
getFaviconURL
in interfaceLayoutSet
-
getGroup
Returns the layout set's group.- Specified by:
getGroup
in interfaceLayoutSet
- Returns:
- the layout set's group
- Throws:
PortalException
-
getGroupId
public long getGroupId()Returns the group ID of this layout set.- Specified by:
getGroupId
in interfaceLayoutSetModel
- Returns:
- the group ID of this layout set
-
getLayoutSetId
public long getLayoutSetId()Returns the layout set ID of this layout set.- Specified by:
getLayoutSetId
in interfaceLayoutSetModel
- Returns:
- the layout set ID of this layout set
-
getLayoutSetPrototypeId
Returns the layout set prototype's ID, or0
if it has no layout set prototype.Prototype is Liferay's technical name for a site template.
- Specified by:
getLayoutSetPrototypeId
in interfaceLayoutSet
- Returns:
- the layout set prototype's ID, or
0
if 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:
getLayoutSetPrototypeLinkEnabled
in 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:
getLayoutSetPrototypeUuid
in interfaceLayoutSetModel
- Returns:
- the layout set prototype uuid of this layout set
-
getLiveLogoId
public long getLiveLogoId()- Specified by:
getLiveLogoId
in interfaceLayoutSet
-
getLogo
public boolean getLogo() -
getLogoId
public long getLogoId()Returns the logo ID of this layout set.- Specified by:
getLogoId
in interfaceLayoutSetModel
- Returns:
- the logo ID of this layout set
-
getMergeFailFriendlyURLLayouts
- Specified by:
getMergeFailFriendlyURLLayouts
in interfaceLayoutSet
-
getModifiedDate
Returns the modified date of this layout set.- Specified by:
getModifiedDate
in interfaceLayoutSetModel
- Returns:
- the modified date of this layout set
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this layout set.- Specified by:
getMvccVersion
in interfaceLayoutSetModel
- Specified by:
getMvccVersion
in interfaceMVCCModel
- Returns:
- the mvcc version of this layout set
-
getPageCount
public int getPageCount()- Specified by:
getPageCount
in interfaceLayoutSet
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this layout set.- Specified by:
getPrimaryKey
in interfaceCTModel<LayoutSet>
- Specified by:
getPrimaryKey
in interfaceLayoutSetModel
- Returns:
- the primary key of this layout set
-
getPrivateLayout
public boolean getPrivateLayout()Returns the private layout of this layout set.- Specified by:
getPrivateLayout
in interfaceLayoutSetModel
- Returns:
- the private layout of this layout set
-
getSettings
Returns the settings of this layout set.- Specified by:
getSettings
in interfaceLayoutSetModel
- Returns:
- the settings of this layout set
-
getSettingsProperties
- Specified by:
getSettingsProperties
in interfaceLayoutSet
-
getSettingsProperty
- Specified by:
getSettingsProperty
in interfaceLayoutSet
-
getTheme
-
getThemeId
Returns the theme ID of this layout set.- Specified by:
getThemeId
in interfaceLayoutSetModel
- Returns:
- the theme ID of this layout set
-
getThemeSetting
- Specified by:
getThemeSetting
in 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:
getVirtualHostnames
in 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:
hasSetModifiedDate
in interfaceLayoutSet
-
isLayoutSetPrototypeLinkActive
public boolean isLayoutSetPrototypeLinkActive()- Specified by:
isLayoutSetPrototypeLinkActive
in interfaceLayoutSet
-
isLayoutSetPrototypeLinkEnabled
public boolean isLayoutSetPrototypeLinkEnabled()Returnstrue
if this layout set is layout set prototype link enabled.- Specified by:
isLayoutSetPrototypeLinkEnabled
in interfaceLayoutSetModel
- Returns:
true
if this layout set is layout set prototype link enabled;false
otherwise
-
isLayoutSetPrototypeUpdateable
public boolean isLayoutSetPrototypeUpdateable()- Specified by:
isLayoutSetPrototypeUpdateable
in interfaceLayoutSet
-
isLayoutSetReadyForPropagation
public boolean isLayoutSetReadyForPropagation()- Specified by:
isLayoutSetReadyForPropagation
in interfaceLayoutSet
-
isLogo
public boolean isLogo() -
isPrivateLayout
public boolean isPrivateLayout()Returnstrue
if this layout set is private layout.- Specified by:
isPrivateLayout
in interfaceLayoutSetModel
- Returns:
true
if this layout set is private layout;false
otherwise
-
persist
public void persist()Description copied from interface:PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persist
in interfacePersistedModel
-
setColorSchemeId
Sets the color scheme ID of this layout set.- Specified by:
setColorSchemeId
in interfaceLayoutSetModel
- Parameters:
colorSchemeId
- the color scheme ID of this layout set
-
setCompanyFallbackVirtualHostname
- Specified by:
setCompanyFallbackVirtualHostname
in interfaceLayoutSet
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this layout set.- Specified by:
setCompanyId
in interfaceLayoutSetModel
- Specified by:
setCompanyId
in interfaceShardedModel
- Parameters:
companyId
- the company ID of this layout set
-
setCreateDate
Sets the create date of this layout set.- Specified by:
setCreateDate
in interfaceLayoutSetModel
- Parameters:
createDate
- the create date of this layout set
-
setCss
Sets the css of this layout set.- Specified by:
setCss
in 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:
setCtCollectionId
in interfaceCTModel<LayoutSet>
- Specified by:
setCtCollectionId
in 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:
setFaviconFileEntryId
in 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:
setGroupId
in 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:
setLayoutSetId
in 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:
setLayoutSetPrototypeLinkEnabled
in 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:
setLayoutSetPrototypeUuid
in 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:
setLogoId
in interfaceLayoutSetModel
- Parameters:
logoId
- the logo ID of this layout set
-
setModifiedDate
Sets the modified date of this layout set.- Specified by:
setModifiedDate
in 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:
setMvccVersion
in interfaceLayoutSetModel
- Specified by:
setMvccVersion
in 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:
setPrimaryKey
in interfaceCTModel<LayoutSet>
- Specified by:
setPrimaryKey
in 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:
setPrivateLayout
in interfaceLayoutSetModel
- Parameters:
privateLayout
- the private layout of this layout set
-
setSettings
Sets the settings of this layout set.- Specified by:
setSettings
in interfaceLayoutSetModel
- Parameters:
settings
- the settings of this layout set
-
setSettingsProperties
- Specified by:
setSettingsProperties
in interfaceLayoutSet
-
setThemeId
Sets the theme ID of this layout set.- Specified by:
setThemeId
in 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:
setVirtualHostnames
in interfaceLayoutSet
- Parameters:
virtualHostnames
- the map of the layout set's virtual host name and language IDs- See Also:
-
toXmlString
- Specified by:
toXmlString
in interfaceLayoutSetModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfaceBaseModel<LayoutSet>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfaceBaseModel<LayoutSet>
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<LayoutSet>
-