Class VirtualLayout
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Layout>
com.liferay.portal.kernel.model.LayoutWrapper
com.liferay.portal.kernel.model.impl.VirtualLayout
- All Implemented Interfaces:
AttachedModel
,AuditedModel
,BaseModel<Layout>
,CTModel<Layout>
,ClassedModel
,ExternalReferenceCodeModel
,GroupedModel
,Layout
,LayoutModel
,LocalizedModel
,ModelWrapper<Layout>
,MVCCModel
,PersistedModel
,ShardedModel
,StagedGroupedModel
,StagedModel
,TypedModel
,WorkflowedModel
,Serializable
,Cloneable
,Comparable<Layout>
- Author:
- Raymond Augé
- See Also:
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.portal.kernel.model.Layout
LAYOUT_ID_ACCESSOR, PLID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this model instance.Returns the friendly url of this layout.getFriendlyURL
(Locale locale) Returns the layout's friendly URL for the given locale.getGroup()
Returns the current layout's group.long
Returns the group ID of this layout.Returns the current layout'sLayoutSet
.Returns the current layout'sLayoutType
.getRegularURL
(javax.servlet.http.HttpServletRequest httpServletRequest) getResetLayoutURL
(javax.servlet.http.HttpServletRequest httpServletRequest) getResetMaxStateURL
(javax.servlet.http.HttpServletRequest httpServletRequest) long
long
protected String
injectVirtualGroupURL
(String layoutURL, Locale locale) void
setLayoutSet
(LayoutSet layoutSet) void
setPrivateLayout
(boolean privateLayout) Sets whether this layout is private layout.Methods inherited from class com.liferay.portal.kernel.model.LayoutWrapper
cloneWithOriginalValues, fetchDraftLayout, getAllChildren, getAncestorLayoutId, getAncestorPlid, getAncestors, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getAvailableLanguageIds, getBreadcrumb, getChildren, getChildren, getClassName, getClassNameId, getClassPK, getColorScheme, getColorSchemeId, getCompanyId, getCreateDate, getCss, getCssText, getCtCollectionId, getDefaultLanguageId, getDefaultThemeSetting, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getEmbeddedPortlets, getExternalReferenceCode, getFaviconFileEntryId, getFaviconURL, getFriendlyURLMap, getFriendlyURLsXML, getHidden, getHTMLTitle, getHTMLTitle, getIcon, getIconImage, getIconImageId, getKeywords, getKeywords, getKeywords, getKeywords, getKeywords, getKeywordsCurrentLanguageId, getKeywordsCurrentValue, getKeywordsMap, getLastPublishDate, getLayoutId, getLayoutPrototypeLinkEnabled, getLayoutPrototypeUuid, getLayoutSetPrototypeLayout, getLinkedToLayout, getMasterLayoutPlid, getModelAttributes, getModifiedDate, getMvccVersion, getName, getName, getName, getName, getName, getNameCurrentLanguageId, getNameCurrentValue, getNameMap, getParentLayoutId, getParentPlid, getPlid, getPrimaryKey, getPriority, getPrivateLayout, getPublishDate, getRobots, getRobots, getRobots, getRobots, getRobots, getRobotsCurrentLanguageId, getRobotsCurrentValue, getRobotsMap, getScopeGroup, getSourcePrototypeLayoutUuid, getStagedModelType, getStatus, getStatusByUserId, getStatusByUserName, getStatusByUserUuid, getStatusDate, getStyleBookEntryId, getSystem, getTarget, getTheme, getThemeId, getThemeSetting, getThemeSetting, getTitle, getTitle, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTitleMap, getType, getTypeSettings, getTypeSettingsProperties, getTypeSettingsProperty, getTypeSettingsProperty, getUserId, getUserName, getUserUuid, getUuid, hasAncestor, hasChildren, hasScopeGroup, hasSetModifiedDate, includeLayoutContent, isApproved, isChildSelected, isContentDisplayPage, isCustomizable, isDenied, isDraft, isDraftLayout, isEmbeddedPersonalApplication, isExpired, isFirstChild, isFirstParent, isHidden, isIconImage, isInactive, isIncomplete, isInheritLookAndFeel, isLayoutDeleteable, isLayoutPrototypeLinkActive, isLayoutPrototypeLinkEnabled, isLayoutSortable, isLayoutUpdateable, isPending, isPortletEmbedded, isPrivateLayout, isPublicLayout, isPublished, isRootLayout, isScheduled, isSelected, isSupportsEmbeddedPortlets, isSystem, isTypeAssetDisplay, isTypeContent, isTypeControlPanel, isTypeEmbedded, isTypeLinkToLayout, isTypePanel, isTypePortlet, isTypeURL, isTypeUtility, isUnlocked, matches, persist, prepareLocalizedFieldsForImport, prepareLocalizedFieldsForImport, setClassName, setClassNameId, setClassPK, setColorSchemeId, setCompanyId, setCreateDate, setCss, setCtCollectionId, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExternalReferenceCode, setFaviconFileEntryId, setFriendlyURL, setGroupId, setHidden, setIconImageId, setKeywords, setKeywords, setKeywords, setKeywordsCurrentLanguageId, setKeywordsMap, setKeywordsMap, setLastPublishDate, setLayoutId, setLayoutPrototypeLinkEnabled, setLayoutPrototypeUuid, setMasterLayoutPlid, setModelAttributes, setModifiedDate, setMvccVersion, setName, setName, setName, setNameCurrentLanguageId, setNameMap, setNameMap, setParentLayoutId, setParentPlid, setPlid, setPrimaryKey, setPriority, setPublishDate, setRobots, setRobots, setRobots, setRobotsCurrentLanguageId, setRobotsMap, setRobotsMap, setSourcePrototypeLayoutUuid, setStatus, setStatusByUserId, setStatusByUserName, setStatusByUserUuid, setStatusDate, setStyleBookEntryId, setSystem, setThemeId, setTitle, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setType, setTypeSettings, setTypeSettingsProperties, setUserId, setUserName, setUserUuid, setUuid, toXmlString, wrap
Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
VirtualLayout
-
-
Method Details
-
clone
Description copied from interface:BaseModel
Creates a shallow clone of this model instance.- Specified by:
clone
in interfaceBaseModel<Layout>
- Specified by:
clone
in interfaceStagedModel
- Overrides:
clone
in classBaseModelWrapper<Layout>
- Returns:
- the shallow clone of this model instance
-
getEmbeddedPortlets
- Specified by:
getEmbeddedPortlets
in interfaceLayout
- Overrides:
getEmbeddedPortlets
in classLayoutWrapper
-
getFriendlyURL
Description copied from class:LayoutWrapper
Returns the friendly url of this layout.- Specified by:
getFriendlyURL
in interfaceLayoutModel
- Overrides:
getFriendlyURL
in classLayoutWrapper
- Returns:
- the friendly url of this layout
-
getFriendlyURL
Description copied from class:LayoutWrapper
Returns the layout's friendly URL for the given locale.- Specified by:
getFriendlyURL
in interfaceLayout
- Overrides:
getFriendlyURL
in classLayoutWrapper
- Parameters:
locale
- the locale that the friendly URL should be retrieved for- Returns:
- the layout's friendly URL for the given locale
-
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 interfaceLayout
- Overrides:
getGroup
in classLayoutWrapper
- 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 interfaceGroupedModel
- Specified by:
getGroupId
in interfaceLayoutModel
- Overrides:
getGroupId
in classLayoutWrapper
- Returns:
- the group ID of this layout
-
getHostGroup
-
getLayoutSet
Description copied from class:LayoutWrapper
Returns the current layout'sLayoutSet
.- Specified by:
getLayoutSet
in interfaceLayout
- Overrides:
getLayoutSet
in classLayoutWrapper
- Returns:
- the current layout's layout set
-
getLayoutType
Description copied from class:LayoutWrapper
Returns the current layout'sLayoutType
.- Specified by:
getLayoutType
in interfaceLayout
- Overrides:
getLayoutType
in classLayoutWrapper
- Returns:
- the current layout's layout type
-
getRegularURL
public String getRegularURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException - Specified by:
getRegularURL
in interfaceLayout
- Overrides:
getRegularURL
in classLayoutWrapper
- Throws:
PortalException
-
getResetLayoutURL
public String getResetLayoutURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException - Specified by:
getResetLayoutURL
in interfaceLayout
- Overrides:
getResetLayoutURL
in classLayoutWrapper
- Throws:
PortalException
-
getResetMaxStateURL
public String getResetMaxStateURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException - Specified by:
getResetMaxStateURL
in interfaceLayout
- Overrides:
getResetMaxStateURL
in classLayoutWrapper
- Throws:
PortalException
-
getSourceGroupId
public long getSourceGroupId() -
getSourceLayout
-
getVirtualGroupId
public long getVirtualGroupId() -
setLayoutSet
- Specified by:
setLayoutSet
in interfaceLayout
- Overrides:
setLayoutSet
in classLayoutWrapper
-
setPrivateLayout
public void setPrivateLayout(boolean privateLayout) Description copied from class:LayoutWrapper
Sets whether this layout is private layout.- Specified by:
setPrivateLayout
in interfaceLayoutModel
- Overrides:
setPrivateLayout
in classLayoutWrapper
- Parameters:
privateLayout
- the private layout of this layout
-
injectVirtualGroupURL
-