Liferay 7.0-ce-b4

com.liferay.portal.model.impl
Class VirtualLayout

java.lang.Object
  extended by com.liferay.portal.model.LayoutWrapper
      extended by com.liferay.portal.model.impl.VirtualLayout
All Implemented Interfaces:
AuditedModel, BaseModel<Layout>, ClassedModel, GroupedModel, Layout, LayoutModel, LocalizedModel, ModelWrapper<Layout>, MVCCModel, PersistedModel, ShardedModel, StagedGroupedModel, StagedModel, Serializable, Cloneable, Comparable<Layout>

public class VirtualLayout
extends LayoutWrapper

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.liferay.portal.model.Layout
LAYOUT_ID_ACCESSOR, PLID_ACCESSOR
 
Constructor Summary
VirtualLayout(Layout sourceLayout, Group targetGroup)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 List<Portlet> getEmbeddedPortlets()
           
 String getFriendlyURL()
          Returns the friendly u r l of this layout.
 String getFriendlyURL(Locale locale)
          Returns the layout's friendly URL for the given locale.
 Group getGroup()
          Returns the current layout's group.
 long getGroupId()
          Returns the group ID of this layout.
 Group getHostGroup()
           
 LayoutSet getLayoutSet()
          Returns the current layout's LayoutSet.
 LayoutType getLayoutType()
          Returns the current layout's LayoutType.
 String getRegularURL(javax.servlet.http.HttpServletRequest request)
           
 String getResetLayoutURL(javax.servlet.http.HttpServletRequest request)
           
 String getResetMaxStateURL(javax.servlet.http.HttpServletRequest request)
           
 long getSourceGroupId()
           
 Layout getSourceLayout()
           
 long getVirtualGroupId()
           
protected  String injectVirtualGroupURL(String layoutURL, Locale locale)
           
 
Methods inherited from class com.liferay.portal.model.LayoutWrapper
compareTo, equals, getAllChildren, getAncestorLayoutId, getAncestorPlid, getAncestors, getAvailableLanguageIds, getChildren, getChildren, getColorScheme, getColorSchemeId, getCompanyId, getCreateDate, getCss, getCssText, getDefaultLanguageId, getDefaultThemeSetting, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getEmbeddedPortlets, getExpandoBridge, getFriendlyURLMap, getFriendlyURLsXML, getHidden, getHTMLTitle, getHTMLTitle, getIconImage, getIconImageId, getKeywords, getKeywords, getKeywords, getKeywords, getKeywords, getKeywordsCurrentLanguageId, getKeywordsCurrentValue, getKeywordsMap, getLastPublishDate, getLayoutId, getLayoutPrototypeLinkEnabled, getLayoutPrototypeUuid, getLinkedToLayout, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getMvccVersion, getName, getName, getName, getName, getName, getNameCurrentLanguageId, getNameCurrentValue, getNameMap, getParentLayoutId, getParentPlid, getPlid, getPrimaryKey, getPrimaryKeyObj, getPriority, getPrivateLayout, getRobots, getRobots, getRobots, getRobots, getRobots, getRobotsCurrentLanguageId, getRobotsCurrentValue, getRobotsMap, getScopeGroup, getSourcePrototypeLayoutUuid, getStagedModelType, getTarget, getTheme, getThemeId, getThemeSetting, getThemeSetting, getTitle, getTitle, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTitleMap, getType, getTypeSettings, getTypeSettingsProperties, getTypeSettingsProperty, getTypeSettingsProperty, getUserId, getUserName, getUserUuid, getUuid, getWapColorScheme, getWapColorSchemeId, getWapTheme, getWapThemeId, getWrappedModel, hasAncestor, hasChildren, hashCode, hasScopeGroup, hasSetModifiedDate, includeLayoutContent, isCachedModel, isChildSelected, isContentDisplayPage, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isFirstChild, isFirstParent, isHidden, isIconImage, isInheritLookAndFeel, isInheritWapLookAndFeel, isLayoutPrototypeLinkActive, isLayoutPrototypeLinkEnabled, isNew, isPrivateLayout, isPublicLayout, isRootLayout, isSelected, isSupportsEmbeddedPortlets, isTypeArticle, isTypeControlPanel, isTypeEmbedded, isTypeLinkToLayout, isTypePanel, isTypePortlet, isTypeSharedPortlet, isTypeURL, matches, persist, prepareLocalizedFieldsForImport, prepareLocalizedFieldsForImport, resetOriginalValues, setCachedModel, setColorSchemeId, setCompanyId, setCreateDate, setCss, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setFriendlyURL, setGroupId, setHidden, setIconImageId, setKeywords, setKeywords, setKeywords, setKeywordsCurrentLanguageId, setKeywordsMap, setKeywordsMap, setLastPublishDate, setLayoutId, setLayoutPrototypeLinkEnabled, setLayoutPrototypeUuid, setLayoutSet, setModelAttributes, setModifiedDate, setMvccVersion, setName, setName, setName, setNameCurrentLanguageId, setNameMap, setNameMap, setNew, setParentLayoutId, setPlid, setPrimaryKey, setPrimaryKeyObj, setPriority, setPrivateLayout, setRobots, setRobots, setRobots, setRobotsCurrentLanguageId, setRobotsMap, setRobotsMap, setSourcePrototypeLayoutUuid, setThemeId, setTitle, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setType, setTypeSettings, setTypeSettingsProperties, setUserId, setUserName, setUserUuid, setUuid, setWapColorSchemeId, setWapThemeId, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VirtualLayout

