Package com.liferay.portal.kernel.model
Interface LayoutSet
- All Superinterfaces:
BaseModel<LayoutSet>
,ClassedModel
,Cloneable
,Comparable<LayoutSet>
,CTModel<LayoutSet>
,LayoutSetModel
,MVCCModel
,PersistedModel
,Serializable
,ShardedModel
- All Known Implementing Classes:
LayoutSetWrapper
The extended model interface for the LayoutSet service. Represents a row in the "LayoutSet" database table, with each column mapped to a property of this class.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the layout set's color scheme.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()
int
getTheme()
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
setSettingsProperties
(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 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, getSettings, getThemeId, isLayoutSetPrototypeLinkEnabled, isPrivateLayout, setColorSchemeId, setCompanyId, setCreateDate, setCss, setCtCollectionId, setFaviconFileEntryId, setGroupId, setLayoutSetId, setLayoutSetPrototypeLinkEnabled, setLayoutSetPrototypeUuid, setLogoId, setModifiedDate, setMvccVersion, setPrimaryKey, setPrivateLayout, setSettings, setThemeId, toXmlString
Methods inherited from interface com.liferay.portal.kernel.model.PersistedModel
persist
-
Field Details
-
LAYOUT_SET_ID_ACCESSOR
-
-
Method Details
-
getColorScheme
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
String getCompanyFallbackVirtualHostname() -
getFaviconURL
String getFaviconURL() -
getGroup
Returns the layout set's group.- Returns:
- the layout set's group
- Throws:
PortalException
-
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.
- Returns:
- the layout set prototype's ID, or
0
if it has no layout set prototype - Throws:
PortalException
-
getLiveLogoId
long getLiveLogoId() -
getLogo
boolean getLogo() -
getMergeFailFriendlyURLLayouts
-
getPageCount
int getPageCount() -
getSettingsProperties
UnicodeProperties getSettingsProperties() -
getSettingsProperty
-
getTheme
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.
- 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
boolean hasSetModifiedDate() -
isLayoutSetPrototypeLinkActive
boolean isLayoutSetPrototypeLinkActive() -
isLayoutSetPrototypeUpdateable
boolean isLayoutSetPrototypeUpdateable() -
isLayoutSetReadyForPropagation
boolean isLayoutSetReadyForPropagation() -
isLogo
boolean isLogo() -
setCompanyFallbackVirtualHostname
-
setSettingsProperties
-
setVirtualHostnames
Sets the names of the layout set's virtual host name and language IDs.- Parameters:
virtualHostnames
- the map of the layout set's virtual host name and language IDs- See Also:
-