Liferay 7.0-ce-b4

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:
AuditedModel, BaseModel<Layout>, ClassedModel, GroupedModel, Layout, LayoutModel, LocalizedModel, MVCCModel, PersistedModel, ShardedModel, StagedGroupedModel, StagedModel, Serializable, Cloneable, Comparable<Layout>

public class LayoutImpl
extends LayoutBaseImpl

Represents a portal layout, providing access to the layout's URLs, parent layouts, child layouts, theme settings, type settings, and more.

The UI name for a layout is "page." Thus, a layout represents a page in the portal. A single page is either part of the public or private layout set of a group (site). Layouts can be organized hierarchically and are summarized in a LayoutSet.

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, PRIORITY_COLUMN_BITMASK, PRIVATELAYOUT_COLUMN_BITMASK, SESSION_FACTORY, SOURCEPROTOTYPELAYOUTUUID_COLUMN_BITMASK, TABLE_COLUMNS, TABLE_COLUMNS_MAP, 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, PLID_ACCESSOR
 
Constructor Summary
LayoutImpl()
           
 
Method Summary
 List<Layout> getAllChildren()
          Returns all layouts that are direct or indirect children of the current layout.
 long getAncestorLayoutId()
          Returns the ID of the topmost parent layout (e.g. n-th parent layout) of the current layout.
 long getAncestorPlid()
          Returns the plid of the topmost parent layout (e.g. n-th parent layout) of the current layout.
 List<Layout> getAncestors()
          Returns all parent layouts of the current layout.
 List<Layout> getChildren()
          Returns all child layouts of the current layout, independent of user access permissions.
 List<Layout> getChildren(PermissionChecker permissionChecker)
          Returns all child layouts of the current layout that the user has permission to access.
 ColorScheme getColorScheme()
          Returns the color scheme that is configured for the current layout, or the color scheme of the layout set that contains the current layout if no color scheme is configured.
 String getCssText()
          Returns the CSS text for the current layout, or for the layout set if no CSS text is configured in the current layout.
 String getDefaultThemeSetting(String key, String device, boolean inheritLookAndFeel)
           
 List<Portlet> getEmbeddedPortlets()
           
 List<Portlet> getEmbeddedPortlets(long groupId)
           
 String getFriendlyURL(Locale locale)
          Returns the layout's friendly URL for the given locale.
 Map<Locale,String> getFriendlyURLMap()
          Returns the friendly URLs for all configured locales.
 String getFriendlyURLsXML()
           
 Group getGroup()
          Returns the current layout's group.
 String getHTMLTitle(Locale locale)
          Returns the current layout's HTML title for the given locale, or the current layout's name for the given locale if no HTML title is configured.
 String getHTMLTitle(String localeLanguageId)
          Returns the current layout's HTML title for the given locale language ID, or the current layout's name if no HTML title is configured.
 boolean getIconImage()
          Returns true if the current layout has a configured icon.
 LayoutSet getLayoutSet()
          Returns the current layout's LayoutSet.
 LayoutType getLayoutType()
          Returns the current layout's LayoutType.
 Layout getLinkedToLayout()
          Returns the current layout's linked layout.
 long getParentPlid()
          Returns the current layout's parent plid.
 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()
          Returns the current layout's theme, or the layout set's theme if no layout theme is configured.
protected  Theme getTheme(String device)
           
 String getThemeSetting(String key, String device)
           
 String getThemeSetting(String key, String device, boolean inheritLookAndFeel)
           
 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)
          Returns true if the given layout ID matches one of the current layout's hierarchical parents.
 boolean hasChildren()
          Returns true if the current layout has child layouts.
