|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<LayoutSet>
com.liferay.portal.model.impl.LayoutSetModelImpl
com.liferay.portal.model.impl.LayoutSetBaseImpl
com.liferay.portal.model.impl.LayoutSetImpl
public class LayoutSetImpl
Represents a portal layout set, providing access to the layout set's color schemes, groups, prototypes, themes, and more.
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.
| Field Summary |
|---|
| Fields inherited from class com.liferay.portal.model.impl.LayoutSetModelImpl |
|---|
COLUMN_BITMASK_ENABLED, DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, GROUPID_COLUMN_BITMASK, LAYOUTSETID_COLUMN_BITMASK, LAYOUTSETPROTOTYPEUUID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, 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 |
| Fields inherited from interface com.liferay.portal.model.LayoutSet |
|---|
LAYOUT_SET_ID_ACCESSOR |
| Constructor Summary | |
|---|---|
LayoutSetImpl()
|
|
| Method Summary | |
|---|---|
ColorScheme |
getColorScheme()
Returns the layout set's color scheme. |
String |
getCompanyFallbackVirtualHostname()
|
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()
|
String |
getSettings()
Returns the settings of this layout set. |
UnicodeProperties |
getSettingsProperties()
|
String |
getSettingsProperty(String key)
|
Theme |
getTheme()
|
protected Theme |
getTheme(String device)
|
String |
getThemeSetting(String key,
String device)
|
String |
getVirtualHostname()
Returns the name of the layout set's virtual host. |
ColorScheme |
getWapColorScheme()
|
Theme |
getWapTheme()
|
boolean |
hasSetModifiedDate()
|
boolean |
isLayoutSetPrototypeLinkActive()
|
boolean |
isLogo()
|
void |
setCompanyFallbackVirtualHostname(String companyFallbackVirtualHostname)
|
void |
setSettings(String settings)
Sets the settings of this layout set. |
void |
setSettingsProperties(UnicodeProperties settingsProperties)
|
void |
setVirtualHostname(String virtualHostname)
Sets the name of the layout set's virtual host. |
| Methods inherited from class com.liferay.portal.model.impl.LayoutSetBaseImpl |
|---|
persist |
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
|---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.model.BaseModel |
|---|
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributes |
| Methods inherited from interface com.liferay.portal.model.ClassedModel |
|---|
getModelClass, getModelClassName |
| Constructor Detail |
|---|
public LayoutSetImpl()
| Method Detail |
|---|
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.
public String getCompanyFallbackVirtualHostname()
getCompanyFallbackVirtualHostname in interface LayoutSetgetCompanyFallbackVirtualHostname in class LayoutSetModelImpl
public Group getGroup()
throws PortalException
PortalException
public long getLayoutSetPrototypeId()
throws 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 prototype
PortalExceptionpublic long getLiveLogoId()
public boolean getLogo()
public String getSettings()
LayoutSetModel
getSettings in interface LayoutSetModelgetSettings in class LayoutSetModelImplpublic UnicodeProperties getSettingsProperties()
public String getSettingsProperty(String key)
public Theme getTheme()
public String getThemeSetting(String key,
String device)
public String getVirtualHostname()
When accessing a layout set that has a the virtual host, the URL elements "/web/sitename" or "/group/sitename" can be omitted.
getVirtualHostname in interface LayoutSetgetVirtualHostname in class LayoutSetModelImplpublic ColorScheme getWapColorScheme()
public Theme getWapTheme()
public boolean hasSetModifiedDate()
hasSetModifiedDate in interface LayoutSethasSetModifiedDate in class LayoutSetModelImplpublic boolean isLayoutSetPrototypeLinkActive()
public boolean isLogo()
public void setCompanyFallbackVirtualHostname(String companyFallbackVirtualHostname)
setCompanyFallbackVirtualHostname in interface LayoutSetsetCompanyFallbackVirtualHostname in class LayoutSetModelImplpublic void setSettings(String settings)
LayoutSetModel
setSettings in interface LayoutSetModelsetSettings in class LayoutSetModelImplsettings - the settings of this layout setpublic void setSettingsProperties(UnicodeProperties settingsProperties)
public void setVirtualHostname(String virtualHostname)
setVirtualHostname in interface LayoutSetsetVirtualHostname in class LayoutSetModelImplvirtualHostname - the name of the layout set's virtual hostgetVirtualHostname()protected Theme getTheme(String device)
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||