public class VirtualLayout extends LayoutWrapper
LAYOUT_ID_ACCESSOR, PLID_ACCESSOR
Constructor and Description |
---|
VirtualLayout(Layout sourceLayout,
Group targetGroup) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
List<Portlet> |
getEmbeddedPortlets() |
String |
getFriendlyURL()
Returns the friendly url 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) |
void |
setLayoutSet(LayoutSet layoutSet) |
void |
setPrivateLayout(boolean privateLayout)
Sets whether this layout is private layout.
|
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, getWrappedModel, hasAncestor, hasChildren, hashCode, hasScopeGroup, hasSetModifiedDate, includeLayoutContent, isCachedModel, isChildSelected, isContentDisplayPage, isCustomizable, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isFirstChild, isFirstParent, isHidden, isIconImage, isInheritLookAndFeel, isLayoutPrototypeLinkActive, isLayoutPrototypeLinkEnabled, isNew, isPortletEmbedded, 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, setModelAttributes, 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, setTypeSettings, setTypeSettingsProperties, setUserId, setUserName, setUserUuid, setUuid, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
public Object clone()
BaseModel
clone
in interface BaseModel<Layout>
clone
in interface LayoutModel
clone
in interface StagedModel
clone
in class LayoutWrapper
public List<Portlet> getEmbeddedPortlets()
getEmbeddedPortlets
in interface Layout
getEmbeddedPortlets
in class LayoutWrapper
public String getFriendlyURL()
LayoutWrapper
getFriendlyURL
in interface LayoutModel
getFriendlyURL
in class LayoutWrapper
public String getFriendlyURL(Locale locale)
LayoutWrapper
getFriendlyURL
in interface Layout
getFriendlyURL
in class LayoutWrapper
locale
- the locale that the friendly URL should be retrieved forpublic Group getGroup()
LayoutWrapper
Group is Liferay's technical name for a site.
getGroup
in interface Layout
getGroup
in class LayoutWrapper
public long getGroupId()
LayoutWrapper
getGroupId
in interface GroupedModel
getGroupId
in interface LayoutModel
getGroupId
in class LayoutWrapper
public Group getHostGroup()
public LayoutSet getLayoutSet()
LayoutWrapper
LayoutSet
.getLayoutSet
in interface Layout
getLayoutSet
in class LayoutWrapper
public LayoutType getLayoutType()
LayoutWrapper
LayoutType
.getLayoutType
in interface Layout
getLayoutType
in class LayoutWrapper
public String getRegularURL(javax.servlet.http.HttpServletRequest request) throws PortalException
getRegularURL
in interface Layout
getRegularURL
in class LayoutWrapper
PortalException
public String getResetLayoutURL(javax.servlet.http.HttpServletRequest request) throws PortalException
getResetLayoutURL
in interface Layout
getResetLayoutURL
in class LayoutWrapper
PortalException
public String getResetMaxStateURL(javax.servlet.http.HttpServletRequest request) throws PortalException
getResetMaxStateURL
in interface Layout
getResetMaxStateURL
in class LayoutWrapper
PortalException
public long getSourceGroupId()
public Layout getSourceLayout()
public long getVirtualGroupId()
public void setLayoutSet(LayoutSet layoutSet)
setLayoutSet
in interface Layout
setLayoutSet
in class LayoutWrapper
public void setPrivateLayout(boolean privateLayout)
LayoutWrapper
setPrivateLayout
in interface LayoutModel
setPrivateLayout
in class LayoutWrapper
privateLayout
- the private layout of this layoutprotected String injectVirtualGroupURL(String layoutURL, Locale locale)