static boolean hasFriendlyURLKeyword(String friendlyURL)
           
 boolean hasScopeGroup()
           
 boolean hasSetModifiedDate()
           
 boolean includeLayoutContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 boolean isChildSelected(boolean selectable, Layout layout)
           
 boolean isContentDisplayPage()
          Returns true if the current layout can be used as a content display page.
 boolean isFirstChild()
          Returns true if the current layout is the first layout in its parent's hierarchical list of children layouts.
 boolean isFirstParent()
          Returns true if the current layout is the topmost parent layout.
 boolean isIconImage()
           
 boolean isInheritLookAndFeel()
          Returns true if the current layout utilizes its LayoutSet's look and feel options (e.g. theme and color scheme).
 boolean isInheritWapLookAndFeel()
           
 boolean isLayoutPrototypeLinkActive()
          Returns true if the current layout is built from a layout template and still maintains an active connection to it.
 boolean isPublicLayout()
          Returns true if the current layout is part of the public LayoutSet.
 boolean isRootLayout()
          Returns true if the current layout is the root layout.
 boolean isSelected(boolean selectable, Layout layout, long ancestorPlid)
           
 boolean isSupportsEmbeddedPortlets()
          Returns true if the current layout can hold embedded portlets.
 boolean isTypeArticle()
          Deprecated. As of 7.0.0, with no direct replacement
 boolean isTypeControlPanel()
           
 boolean isTypeEmbedded()
           
 boolean isTypeLinkToLayout()
           
 boolean isTypePanel()
           
 boolean isTypePortlet()
           
 boolean isTypeSharedPortlet()
           
 boolean isTypeURL()
           
 boolean matches(javax.servlet.http.HttpServletRequest request, String friendlyURL)
           
 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)
          Checks whether the URL is a valid friendly URL.
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, getAvailableLanguageIds, getColorSchemeId, getColumnBitmask, getCompanyId, getCreateDate, getCss, getDefaultLanguageId, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getFriendlyURL, getGroupId, getHidden, getIconImageId, getKeywords, getKeywords, getKeywords, getKeywords, getKeywords, getKeywordsCurrentLanguageId, getKeywordsCurrentValue, getKeywordsMap, getLastPublishDate, getLayoutId, getLayoutPrototypeLinkEnabled, getLayoutPrototypeUuid, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getMvccVersion, 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, getStagedModelType, getThemeId, getTitle, getTitle, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTitleMap, getType, getUserId, getUserName, getUserUuid, getUuid, getWapColorSchemeId, getWapThemeId, hashCode, isEntityCacheEnabled, isFinderCacheEnabled, isHidden, isLayoutPrototypeLinkEnabled, isPrivateLayout, prepareLocalizedFieldsForImport, prepareLocalizedFieldsForImport, resetOriginalValues, setColorSchemeId, setCompanyId, setCreateDate, setCss, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setFriendlyURL, setHidden, setIconImageId, setKeywords, setKeywords, setKeywords, setKeywordsCurrentLanguageId, setKeywordsMap, setKeywordsMap, setLastPublishDate, setLayoutId, setLayoutPrototypeLinkEnabled, setLayoutPrototypeUuid, setModelAttributes, setModifiedDate, setMvccVersion, 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, setUserId, setUserName, setUserUuid, setUuid, setWapColorSchemeId, setWapThemeId, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
 
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.LayoutModel
clone, compareTo, getAvailableLanguageIds, getColorSchemeId, getCompanyId, getCreateDate, getCss, getDefaultLanguageId, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getFriendlyURL, getGroupId, getHidden, getIconImageId, getKeywords, getKeywords, getKeywords, getKeywords, getKeywords, getKeywordsCurrentLanguageId, getKeywordsCurrentValue, getKeywordsMap, getLastPublishDate, getLayoutId, getLayoutPrototypeLinkEnabled, getLayoutPrototypeUuid, getModifiedDate, getMvccVersion, 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, getUserId, getUserName, getUserUuid, getUuid, getWapColorSchemeId, getWapThemeId, hashCode, isCachedModel, isEscapedModel, isHidden, isLayoutPrototypeLinkEnabled, isNew, isPrivateLayout, prepareLocalizedFieldsForImport, prepareLocalizedFieldsForImport, setCachedModel, setColorSchemeId, setCompanyId, setCreateDate, setCss, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setFriendlyURL, setHidden, setIconImageId, setKeywords, setKeywords, setKeywords, setKeywordsCurrentLanguageId, setKeywordsMap, setKeywordsMap, setLastPublishDate, setLayoutId, setLayoutPrototypeLinkEnabled, setLayoutPrototypeUuid, setModifiedDate, setMvccVersion, 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, setUserId, setUserName, setUserUuid, setUuid, setWapColorSchemeId, setWapThemeId, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
 
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
 
Methods inherited from interface com.liferay.portal.model.StagedModel
getStagedModelType
 

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)
Checks whether the URL is a valid friendly URL. It checks for minimal length and that syntactic restrictions are met, and can check that the URL's length does not exceed the maximum length.

Parameters:
friendlyURL - the URL to be checked
checkMaxLength - whether to check that the URL's length does not exceed the maximum length
Returns:
-1 if the URL is a valid friendly URL; a LayoutFriendlyURLException constant otherwise

validateFriendlyURLKeyword

public static void validateFriendlyURLKeyword(String friendlyURL)
                                       throws LayoutFriendlyURLException
Throws:
LayoutFriendlyURLException

getAllChildren

public List<Layout> getAllChildren()
Returns all layouts that are direct or indirect children of the current layout.

Returns:
the layouts that are direct or indirect children of the current layout

getAncestorLayoutId

public long getAncestorLayoutId()
                         throws PortalException
Returns the ID of the topmost parent layout (e.g. n-th parent layout) of the current layout.

Returns:
the ID of the topmost parent layout of the current layout
Throws:
PortalException

