com.liferay.portal.model.impl
Class LayoutImpl
java.lang.Object
com.liferay.portal.model.impl.BaseModelImpl<Layout>
com.liferay.portal.model.impl.LayoutModelImpl
com.liferay.portal.model.impl.LayoutBaseImpl
com.liferay.portal.model.impl.LayoutImpl
- All Implemented Interfaces:
- BaseModel<Layout>, ClassedModel, Layout, LayoutModel, PersistedModel, Serializable, Cloneable, Comparable<Layout>
public class LayoutImpl
- extends LayoutBaseImpl
- See Also:
- Serialized Form
Fields inherited from class com.liferay.portal.model.impl.LayoutModelImpl |
COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, FRIENDLYURL_COLUMN_BITMASK, GROUPID_COLUMN_BITMASK, ICONIMAGEID_COLUMN_BITMASK, LAYOUTID_COLUMN_BITMASK, LAYOUTPROTOTYPEUUID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, ORDER_BY_JPQL, ORDER_BY_SQL, PARENTLAYOUTID_COLUMN_BITMASK, PRIVATELAYOUT_COLUMN_BITMASK, SESSION_FACTORY, SOURCEPROTOTYPELAYOUTUUID_COLUMN_BITMASK, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER, TYPE_COLUMN_BITMASK, UUID_COLUMN_BITMASK |
Methods inherited from class com.liferay.portal.model.impl.LayoutModelImpl |
clone, compareTo, equals, getColorSchemeId, getColumnBitmask, getCompanyId, getCreateDate, getCss, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getFriendlyURL, getGroupId, getHidden, getIconImage, getIconImageId, getKeywords, getKeywords, getKeywords, getKeywords, getKeywords, getKeywordsCurrentLanguageId, getKeywordsCurrentValue, getKeywordsMap, getLayoutId, getLayoutPrototypeLinkEnabled, getLayoutPrototypeUuid, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getName, getName, getName, getName, getName, getNameCurrentLanguageId, getNameCurrentValue, getNameMap, getOriginalCompanyId, getOriginalFriendlyURL, getOriginalGroupId, getOriginalIconImageId, getOriginalLayoutId, getOriginalLayoutPrototypeUuid, getOriginalParentLayoutId, getOriginalPrivateLayout, getOriginalSourcePrototypeLayoutUuid, getOriginalType, getOriginalUuid, getParentLayoutId, getPlid, getPrimaryKey, getPrimaryKeyObj, getPriority, getPrivateLayout, getRobots, getRobots, getRobots, getRobots, getRobots, getRobotsCurrentLanguageId, getRobotsCurrentValue, getRobotsMap, getSourcePrototypeLayoutUuid, getThemeId, getTitle, getTitle, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTitleMap, getType, getUuid, getWapColorSchemeId, getWapThemeId, hashCode, isHidden, isIconImage, isLayoutPrototypeLinkEnabled, isPrivateLayout, prepareLocalizedFieldsForImport, resetOriginalValues, setColorSchemeId, setCompanyId, setCreateDate, setCss, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setFriendlyURL, setHidden, setIconImage, setIconImageId, setKeywords, setKeywords, setKeywords, setKeywordsCurrentLanguageId, setKeywordsMap, setKeywordsMap, setLayoutId, setLayoutPrototypeLinkEnabled, setLayoutPrototypeUuid, setModelAttributes, setModifiedDate, setName, setName, setName, setNameCurrentLanguageId, setNameMap, setNameMap, setParentLayoutId, setPlid, setPrimaryKey, setPrimaryKeyObj, setPriority, setRobots, setRobots, setRobots, setRobotsCurrentLanguageId, setRobotsMap, setRobotsMap, setSourcePrototypeLayoutUuid, setThemeId, setTitle, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setType, setUuid, setWapColorSchemeId, setWapThemeId, toCacheModel, toEscapedModel, toModel, toModels, toString, toUnescapedModel, toXmlString |
Methods inherited from interface com.liferay.portal.model.LayoutModel |
clone, compareTo, getColorSchemeId, getCompanyId, getCreateDate, getCss, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getFriendlyURL, getGroupId, getHidden, getIconImage, getIconImageId, getKeywords, getKeywords, getKeywords, getKeywords, getKeywords, getKeywordsCurrentLanguageId, getKeywordsCurrentValue, getKeywordsMap, getLayoutId, getLayoutPrototypeLinkEnabled, getLayoutPrototypeUuid, getModifiedDate, getName, getName, getName, getName, getName, getNameCurrentLanguageId, getNameCurrentValue, getNameMap, getParentLayoutId, getPlid, getPrimaryKey, getPrimaryKeyObj, getPriority, getPrivateLayout, getRobots, getRobots, getRobots, getRobots, getRobots, getRobotsCurrentLanguageId, getRobotsCurrentValue, getRobotsMap, getSourcePrototypeLayoutUuid, getThemeId, getTitle, getTitle, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTitleMap, getType, getUuid, getWapColorSchemeId, getWapThemeId, hashCode, isCachedModel, isEscapedModel, isHidden, isIconImage, isLayoutPrototypeLinkEnabled, isNew, isPrivateLayout, prepareLocalizedFieldsForImport, setCachedModel, setColorSchemeId, setCompanyId, setCreateDate, setCss, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setFriendlyURL, setHidden, setIconImage, setIconImageId, setKeywords, setKeywords, setKeywords, setKeywordsCurrentLanguageId, setKeywordsMap, setKeywordsMap, setLayoutId, setLayoutPrototypeLinkEnabled, setLayoutPrototypeUuid, setModifiedDate, setName, setName, setName, setNameCurrentLanguageId, setNameMap, setNameMap, setNew, setParentLayoutId, setPlid, setPrimaryKey, setPrimaryKeyObj, setPriority, setRobots, setRobots, setRobots, setRobotsCurrentLanguageId, setRobotsMap, setRobotsMap, setSourcePrototypeLayoutUuid, setThemeId, setTitle, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setType, setUuid, setWapColorSchemeId, setWapThemeId, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString |
LayoutImpl
public LayoutImpl()
hasFriendlyURLKeyword
public static boolean hasFriendlyURLKeyword(String friendlyURL)
validateFriendlyURL
public static int validateFriendlyURL(String friendlyURL)
validateFriendlyURL
public static int validateFriendlyURL(String friendlyURL,
boolean checkMaxLength)
validateFriendlyURLKeyword
public static void validateFriendlyURLKeyword(String friendlyURL)
throws LayoutFriendlyURLException
- Throws:
LayoutFriendlyURLException
getAllChildren
public List<Layout> getAllChildren()
throws SystemException
- Throws:
SystemException
getAncestorLayoutId
public long getAncestorLayoutId()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getAncestorPlid
public long getAncestorPlid()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getAncestors
public List<Layout> getAncestors()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getChildren
public List<Layout> getChildren()
throws SystemException
- Throws:
SystemException
getChildren
public List<Layout> getChildren(PermissionChecker permissionChecker)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getColorScheme
public ColorScheme getColorScheme()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCssText
public String getCssText()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroup
public Group getGroup()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getHTMLTitle
public String getHTMLTitle(Locale locale)
getHTMLTitle
public String getHTMLTitle(String localeLanguageId)
getLayoutSet
public LayoutSet getLayoutSet()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLayoutType
public LayoutType getLayoutType()
getParentPlid
public long getParentPlid()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRegularURL
public String getRegularURL(javax.servlet.http.HttpServletRequest request)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getResetLayoutURL
public String getResetLayoutURL(javax.servlet.http.HttpServletRequest request)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getResetMaxStateURL
public String getResetMaxStateURL(javax.servlet.http.HttpServletRequest request)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getScopeGroup
public Group getScopeGroup()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTarget
public String getTarget()
getTheme
public Theme getTheme()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getThemeSetting
public String getThemeSetting(String key,
String device)
getTypeSettings
public String getTypeSettings()
- Description copied from interface:
LayoutModel
- Returns the type settings of this layout.
- Specified by:
getTypeSettings
in interface Layout
- Specified by:
getTypeSettings
in interface LayoutModel
- Overrides:
getTypeSettings
in class LayoutModelImpl
- Returns:
- the type settings of this layout
getTypeSettingsProperties
public UnicodeProperties getTypeSettingsProperties()
getTypeSettingsProperty
public String getTypeSettingsProperty(String key)
getTypeSettingsProperty
public String getTypeSettingsProperty(String key,
String defaultValue)
getWapColorScheme
public ColorScheme getWapColorScheme()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getWapTheme
public Theme getWapTheme()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasAncestor
public boolean hasAncestor(long layoutId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasChildren
public boolean hasChildren()
throws SystemException
- Throws:
SystemException
hasScopeGroup
public boolean hasScopeGroup()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
isChildSelected
public boolean isChildSelected(boolean selectable,
Layout layout)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
isContentDisplayPage
public boolean isContentDisplayPage()
isFirstChild
public boolean isFirstChild()
isFirstParent
public boolean isFirstParent()
isInheritLookAndFeel
public boolean isInheritLookAndFeel()
isInheritWapLookAndFeel
public boolean isInheritWapLookAndFeel()
isLayoutPrototypeLinkActive
public boolean isLayoutPrototypeLinkActive()
isPublicLayout
public boolean isPublicLayout()
isRootLayout
public boolean isRootLayout()
isSelected
public boolean isSelected(boolean selectable,
Layout layout,
long ancestorPlid)
isTypeArticle
public boolean isTypeArticle()
isTypeControlPanel
public boolean isTypeControlPanel()
isTypeEmbedded
public boolean isTypeEmbedded()
isTypeLinkToLayout
public boolean isTypeLinkToLayout()
isTypePanel
public boolean isTypePanel()
isTypePortlet
public boolean isTypePortlet()
isTypeURL
public boolean isTypeURL()
setGroupId
public void setGroupId(long groupId)
- Description copied from interface:
LayoutModel
- Sets the group ID of this layout.
- Specified by:
setGroupId
in interface Layout
- Specified by:
setGroupId
in interface LayoutModel
- Overrides:
setGroupId
in class LayoutModelImpl
- Parameters:
groupId
- the group ID of this layout
setLayoutSet
public void setLayoutSet(LayoutSet layoutSet)
setPrivateLayout
public void setPrivateLayout(boolean privateLayout)
- Description copied from interface:
LayoutModel
- Sets whether this layout is private layout.
- Specified by:
setPrivateLayout
in interface Layout
- Specified by:
setPrivateLayout
in interface LayoutModel
- Overrides:
setPrivateLayout
in class LayoutModelImpl
- Parameters:
privateLayout
- the private layout of this layout
setTypeSettings
public void setTypeSettings(String typeSettings)
- Description copied from interface:
LayoutModel
- Sets the type settings of this layout.
- Specified by:
setTypeSettings
in interface Layout
- Specified by:
setTypeSettings
in interface LayoutModel
- Overrides:
setTypeSettings
in class LayoutModelImpl
- Parameters:
typeSettings
- the type settings of this layout
setTypeSettingsProperties
public void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)