com.liferay.portal.model.impl
Class LayoutImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Layout>
      extended by com.liferay.portal.model.impl.LayoutModelImpl
          extended by com.liferay.portal.model.impl.LayoutBaseImpl
              extended by com.liferay.portal.model.impl.LayoutImpl
All Implemented Interfaces:
com.liferay.portal.model.BaseModel<com.liferay.portal.model.Layout>, com.liferay.portal.model.ClassedModel, com.liferay.portal.model.Layout, com.liferay.portal.model.LayoutModel, com.liferay.portal.model.PersistedModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portal.model.Layout>

public class LayoutImpl
extends LayoutBaseImpl

Author:
Brian Wing Shun Chan
See Also:
Serialized Form

Field Summary
 
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, 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
 
Fields inherited from interface com.liferay.portal.model.Layout
LAYOUT_ID_ACCESSOR
 
Constructor Summary
LayoutImpl()
           
 
Method Summary
 java.util.List<com.liferay.portal.model.Layout> getAllChildren()
           
 long getAncestorLayoutId()
           
 long getAncestorPlid()
           
 java.util.List<com.liferay.portal.model.Layout> getAncestors()
           
 java.util.List<com.liferay.portal.model.Layout> getChildren()
           
 java.util.List<com.liferay.portal.model.Layout> getChildren(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
           
 com.liferay.portal.model.ColorScheme getColorScheme()
           
 java.lang.String getCssText()
           
 com.liferay.portal.model.Group getGroup()
           
 java.lang.String getHTMLTitle(java.util.Locale locale)
           
 java.lang.String getHTMLTitle(java.lang.String localeLanguageId)
           
 com.liferay.portal.model.LayoutSet getLayoutSet()
           
 com.liferay.portal.model.LayoutType getLayoutType()
           
 long getParentPlid()
           
 java.lang.String getRegularURL(javax.servlet.http.HttpServletRequest request)
           
 java.lang.String getResetLayoutURL(javax.servlet.http.HttpServletRequest request)
           
 java.lang.String getResetMaxStateURL(javax.servlet.http.HttpServletRequest request)
           
 com.liferay.portal.model.Group getScopeGroup()
           
 java.lang.String getTarget()
           
 com.liferay.portal.model.Theme getTheme()
           
 java.lang.String getThemeSetting(java.lang.String key, java.lang.String device)
           
 java.lang.String getTypeSettings()
           
 com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties()
           
 java.lang.String getTypeSettingsProperty(java.lang.String key)
           
 java.lang.String getTypeSettingsProperty(java.lang.String key, java.lang.String defaultValue)
           
 com.liferay.portal.model.ColorScheme getWapColorScheme()
           
 com.liferay.portal.model.Theme getWapTheme()
           
 boolean hasAncestor(long layoutId)
           
 boolean hasChildren()
           
 boolean hasScopeGroup()
           
 boolean isChildSelected(boolean selectable, com.liferay.portal.model.Layout layout)
           
 boolean isContentDisplayPage()
           
 boolean isFirstChild()
           
 boolean isFirstParent()
           
 boolean isInheritLookAndFeel()
           
 boolean isInheritWapLookAndFeel()
           
 boolean isLayoutPrototypeLinkActive()
           
 boolean isPublicLayout()
           
 boolean isRootLayout()
           
 boolean isSelected(boolean selectable, com.liferay.portal.model.Layout layout, long ancestorPlid)
           
 boolean isTypeArticle()
           
 boolean isTypeControlPanel()
           
 boolean isTypeEmbedded()
           
 boolean isTypeLinkToLayout()
           
 boolean isTypePanel()
           
 boolean isTypePortlet()
           
 boolean isTypeURL()
           
 void setGroupId(long groupId)
           
 void setLayoutSet(com.liferay.portal.model.LayoutSet layoutSet)
           
 void setPrivateLayout(boolean privateLayout)
           
 void setTypeSettings(java.lang.String typeSettings)
           
 void setTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
           
static int validateFriendlyURL(java.lang.String friendlyURL)
           
static void validateFriendlyURLKeyword(java.lang.String friendlyURL)
           
 
Methods inherited from class com.liferay.portal.model.impl.LayoutBaseImpl
persist
 
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, getModelClass, getModelClassName, getModifiedDate, getName, getName, getName, getName, getName, getNameCurrentLanguageId, getNameCurrentValue, getNameMap, getOriginalCompanyId, getOriginalFriendlyURL, getOriginalGroupId, getOriginalIconImageId, getOriginalLayoutId, 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, 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, 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, toXmlString
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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, 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, toXmlString
 
Methods inherited from interface com.liferay.portal.model.BaseModel
resetOriginalValues
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 

Constructor Detail

LayoutImpl

public LayoutImpl()
Method Detail

validateFriendlyURL

public static int validateFriendlyURL(java.lang.String friendlyURL)

validateFriendlyURLKeyword

public static void validateFriendlyURLKeyword(java.lang.String friendlyURL)
                                       throws com.liferay.portal.LayoutFriendlyURLException
Throws:
com.liferay.portal.LayoutFriendlyURLException

getAllChildren

public java.util.List<com.liferay.portal.model.Layout> getAllChildren()
                                                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getAncestorLayoutId

public long getAncestorLayoutId()
                         throws com.liferay.portal.kernel.exception.PortalException,
                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getAncestorPlid

public long getAncestorPlid()
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getAncestors

public java.util.List<com.liferay.portal.model.Layout> getAncestors()
                                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getChildren

public java.util.List<com.liferay.portal.model.Layout> getChildren()
                                                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getChildren

public java.util.List<com.liferay.portal.model.Layout> getChildren(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
                                                            throws com.liferay.portal.kernel.exception.PortalException,
                                                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getColorScheme

public com.liferay.portal.model.ColorScheme getColorScheme()
                                                    throws com.liferay.portal.kernel.exception.PortalException,
                                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCssText

public java.lang.String getCssText()
                            throws com.liferay.portal.kernel.exception.PortalException,
                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroup

public com.liferay.portal.model.Group getGroup()
                                        throws com.liferay.portal.kernel.exception.PortalException,
                                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getHTMLTitle

public java.lang.String getHTMLTitle(java.util.Locale locale)

getHTMLTitle

public java.lang.String getHTMLTitle(java.lang.String localeLanguageId)

getLayoutSet

public com.liferay.portal.model.LayoutSet getLayoutSet()
                                                throws com.liferay.portal.kernel.exception.PortalException,
                                                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getLayoutType

public com.liferay.portal.model.LayoutType getLayoutType()

getParentPlid

public long getParentPlid()
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getRegularURL

public java.lang.String getRegularURL(javax.servlet.http.HttpServletRequest request)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getResetLayoutURL

public java.lang.String getResetLayoutURL(javax.servlet.http.HttpServletRequest request)
                                   throws com.liferay.portal.kernel.exception.PortalException,
                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getResetMaxStateURL

public java.lang.String getResetMaxStateURL(javax.servlet.http.HttpServletRequest request)
                                     throws com.liferay.portal.kernel.exception.PortalException,
                                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getScopeGroup

public com.liferay.portal.model.Group getScopeGroup()
                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getTarget

public java.lang.String getTarget()

getTheme

public com.liferay.portal.model.Theme getTheme()
                                        throws com.liferay.portal.kernel.exception.PortalException,
                                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getThemeSetting

public java.lang.String getThemeSetting(java.lang.String key,
                                        java.lang.String device)

getTypeSettings

public java.lang.String getTypeSettings()
Specified by:
getTypeSettings in interface com.liferay.portal.model.Layout
Specified by:
getTypeSettings in interface com.liferay.portal.model.LayoutModel
Overrides:
getTypeSettings in class LayoutModelImpl

getTypeSettingsProperties

public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties()

getTypeSettingsProperty

public java.lang.String getTypeSettingsProperty(java.lang.String key)

getTypeSettingsProperty

public java.lang.String getTypeSettingsProperty(java.lang.String key,
                                                java.lang.String defaultValue)

getWapColorScheme

public com.liferay.portal.model.ColorScheme getWapColorScheme()
                                                       throws com.liferay.portal.kernel.exception.PortalException,
                                                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getWapTheme

public com.liferay.portal.model.Theme getWapTheme()
                                           throws com.liferay.portal.kernel.exception.PortalException,
                                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasAncestor

public boolean hasAncestor(long layoutId)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasChildren

public boolean hasChildren()
                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

hasScopeGroup

public boolean hasScopeGroup()
                      throws com.liferay.portal.kernel.exception.PortalException,
                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

isChildSelected

public boolean isChildSelected(boolean selectable,
                               com.liferay.portal.model.Layout layout)
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.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,
                          com.liferay.portal.model.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)
Specified by:
setGroupId in interface com.liferay.portal.model.Layout
Specified by:
setGroupId in interface com.liferay.portal.model.LayoutModel
Overrides:
setGroupId in class LayoutModelImpl

setLayoutSet

public void setLayoutSet(com.liferay.portal.model.LayoutSet layoutSet)

setPrivateLayout

public void setPrivateLayout(boolean privateLayout)
Specified by:
setPrivateLayout in interface com.liferay.portal.model.Layout
Specified by:
setPrivateLayout in interface com.liferay.portal.model.LayoutModel
Overrides:
setPrivateLayout in class LayoutModelImpl

setTypeSettings

public void setTypeSettings(java.lang.String typeSettings)
Specified by:
setTypeSettings in interface com.liferay.portal.model.Layout
Specified by:
setTypeSettings in interface com.liferay.portal.model.LayoutModel
Overrides:
setTypeSettings in class LayoutModelImpl

setTypeSettingsProperties

public void setTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)