getAncestorPlid

public long getAncestorPlid()
                     throws PortalException
Returns the plid of the topmost parent layout (e.g. n-th parent layout) of the current layout.

Returns:
the plid of the topmost parent layout of the current layout
Throws:
PortalException

getAncestors

public List<Layout> getAncestors()
                          throws PortalException
Returns all parent layouts of the current layout. The list is retrieved recursively with the direct parent layout listed first, and most distant parent listed last.

Returns:
the current layout's list of parent layouts
Throws:
PortalException

getChildren

public List<Layout> getChildren()
Returns all child layouts of the current layout, independent of user access permissions.

Returns:
the list of all child layouts

getChildren

public List<Layout> getChildren(PermissionChecker permissionChecker)
                         throws PortalException
Returns all child layouts of the current layout that the user has permission to access.

Parameters:
permissionChecker - the user-specific context to check permissions
Returns:
the list of all child layouts that the user has permission to access
Throws:
PortalException

getColorScheme

public ColorScheme getColorScheme()
                           throws PortalException
Returns the color scheme that is configured for the current layout, or the color scheme of the layout set that contains the current layout if no color scheme is configured.

Returns:
the color scheme that is configured for the current layout, or the color scheme of the layout set that contains the current layout if no color scheme is configured
Throws:
PortalException

getCssText

public String getCssText()
                  throws PortalException
Returns the CSS text for the current layout, or for the layout set if no CSS text is configured in the current layout.

Layouts and layout sets can configure CSS that is applied in addition to the theme's CSS.

Returns:
the CSS text for the current layout, or for the layout set if no CSS text is configured in the current layout
Throws:
PortalException

getDefaultThemeSetting

public String getDefaultThemeSetting(String key,
                                     String device,
                                     boolean inheritLookAndFeel)

getEmbeddedPortlets

public List<Portlet> getEmbeddedPortlets()

getEmbeddedPortlets

public List<Portlet> getEmbeddedPortlets(long groupId)

getFriendlyURL

public String getFriendlyURL(Locale locale)
Returns the layout's friendly URL for the given locale.

Parameters:
locale - the locale that the friendly URL should be retrieved for
Returns:
the layout's friendly URL for the given locale

getFriendlyURLMap

public Map<Locale,String> getFriendlyURLMap()
Returns the friendly URLs for all configured locales.

Returns:
the friendly URLs for all configured locales

getFriendlyURLsXML

public String getFriendlyURLsXML()

getGroup

public Group getGroup()
               throws PortalException
Returns the current layout's group.

Group is Liferay's technical name for a site.

Returns:
the current layout's group
Throws:
PortalException

getHTMLTitle

public String getHTMLTitle(Locale locale)
Returns the current layout's HTML title for the given locale, or the current layout's name for the given locale if no HTML title is configured.

Parameters:
locale - the locale that the HTML title should be retrieved for
Returns:
the current layout's HTML title for the given locale, or the current layout's name for the given locale if no HTML title is configured

getHTMLTitle

public String getHTMLTitle(String localeLanguageId)
Returns the current layout's HTML title for the given locale language ID, or the current layout's name if no HTML title is configured.

Parameters:
localeLanguageId - the locale that the HTML title should be retrieved for
Returns:
the current layout's HTML title for the given locale language ID, or the current layout's name if no HTML title is configured

getIconImage

public boolean getIconImage()
Returns true if the current layout has a configured icon.

Returns:
true if the current layout has a configured icon; false otherwise

getLayoutSet

public LayoutSet getLayoutSet()
                       throws PortalException
Returns the current layout's LayoutSet.

Returns:
the current layout's layout set
Throws:
PortalException

getLayoutType

public LayoutType getLayoutType()
Returns the current layout's LayoutType.

Returns:
the current layout's layout type

getLinkedToLayout

public Layout getLinkedToLayout()
Returns the current layout's linked layout.

Returns:
the current layout's linked layout, or null if no linked layout could be found

getParentPlid

public long getParentPlid()
                   throws PortalException
Returns the current layout's parent plid.

Returns:
the current layout's parent plid, or 0 if the current layout is the topmost parent layout
Throws:
PortalException

getRegularURL

public String getRegularURL(javax.servlet.http.HttpServletRequest request)
                     throws PortalException
Throws:
PortalException

getResetLayoutURL

public String getResetLayoutURL(javax.servlet.http.HttpServletRequest request)
                         throws PortalException
Throws:
PortalException

getResetMaxStateURL

public String getResetMaxStateURL(javax.servlet.http.HttpServletRequest request)
                           throws PortalException
Throws:
PortalException

getScopeGroup

public Group getScopeGroup()
                    throws PortalException
Throws:
PortalException

getTarget

public String getTarget()

getTheme

