public class LayoutSetImpl extends LayoutSetBaseImpl
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.
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_MANAGER
Constructor and Description |
---|
LayoutSetImpl() |
Modifier and Type | Method and Description |
---|---|
com.liferay.portal.kernel.model.ColorScheme |
getColorScheme()
Returns the layout set's color scheme.
|
String |
getCompanyFallbackVirtualHostname() |
String |
getFaviconURL() |
com.liferay.portal.kernel.model.Group |
getGroup()
Returns the layout set's group.
|
long |
getLayoutSetPrototypeId()
Returns the layout set prototype's ID, or
0 if it has no
layout set prototype. |
long |
getLiveLogoId() |
boolean |
getLogo() |
List<com.liferay.portal.kernel.model.Layout> |
getMergeFailFriendlyURLLayouts() |
int |
getPageCount() |
String |
getSettings() |
com.liferay.portal.kernel.util.UnicodeProperties |
getSettingsProperties() |
String |
getSettingsProperty(String key) |
com.liferay.portal.kernel.model.Theme |
getTheme() |
protected com.liferay.portal.kernel.model.Theme |
getTheme(String device) |
String |
getThemeSetting(String key,
String device) |
TreeMap<String,String> |
getVirtualHostnames()
Returns the names of the layout set's virtual hosts.
|
boolean |
hasSetModifiedDate() |
boolean |
isLayoutSetPrototypeLinkActive() |
boolean |
isLayoutSetPrototypeUpdateable() |
boolean |
isLayoutSetReadyForPropagation() |
boolean |
isLogo() |
void |
setCompanyFallbackVirtualHostname(String companyFallbackVirtualHostname) |
void |
setSettings(String settings) |
void |
setSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties settingsUnicodeProperties) |
void |
setVirtualHostnames(TreeMap<String,String> virtualHostnames)
Sets the names of the layout set's virtual host name and language IDs.
|
persist
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, toString
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
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
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
public com.liferay.portal.kernel.model.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.
public String getCompanyFallbackVirtualHostname()
getCompanyFallbackVirtualHostname
in interface com.liferay.portal.kernel.model.LayoutSet
getCompanyFallbackVirtualHostname
in class LayoutSetModelImpl
public String getFaviconURL()
public com.liferay.portal.kernel.model.Group getGroup() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public long getLayoutSetPrototypeId() throws com.liferay.portal.kernel.exception.PortalException
0
if it has no
layout set prototype.
Prototype is Liferay's technical name for a site template.
0
if it has no
layout set prototypecom.liferay.portal.kernel.exception.PortalException
public long getLiveLogoId()
public boolean getLogo()
public List<com.liferay.portal.kernel.model.Layout> getMergeFailFriendlyURLLayouts()
public int getPageCount()
public String getSettings()
getSettings
in interface com.liferay.portal.kernel.model.LayoutSetModel
getSettings
in class LayoutSetModelImpl
public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties()
public String getSettingsProperty(String key)
public com.liferay.portal.kernel.model.Theme getTheme()
public String getThemeSetting(String key, String device)
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 com.liferay.portal.kernel.model.LayoutSet
getVirtualHostnames
in class LayoutSetModelImpl
public boolean hasSetModifiedDate()
hasSetModifiedDate
in interface com.liferay.portal.kernel.model.LayoutSet
hasSetModifiedDate
in class LayoutSetModelImpl
public boolean isLayoutSetPrototypeLinkActive()
public boolean isLayoutSetPrototypeUpdateable()
public boolean isLayoutSetReadyForPropagation()
public boolean isLogo()
public void setCompanyFallbackVirtualHostname(String companyFallbackVirtualHostname)
setCompanyFallbackVirtualHostname
in interface com.liferay.portal.kernel.model.LayoutSet
setCompanyFallbackVirtualHostname
in class LayoutSetModelImpl
public void setSettings(String settings)
setSettings
in interface com.liferay.portal.kernel.model.LayoutSetModel
setSettings
in class LayoutSetModelImpl
public void setSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties settingsUnicodeProperties)
public void setVirtualHostnames(TreeMap<String,String> virtualHostnames)
setVirtualHostnames
in interface com.liferay.portal.kernel.model.LayoutSet
setVirtualHostnames
in class LayoutSetModelImpl
virtualHostnames
- the map of the layout set's virtual host name and
language IDsgetVirtualHostnames()
protected com.liferay.portal.kernel.model.Theme getTheme(String device)