Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class LayoutImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<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:
BaseModel<Layout>, ClassedModel, Layout, LayoutModel, PersistedModel, Serializable, Cloneable, Comparable<Layout>

public class LayoutImpl
extends LayoutBaseImpl

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, 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
 
Fields inherited from interface com.liferay.portal.model.Layout
LAYOUT_ID_ACCESSOR
 
Constructor Summary
LayoutImpl()
           
 
Method Summary
 List<Layout> getAllChildren()
           
 long getAncestorLayoutId()
           
 long getAncestorPlid()
           
 List<Layout> getAncestors()
           
 List<Layout> getChildren()
           
 List<Layout> getChildren(PermissionChecker permissionChecker)
           
 ColorScheme getColorScheme()
           
 String getCssText()
           
 Group getGroup()
           
 String getHTMLTitle(Locale locale)
           
 String getHTMLTitle(String localeLanguageId)
           
 LayoutSet getLayoutSet()
           
 LayoutType getLayoutType()
           
 long getParentPlid()
           
 String getRegularURL(javax.servlet.http.HttpServletRequest request)
           
 String getResetLayoutURL(javax.servlet.http.HttpServletRequest request)
           
 String getResetMaxStateURL(javax.servlet.http.HttpServletRequest request)
           
 Group getScopeGroup()
           
 String getTarget()
           
 Theme getTheme()
           
 String getThemeSetting(String key, String device)
           
 String getTypeSettings()
          Returns the type settings of this layout.
 UnicodeProperties getTypeSettingsProperties()
           
 String getTypeSettingsProperty(String key)
           
 String getTypeSettingsProperty(String key, String defaultValue)
           
 ColorScheme getWapColorScheme()
           
 Theme getWapTheme()
           
 boolean hasAncestor(long layoutId)
           
 boolean hasChildren()
           
static boolean hasFriendlyURLKeyword(String friendlyURL)
           
 boolean hasScopeGroup()
           
 boolean isChildSelected(boolean selectable, Layout layout)
           
 boolean isContentDisplayPage()
           
 boolean isFirstChild()
           
 boolean isFirstParent()
           
 boolean isInheritLookAndFeel()
           
 boolean isInheritWapLookAndFeel()
           
 boolean isLayoutPrototypeLinkActive()
           
 boolean isPublicLayout()
           
 boolean isRootLayout()
           
 boolean isSelected(boolean selectable, Layout layout, long ancestorPlid)
           
 boolean isTypeArticle()
           
 boolean isTypeControlPanel()
           
 boolean isTypeEmbedded()
           
 boolean isTypeLinkToLayout()
           
 boolean isTypePanel()
           
 boolean isTypePortlet()
           
 boolean isTypeURL()
           
 void setGroupId(long groupId)
          Sets the group ID of this layout.
 void setLayoutSet(LayoutSet layoutSet)
           
 void setPrivateLayout(boolean privateLayout)
          Sets whether this layout is private layout.
 void setTypeSettings(String typeSettings)
          Sets the type settings of this layout.
 void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
           
static int validateFriendlyURL(String friendlyURL)
           
static int validateFriendlyURL(String friendlyURL, boolean checkMaxLength)
           
static void validateFriendlyURLKeyword(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, 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 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, 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
 
Methods inherited from interface com.liferay.portal.model.BaseModel
getModelAttributes, resetOriginalValues, setModelAttributes
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 

Constructor Detail

LayoutImpl

public LayoutImpl()
Method Detail

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)

Liferay 6.1.2-ce-ga3