public Theme getTheme()
               throws PortalException
Returns the current layout's theme, or the layout set's theme if no layout theme is configured.

Returns:
the current layout's theme, or the layout set's theme if no layout theme is configured
Throws:
PortalException

getThemeSetting

public String getThemeSetting(String key,
                              String device)

getThemeSetting

public String getThemeSetting(String key,
                              String device,
                              boolean inheritLookAndFeel)

getTypeSettings

public String getTypeSettings()
Description copied from interface: LayoutModel
Returns the type settings of this 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
Throws:
PortalException

getWapTheme

public Theme getWapTheme()
                  throws PortalException
Throws:
PortalException

hasAncestor

public boolean hasAncestor(long layoutId)
                    throws PortalException
Returns true if the given layout ID matches one of the current layout's hierarchical parents.

Parameters:
layoutId - the layout ID to search for in the current layout's parent list
Returns:
true if the given layout ID matches one of the current layout's hierarchical parents; false otherwise
Throws:
PortalException

hasChildren

public boolean hasChildren()
Returns true if the current layout has child layouts.

Returns:
true if the current layout has child layouts, false otherwise

hasScopeGroup

public boolean hasScopeGroup()
                      throws PortalException
Throws:
PortalException

hasSetModifiedDate

public boolean hasSetModifiedDate()
Specified by:
hasSetModifiedDate in interface Layout
Overrides:
hasSetModifiedDate in class LayoutModelImpl

includeLayoutContent

public boolean includeLayoutContent(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
                             throws Exception
Throws:
Exception

isChildSelected

public boolean isChildSelected(boolean selectable,
                               Layout layout)
                        throws PortalException
Throws:
PortalException

isContentDisplayPage

public boolean isContentDisplayPage()
Returns true if the current layout can be used as a content display page.

A content display page must have an Asset Publisher portlet that is configured as the default Asset Publisher for the layout.

Returns:
true if the current layout can be used as a content display page; false otherwise

isFirstChild

public boolean isFirstChild()
Returns true if the current layout is the first layout in its parent's hierarchical list of children layouts.

Returns:
true if the current layout is the first layout in its parent's hierarchical list of children layouts; false otherwise

isFirstParent

public boolean isFirstParent()
Returns true if the current layout is the topmost parent layout.

Returns:
true if the current layout is the topmost parent layout; false otherwise

isIconImage

public boolean isIconImage()

isInheritLookAndFeel

public boolean isInheritLookAndFeel()
Returns true if the current layout utilizes its LayoutSet's look and feel options (e.g. theme and color scheme).

Returns:
true if the current layout utilizes its layout set's look and feel options; false otherwise

isInheritWapLookAndFeel

public boolean isInheritWapLookAndFeel()

isLayoutPrototypeLinkActive

public boolean isLayoutPrototypeLinkActive()
Returns true if the current layout is built from a layout template and still maintains an active connection to it.

Returns:
true if the current layout is built from a layout template and still maintains an active connection to it; false otherwise

isPublicLayout

public boolean isPublicLayout()
Returns true if the current layout is part of the public LayoutSet.

Note, the returned value reflects the layout's default access options, not its access permissions.

Returns:
true if the current layout is part of the public layout set; false otherwise

isRootLayout

public boolean isRootLayout()
Returns true if the current layout is the root layout.

Returns:
true if the current layout is the root layout; false otherwise

isSelected

public boolean isSelected(boolean selectable,
                          Layout layout,
                          long ancestorPlid)

isSupportsEmbeddedPortlets

public boolean isSupportsEmbeddedPortlets()
Returns true if the current layout can hold embedded portlets.

Returns:
true if the current layout can hold embedded portlets; false otherwise

isTypeArticle

@Deprecated
public boolean isTypeArticle()
Deprecated. As of 7.0.0, with no direct replacement


isTypeControlPanel

public boolean isTypeControlPanel()

isTypeEmbedded

public boolean isTypeEmbedded()

isTypeLinkToLayout

public boolean isTypeLinkToLayout()

isTypePanel

public boolean isTypePanel()

isTypePortlet

public boolean isTypePortlet()

isTypeSharedPortlet

public boolean isTypeSharedPortlet()

isTypeURL

public boolean isTypeURL()

matches

public boolean matches(javax.servlet.http.HttpServletRequest request,
                       String friendlyURL)

setGroupId

public void setGroupId(long groupId)
Description copied from interface: LayoutModel
Sets the group ID of this layout.

Specified by:
setGroupId in interface GroupedModel
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 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 LayoutModel
Overrides:
setTypeSettings in class LayoutModelImpl
Parameters:
typeSettings - the type settings of this layout

setTypeSettingsProperties

public void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)

getTheme

protected Theme getTheme(String device)
                  throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4