public VirtualLayout(Layout sourceLayout,
                     Group targetGroup)
Method Detail

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<Layout>
Specified by:
clone in interface LayoutModel
Specified by:
clone in interface StagedModel
Overrides:
clone in class LayoutWrapper
Returns:
the shallow clone of this model instance

getEmbeddedPortlets

public List<Portlet> getEmbeddedPortlets()
Specified by:
getEmbeddedPortlets in interface Layout
Overrides:
getEmbeddedPortlets in class LayoutWrapper

getFriendlyURL

public String getFriendlyURL()
Description copied from class: LayoutWrapper
Returns the friendly u r l of this layout.

Specified by:
getFriendlyURL in interface LayoutModel
Overrides:
getFriendlyURL in class LayoutWrapper
Returns:
the friendly u r l of this layout

getFriendlyURL

public String getFriendlyURL(Locale locale)
Description copied from class: LayoutWrapper
Returns the layout's friendly URL for the given locale.

Specified by:
getFriendlyURL in interface Layout
Overrides:
getFriendlyURL in class LayoutWrapper
Parameters:
locale - the locale that the friendly URL should be retrieved for
Returns:
the layout's friendly URL for the given locale

getGroup

public Group getGroup()
Description copied from class: LayoutWrapper
Returns the current layout's group.

Group is Liferay's technical name for a site.

Specified by:
getGroup in interface Layout
Overrides:
getGroup in class LayoutWrapper
Returns:
the current layout's group

getGroupId

public long getGroupId()
Description copied from class: LayoutWrapper
Returns the group ID of this layout.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface LayoutModel
Overrides:
getGroupId in class LayoutWrapper
Returns:
the group ID of this layout

getHostGroup

public Group getHostGroup()

getLayoutSet

public LayoutSet getLayoutSet()
Description copied from class: LayoutWrapper
Returns the current layout's LayoutSet.

Specified by:
getLayoutSet in interface Layout
Overrides:
getLayoutSet in class LayoutWrapper
Returns:
the current layout's layout set

getLayoutType

public LayoutType getLayoutType()
Description copied from class: LayoutWrapper
Returns the current layout's LayoutType.

Specified by:
getLayoutType in interface Layout
Overrides:
getLayoutType in class LayoutWrapper
Returns:
the current layout's layout type

getRegularURL

public String getRegularURL(javax.servlet.http.HttpServletRequest request)
                     throws PortalException
Specified by:
getRegularURL in interface Layout
Overrides:
getRegularURL in class LayoutWrapper
Throws:
PortalException

getResetLayoutURL

public String getResetLayoutURL(javax.servlet.http.HttpServletRequest request)
                         throws PortalException
Specified by:
getResetLayoutURL in interface Layout
Overrides:
getResetLayoutURL in class LayoutWrapper
Throws:
PortalException

getResetMaxStateURL

public String getResetMaxStateURL(javax.servlet.http.HttpServletRequest request)
                           throws PortalException
Specified by:
getResetMaxStateURL in interface Layout
Overrides:
getResetMaxStateURL in class LayoutWrapper
Throws:
PortalException

getSourceGroupId

public long getSourceGroupId()

getSourceLayout

public Layout getSourceLayout()

getVirtualGroupId

public long getVirtualGroupId()

injectVirtualGroupURL

protected String injectVirtualGroupURL(String layoutURL,
                                       Locale locale)

Liferay 7.0-ce-b4