public class LayoutSetWrapper extends BaseModelWrapper<LayoutSet> implements LayoutSet, ModelWrapper<LayoutSet>
This class is a wrapper for LayoutSet
.
LayoutSet
,
Serialized Formmodel
LAYOUT_SET_ID_ACCESSOR
Constructor and Description |
---|
LayoutSetWrapper(LayoutSet layoutSet) |
Modifier and Type | Method and Description |
---|---|
LayoutSet |
cloneWithOriginalValues() |
Map<String,Function<LayoutSet,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<LayoutSet,Object>> |
getAttributeSetterBiConsumers() |
ColorScheme |
getColorScheme()
Returns the layout set's color scheme.
|
String |
getColorSchemeId()
Returns the color scheme ID of this layout set.
|
String |
getCompanyFallbackVirtualHostname() |
long |
getCompanyId()
Returns the company ID of this layout set.
|
Date |
getCreateDate()
Returns the create date of this layout set.
|
String |
getCss()
Returns the css of this layout set.
|
long |
getCtCollectionId()
Returns the ct collection ID of this layout set.
|
Group |
getGroup()
Returns the layout set's group.
|
long |
getGroupId()
Returns the group ID of this layout set.
|
long |
getLayoutSetId()
Returns the layout set ID of this layout set.
|
long |
getLayoutSetPrototypeId()
Returns the layout set prototype's ID, or
0 if it has no
layout set prototype. |
boolean |
getLayoutSetPrototypeLinkEnabled()
Returns the layout set prototype link enabled of this layout set.
|
String |
getLayoutSetPrototypeUuid()
Returns the layout set prototype uuid of this layout set.
|
long |
getLiveLogoId() |
boolean |
getLogo() |
long |
getLogoId()
Returns the logo ID of this layout set.
|
Map<String,Object> |
getModelAttributes() |
Date |
getModifiedDate()
Returns the modified date of this layout set.
|
long |
getMvccVersion()
Returns the mvcc version of this layout set.
|
int |
getPageCount() |
long |
getPrimaryKey()
Returns the primary key of this layout set.
|
boolean |
getPrivateLayout()
Returns the private layout of this layout set.
|
String |
getSettings()
Returns the settings of this layout set.
|
UnicodeProperties |
getSettingsProperties() |
String |
getSettingsProperty(String key) |
Theme |
getTheme() |
String |
getThemeId()
Returns the theme ID of this layout set.
|
String |
getThemeSetting(String key,
String device) |
String |
getVirtualHostname()
Deprecated.
As of Mueller (7.2.x), replaced by
getVirtualHostnames() |
TreeMap<String,String> |
getVirtualHostnames()
Returns the names of the layout set's virtual hosts.
|
boolean |
hasSetModifiedDate() |
boolean |
isLayoutSetPrototypeLinkActive() |
boolean |
isLayoutSetPrototypeLinkEnabled()
Returns
true if this layout set is layout set prototype link enabled. |
boolean |
isLogo() |
boolean |
isPrivateLayout()
Returns
true 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 |
setCss(String css)
Sets the css of this layout set.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection 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 |
setVirtualHostname(String virtualHostname)
Deprecated.
As of Mueller (7.2.x), replaced by
setVirtualHostnames(TreeMap) |
void |
setVirtualHostnames(TreeMap<String,String> virtualHostnames)
Sets the names of the layout set's virtual host name and language IDs.
|
protected LayoutSetWrapper |
wrap(LayoutSet layoutSet) |
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, toXmlString
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
getWrappedModel
public LayoutSetWrapper(LayoutSet layoutSet)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<LayoutSet>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<LayoutSet>
public LayoutSet cloneWithOriginalValues()
cloneWithOriginalValues
in interface BaseModel<LayoutSet>
cloneWithOriginalValues
in interface LayoutSetModel
public ColorScheme getColorScheme()
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.
getColorScheme
in interface LayoutSet
public String getColorSchemeId()
getColorSchemeId
in interface LayoutSetModel
public String getCompanyFallbackVirtualHostname()
getCompanyFallbackVirtualHostname
in interface LayoutSet
public long getCompanyId()
getCompanyId
in interface LayoutSetModel
getCompanyId
in interface ShardedModel
public Date getCreateDate()
getCreateDate
in interface LayoutSetModel
public String getCss()
getCss
in interface LayoutSetModel
public long getCtCollectionId()
getCtCollectionId
in interface CTModel<LayoutSet>
getCtCollectionId
in interface LayoutSetModel
public Group getGroup() throws PortalException
getGroup
in interface LayoutSet
PortalException
public long getGroupId()
getGroupId
in interface LayoutSetModel
public long getLayoutSetId()
getLayoutSetId
in interface LayoutSetModel
public long getLayoutSetPrototypeId() throws PortalException
0
if it has no
layout set prototype.
Prototype is Liferay's technical name for a site template.
getLayoutSetPrototypeId
in interface LayoutSet
0
if it has no
layout set prototypePortalException
public boolean getLayoutSetPrototypeLinkEnabled()
getLayoutSetPrototypeLinkEnabled
in interface LayoutSetModel
public String getLayoutSetPrototypeUuid()
getLayoutSetPrototypeUuid
in interface LayoutSetModel
public long getLiveLogoId()
getLiveLogoId
in interface LayoutSet
public long getLogoId()
getLogoId
in interface LayoutSetModel
public Date getModifiedDate()
getModifiedDate
in interface LayoutSetModel
public long getMvccVersion()
getMvccVersion
in interface LayoutSetModel
getMvccVersion
in interface MVCCModel
public int getPageCount()
getPageCount
in interface LayoutSet
public long getPrimaryKey()
getPrimaryKey
in interface CTModel<LayoutSet>
getPrimaryKey
in interface LayoutSetModel
public boolean getPrivateLayout()
getPrivateLayout
in interface LayoutSetModel
public String getSettings()
getSettings
in interface LayoutSetModel
public UnicodeProperties getSettingsProperties()
getSettingsProperties
in interface LayoutSet
public String getSettingsProperty(String key)
getSettingsProperty
in interface LayoutSet
public String getThemeId()
getThemeId
in interface LayoutSetModel
public String getThemeSetting(String key, String device)
getThemeSetting
in interface LayoutSet
@Deprecated public String getVirtualHostname()
getVirtualHostnames()
When accessing a layout set that has a virtual host, the URL elements "/web/sitename" or "/group/sitename" can be omitted.
getVirtualHostname
in interface LayoutSet
public TreeMap<String,String> getVirtualHostnames()
When accessing a layout set that has a virtual host, the URL elements "/web/sitename" or "/group/sitename" can be omitted.
getVirtualHostnames
in interface LayoutSet
public boolean hasSetModifiedDate()
hasSetModifiedDate
in interface LayoutSet
public boolean isLayoutSetPrototypeLinkActive()
isLayoutSetPrototypeLinkActive
in interface LayoutSet
public boolean isLayoutSetPrototypeLinkEnabled()
true
if this layout set is layout set prototype link enabled.isLayoutSetPrototypeLinkEnabled
in interface LayoutSetModel
true
if this layout set is layout set prototype link enabled; false
otherwisepublic boolean isPrivateLayout()
true
if this layout set is private layout.isPrivateLayout
in interface LayoutSetModel
true
if this layout set is private layout; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setColorSchemeId(String colorSchemeId)
setColorSchemeId
in interface LayoutSetModel
colorSchemeId
- the color scheme ID of this layout setpublic void setCompanyFallbackVirtualHostname(String companyFallbackVirtualHostname)
setCompanyFallbackVirtualHostname
in interface LayoutSet
public void setCompanyId(long companyId)
setCompanyId
in interface LayoutSetModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this layout setpublic void setCreateDate(Date createDate)
setCreateDate
in interface LayoutSetModel
createDate
- the create date of this layout setpublic void setCss(String css)
setCss
in interface LayoutSetModel
css
- the css of this layout setpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CTModel<LayoutSet>
setCtCollectionId
in interface LayoutSetModel
ctCollectionId
- the ct collection ID of this layout setpublic void setGroupId(long groupId)
setGroupId
in interface LayoutSetModel
groupId
- the group ID of this layout setpublic void setLayoutSetId(long layoutSetId)
setLayoutSetId
in interface LayoutSetModel
layoutSetId
- the layout set ID of this layout setpublic void setLayoutSetPrototypeLinkEnabled(boolean layoutSetPrototypeLinkEnabled)
setLayoutSetPrototypeLinkEnabled
in interface LayoutSetModel
layoutSetPrototypeLinkEnabled
- the layout set prototype link enabled of this layout setpublic void setLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
setLayoutSetPrototypeUuid
in interface LayoutSetModel
layoutSetPrototypeUuid
- the layout set prototype uuid of this layout setpublic void setLogoId(long logoId)
setLogoId
in interface LayoutSetModel
logoId
- the logo ID of this layout setpublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface LayoutSetModel
modifiedDate
- the modified date of this layout setpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface LayoutSetModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this layout setpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<LayoutSet>
setPrimaryKey
in interface LayoutSetModel
primaryKey
- the primary key of this layout setpublic void setPrivateLayout(boolean privateLayout)
setPrivateLayout
in interface LayoutSetModel
privateLayout
- the private layout of this layout setpublic void setSettings(String settings)
setSettings
in interface LayoutSetModel
settings
- the settings of this layout setpublic void setSettingsProperties(UnicodeProperties settingsUnicodeProperties)
setSettingsProperties
in interface LayoutSet
public void setThemeId(String themeId)
setThemeId
in interface LayoutSetModel
themeId
- the theme ID of this layout set@Deprecated public void setVirtualHostname(String virtualHostname)
setVirtualHostnames(TreeMap)
setVirtualHostname
in interface LayoutSet
virtualHostname
- the name of the layout set's virtual hostgetVirtualHostname()
public void setVirtualHostnames(TreeMap<String,String> virtualHostnames)
setVirtualHostnames
in interface LayoutSet
virtualHostnames
- the map of the layout set's virtual host name and
language IDsgetVirtualHostnames()
public Map<String,Function<LayoutSet,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<LayoutSet>
public Map<String,BiConsumer<LayoutSet,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<LayoutSet>
protected LayoutSetWrapper wrap(LayoutSet layoutSet)
wrap
in class BaseModelWrapper<LayoutSet>