Package com.liferay.portal.kernel.model
Class LayoutRevisionWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<LayoutRevision>
com.liferay.portal.kernel.model.LayoutRevisionWrapper
- All Implemented Interfaces:
AuditedModel
,BaseModel<LayoutRevision>
,ClassedModel
,GroupedModel
,LayoutRevision
,LayoutRevisionModel
,LocalizedModel
,ModelWrapper<LayoutRevision>
,MVCCModel
,PersistedModel
,ShardedModel
,WorkflowedModel
,Serializable
,Cloneable
,Comparable<LayoutRevision>
public class LayoutRevisionWrapper
extends BaseModelWrapper<LayoutRevision>
implements LayoutRevision, ModelWrapper<LayoutRevision>
This class is a wrapper for LayoutRevision
.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.portal.kernel.model.LayoutRevision
LAYOUT_REVISION_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
getBreadcrumb
(Locale locale) Returns the color scheme ID of this layout revision.long
Returns the company ID of this layout revision.Returns the create date of this layout revision.getCss()
Returns the css of this layout revision.Returns the description of this layout revision.getDescription
(String languageId) Returns the localized description of this layout revision in the language.getDescription
(String languageId, boolean useDefault) Returns the localized description of this layout revision in the language, optionally using the default language if no localization exists for the requested language.getDescription
(Locale locale) Returns the localized description of this layout revision in the language.getDescription
(Locale locale, boolean useDefault) Returns the localized description of this layout revision in the language, optionally using the default language if no localization exists for the requested language.Returns a map of the locales and localized descriptions of this layout revision.getGroup()
long
Returns the group ID of this layout revision.boolean
getHead()
Returns the head of this layout revision.getHTMLTitle
(String localeLanguageId) getHTMLTitle
(Locale locale) boolean
long
Returns the icon image ID of this layout revision.Returns the keywords of this layout revision.getKeywords
(String languageId) Returns the localized keywords of this layout revision in the language.getKeywords
(String languageId, boolean useDefault) Returns the localized keywords of this layout revision in the language, optionally using the default language if no localization exists for the requested language.getKeywords
(Locale locale) Returns the localized keywords of this layout revision in the language.getKeywords
(Locale locale, boolean useDefault) Returns the localized keywords of this layout revision in the language, optionally using the default language if no localization exists for the requested language.Returns a map of the locales and localized keywordses of this layout revision.long
Returns the layout branch ID of this layout revision.long
Returns the layout revision ID of this layout revision.long
Returns the layout set branch ID of this layout revision.boolean
getMajor()
Returns the major of this layout revision.Returns the modified date of this layout revision.long
Returns the mvcc version of this layout revision.getName()
Returns the name of this layout revision.Returns the localized name of this layout revision in the language.Returns the localized name of this layout revision in the language, optionally using the default language if no localization exists for the requested language.Returns the localized name of this layout revision in the language.Returns the localized name of this layout revision in the language, optionally using the default language if no localization exists for the requested language.Returns a map of the locales and localized names of this layout revision.long
Returns the parent layout revision ID of this layout revision.long
getPlid()
Returns the plid of this layout revision.long
Returns the primary key of this layout revision.boolean
Returns the private layout of this layout revision.getRegularURL
(javax.servlet.http.HttpServletRequest httpServletRequest) Returns the robots of this layout revision.Returns the localized robots of this layout revision in the language.Returns the localized robots of this layout revision in the language, optionally using the default language if no localization exists for the requested language.Returns the localized robots of this layout revision in the language.Returns the localized robots of this layout revision in the language, optionally using the default language if no localization exists for the requested language.Returns a map of the locales and localized robotses of this layout revision.int
Returns the status of this layout revision.long
Returns the status by user ID of this layout revision.Returns the status by user name of this layout revision.Returns the status by user uuid of this layout revision.Returns the status date of this layout revision.getTheme()
Returns the theme ID of this layout revision.getThemeSetting
(String key, String device) getTitle()
Returns the title of this layout revision.Returns the localized title of this layout revision in the language.Returns the localized title of this layout revision in the language, optionally using the default language if no localization exists for the requested language.Returns the localized title of this layout revision in the language.Returns the localized title of this layout revision in the language, optionally using the default language if no localization exists for the requested language.Returns a map of the locales and localized titles of this layout revision.Returns the type settings of this layout revision.getTypeSettingsProperty
(String key, String defaultValue) long
Returns the user ID of this layout revision.Returns the user name of this layout revision.Returns the user uuid of this layout revision.boolean
boolean
Returnstrue
if this layout revision is approved.boolean
boolean
boolean
isDenied()
Returnstrue
if this layout revision is denied.boolean
isDraft()
Returnstrue
if this layout revision is a draft.boolean
Returnstrue
if this layout revision is expired.boolean
isHead()
Returnstrue
if this layout revision is head.boolean
boolean
Returnstrue
if this layout revision is inactive.boolean
Returnstrue
if this layout revision is incomplete.boolean
boolean
isMajor()
Returnstrue
if this layout revision is major.boolean
Returnstrue
if this layout revision is pending.boolean
Returnstrue
if this layout revision is private layout.boolean
Returnstrue
if this layout revision is scheduled.void
persist()
Updates this model instance in the database or adds it if it does not yet exist.void
void
prepareLocalizedFieldsForImport
(Locale defaultImportLocale) void
setColorSchemeId
(String colorSchemeId) Sets the color scheme ID of this layout revision.void
setCompanyId
(long companyId) Sets the company ID of this layout revision.void
setCreateDate
(Date createDate) Sets the create date of this layout revision.void
Sets the css of this layout revision.void
setDescription
(String description) Sets the description of this layout revision.void
setDescription
(String description, Locale locale) Sets the localized description of this layout revision in the language.void
setDescription
(String description, Locale locale, Locale defaultLocale) Sets the localized description of this layout revision in the language, and sets the default locale.void
setDescriptionCurrentLanguageId
(String languageId) void
setDescriptionMap
(Map<Locale, String> descriptionMap) Sets the localized descriptions of this layout revision from the map of locales and localized descriptions.void
setDescriptionMap
(Map<Locale, String> descriptionMap, Locale defaultLocale) Sets the localized descriptions of this layout revision from the map of locales and localized descriptions, and sets the default locale.void
setGroupId
(long groupId) Sets the group ID of this layout revision.void
setHead
(boolean head) Sets whether this layout revision is head.void
setIconImageId
(long iconImageId) Sets the icon image ID of this layout revision.void
setKeywords
(String keywords) Sets the keywords of this layout revision.void
setKeywords
(String keywords, Locale locale) Sets the localized keywords of this layout revision in the language.void
setKeywords
(String keywords, Locale locale, Locale defaultLocale) Sets the localized keywords of this layout revision in the language, and sets the default locale.void
setKeywordsCurrentLanguageId
(String languageId) void
setKeywordsMap
(Map<Locale, String> keywordsMap) Sets the localized keywordses of this layout revision from the map of locales and localized keywordses.void
setKeywordsMap
(Map<Locale, String> keywordsMap, Locale defaultLocale) Sets the localized keywordses of this layout revision from the map of locales and localized keywordses, and sets the default locale.void
setLayoutBranchId
(long layoutBranchId) Sets the layout branch ID of this layout revision.void
setLayoutRevisionId
(long layoutRevisionId) Sets the layout revision ID of this layout revision.void
setLayoutSetBranchId
(long layoutSetBranchId) Sets the layout set branch ID of this layout revision.void
setMajor
(boolean major) Sets whether this layout revision is major.void
setModelAttributes
(Map<String, Object> attributes) void
setModifiedDate
(Date modifiedDate) Sets the modified date of this layout revision.void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this layout revision.void
Sets the name of this layout revision.void
Sets the localized name of this layout revision in the language.void
Sets the localized name of this layout revision in the language, and sets the default locale.void
setNameCurrentLanguageId
(String languageId) void
setNameMap
(Map<Locale, String> nameMap) Sets the localized names of this layout revision from the map of locales and localized names.void
setNameMap
(Map<Locale, String> nameMap, Locale defaultLocale) Sets the localized names of this layout revision from the map of locales and localized names, and sets the default locale.void
setParentLayoutRevisionId
(long parentLayoutRevisionId) Sets the parent layout revision ID of this layout revision.void
setPlid
(long plid) Sets the plid of this layout revision.void
setPrimaryKey
(long primaryKey) Sets the primary key of this layout revision.void
setPrivateLayout
(boolean privateLayout) Sets whether this layout revision is private layout.void
Sets the robots of this layout revision.void
Sets the localized robots of this layout revision in the language.void
Sets the localized robots of this layout revision in the language, and sets the default locale.void
setRobotsCurrentLanguageId
(String languageId) void
setRobotsMap
(Map<Locale, String> robotsMap) Sets the localized robotses of this layout revision from the map of locales and localized robotses.void
setRobotsMap
(Map<Locale, String> robotsMap, Locale defaultLocale) Sets the localized robotses of this layout revision from the map of locales and localized robotses, and sets the default locale.void
setStatus
(int status) Sets the status of this layout revision.void
setStatusByUserId
(long statusByUserId) Sets the status by user ID of this layout revision.void
setStatusByUserName
(String statusByUserName) Sets the status by user name of this layout revision.void
setStatusByUserUuid
(String statusByUserUuid) Sets the status by user uuid of this layout revision.void
setStatusDate
(Date statusDate) Sets the status date of this layout revision.void
setThemeId
(String themeId) Sets the theme ID of this layout revision.void
Sets the title of this layout revision.void
Sets the localized title of this layout revision in the language.void
Sets the localized title of this layout revision in the language, and sets the default locale.void
setTitleCurrentLanguageId
(String languageId) void
setTitleMap
(Map<Locale, String> titleMap) Sets the localized titles of this layout revision from the map of locales and localized titles.void
setTitleMap
(Map<Locale, String> titleMap, Locale defaultLocale) Sets the localized titles of this layout revision from the map of locales and localized titles, and sets the default locale.void
setTypeSettings
(String typeSettings) Sets the type settings of this layout revision.void
setTypeSettingsProperties
(UnicodeProperties typeSettingsUnicodeProperties) void
setUserId
(long userId) Sets the user ID of this layout revision.void
setUserName
(String userName) Sets the user name of this layout revision.void
setUserUuid
(String userUuid) Sets the user uuid of this layout revision.protected LayoutRevisionWrapper
wrap
(LayoutRevision layoutRevision) Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
clone, 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
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, 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
-
LayoutRevisionWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<LayoutRevision>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<LayoutRevision>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<LayoutRevision>
- Specified by:
cloneWithOriginalValues
in interfaceLayoutRevisionModel
-
getAvailableLanguageIds
- Specified by:
getAvailableLanguageIds
in interfaceLayoutRevisionModel
- Specified by:
getAvailableLanguageIds
in interfaceLocalizedModel
-
getBreadcrumb
- Specified by:
getBreadcrumb
in interfaceLayoutRevision
- Throws:
PortalException
-
getChildren
- Specified by:
getChildren
in interfaceLayoutRevision
-
getColorScheme
- Specified by:
getColorScheme
in interfaceLayoutRevision
- Throws:
PortalException
-
getColorSchemeId
Returns the color scheme ID of this layout revision.- Specified by:
getColorSchemeId
in interfaceLayoutRevisionModel
- Returns:
- the color scheme ID of this layout revision
-
getCompanyId
public long getCompanyId()Returns the company ID of this layout revision.- Specified by:
getCompanyId
in interfaceAuditedModel
- Specified by:
getCompanyId
in interfaceLayoutRevisionModel
- Specified by:
getCompanyId
in interfaceShardedModel
- Returns:
- the company ID of this layout revision
-
getCreateDate
Returns the create date of this layout revision.- Specified by:
getCreateDate
in interfaceAuditedModel
- Specified by:
getCreateDate
in interfaceLayoutRevisionModel
- Returns:
- the create date of this layout revision
-
getCss
Returns the css of this layout revision.- Specified by:
getCss
in interfaceLayoutRevisionModel
- Returns:
- the css of this layout revision
-
getCssText
- Specified by:
getCssText
in interfaceLayoutRevision
- Throws:
PortalException
-
getDefaultLanguageId
- Specified by:
getDefaultLanguageId
in interfaceLayoutRevisionModel
- Specified by:
getDefaultLanguageId
in interfaceLocalizedModel
-
getDescription
Returns the description of this layout revision.- Specified by:
getDescription
in interfaceLayoutRevisionModel
- Returns:
- the description of this layout revision
-
getDescription
Returns the localized description of this layout revision in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getDescription
in interfaceLayoutRevisionModel
- Parameters:
locale
- the locale of the language- Returns:
- the localized description of this layout revision
-
getDescription
Returns the localized description of this layout revision in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getDescription
in interfaceLayoutRevisionModel
- Parameters:
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language- Returns:
- the localized description of this layout revision. If
useDefault
isfalse
and no localization exists for the requested language, an empty string will be returned.
-
getDescription
Returns the localized description of this layout revision in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getDescription
in interfaceLayoutRevisionModel
- Parameters:
languageId
- the ID of the language- Returns:
- the localized description of this layout revision
-
getDescription
Returns the localized description of this layout revision in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getDescription
in interfaceLayoutRevisionModel
- Parameters:
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language- Returns:
- the localized description of this layout revision
-
getDescriptionCurrentLanguageId
- Specified by:
getDescriptionCurrentLanguageId
in interfaceLayoutRevisionModel
-
getDescriptionCurrentValue
- Specified by:
getDescriptionCurrentValue
in interfaceLayoutRevisionModel
-
getDescriptionMap
Returns a map of the locales and localized descriptions of this layout revision.- Specified by:
getDescriptionMap
in interfaceLayoutRevisionModel
- Returns:
- the locales and localized descriptions of this layout revision
-
getGroup
- Specified by:
getGroup
in interfaceLayoutRevision
-
getGroupId
public long getGroupId()Returns the group ID of this layout revision.- Specified by:
getGroupId
in interfaceGroupedModel
- Specified by:
getGroupId
in interfaceLayoutRevisionModel
- Returns:
- the group ID of this layout revision
-
getHead
public boolean getHead()Returns the head of this layout revision.- Specified by:
getHead
in interfaceLayoutRevisionModel
- Returns:
- the head of this layout revision
-
getHTMLTitle
- Specified by:
getHTMLTitle
in interfaceLayoutRevision
-
getHTMLTitle
- Specified by:
getHTMLTitle
in interfaceLayoutRevision
-
getIconImage
public boolean getIconImage()- Specified by:
getIconImage
in interfaceLayoutRevision
-
getIconImageId
public long getIconImageId()Returns the icon image ID of this layout revision.- Specified by:
getIconImageId
in interfaceLayoutRevisionModel
- Returns:
- the icon image ID of this layout revision
-
getKeywords
Returns the keywords of this layout revision.- Specified by:
getKeywords
in interfaceLayoutRevisionModel
- Returns:
- the keywords of this layout revision
-
getKeywords
Returns the localized keywords of this layout revision in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getKeywords
in interfaceLayoutRevisionModel
- Parameters:
locale
- the locale of the language- Returns:
- the localized keywords of this layout revision
-
getKeywords
Returns the localized keywords of this layout revision in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getKeywords
in interfaceLayoutRevisionModel
- Parameters:
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language- Returns:
- the localized keywords of this layout revision. If
useDefault
isfalse
and no localization exists for the requested language, an empty string will be returned.
-
getKeywords
Returns the localized keywords of this layout revision in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getKeywords
in interfaceLayoutRevisionModel
- Parameters:
languageId
- the ID of the language- Returns:
- the localized keywords of this layout revision
-
getKeywords
Returns the localized keywords of this layout revision in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getKeywords
in interfaceLayoutRevisionModel
- Parameters:
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language- Returns:
- the localized keywords of this layout revision
-
getKeywordsCurrentLanguageId
- Specified by:
getKeywordsCurrentLanguageId
in interfaceLayoutRevisionModel
-
getKeywordsCurrentValue
- Specified by:
getKeywordsCurrentValue
in interfaceLayoutRevisionModel
-
getKeywordsMap
Returns a map of the locales and localized keywordses of this layout revision.- Specified by:
getKeywordsMap
in interfaceLayoutRevisionModel
- Returns:
- the locales and localized keywordses of this layout revision
-
getLayoutBranch
- Specified by:
getLayoutBranch
in interfaceLayoutRevision
- Throws:
PortalException
-
getLayoutBranchId
public long getLayoutBranchId()Returns the layout branch ID of this layout revision.- Specified by:
getLayoutBranchId
in interfaceLayoutRevisionModel
- Returns:
- the layout branch ID of this layout revision
-
getLayoutRevisionId
public long getLayoutRevisionId()Returns the layout revision ID of this layout revision.- Specified by:
getLayoutRevisionId
in interfaceLayoutRevisionModel
- Returns:
- the layout revision ID of this layout revision
-
getLayoutSet
- Specified by:
getLayoutSet
in interfaceLayoutRevision
- Throws:
PortalException
-
getLayoutSetBranchId
public long getLayoutSetBranchId()Returns the layout set branch ID of this layout revision.- Specified by:
getLayoutSetBranchId
in interfaceLayoutRevisionModel
- Returns:
- the layout set branch ID of this layout revision
-
getMajor
public boolean getMajor()Returns the major of this layout revision.- Specified by:
getMajor
in interfaceLayoutRevisionModel
- Returns:
- the major of this layout revision
-
getModifiedDate
Returns the modified date of this layout revision.- Specified by:
getModifiedDate
in interfaceAuditedModel
- Specified by:
getModifiedDate
in interfaceLayoutRevisionModel
- Returns:
- the modified date of this layout revision
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this layout revision.- Specified by:
getMvccVersion
in interfaceLayoutRevisionModel
- Specified by:
getMvccVersion
in interfaceMVCCModel
- Returns:
- the mvcc version of this layout revision
-
getName
Returns the name of this layout revision.- Specified by:
getName
in interfaceLayoutRevisionModel
- Returns:
- the name of this layout revision
-
getName
Returns the localized name of this layout revision in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getName
in interfaceLayoutRevisionModel
- Parameters:
locale
- the locale of the language- Returns:
- the localized name of this layout revision
-
getName
Returns the localized name of this layout revision in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getName
in interfaceLayoutRevisionModel
- Parameters:
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language- Returns:
- the localized name of this layout revision. If
useDefault
isfalse
and no localization exists for the requested language, an empty string will be returned.
-
getName
Returns the localized name of this layout revision in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getName
in interfaceLayoutRevisionModel
- Parameters:
languageId
- the ID of the language- Returns:
- the localized name of this layout revision
-
getName
Returns the localized name of this layout revision in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getName
in interfaceLayoutRevisionModel
- Parameters:
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language- Returns:
- the localized name of this layout revision
-
getNameCurrentLanguageId
- Specified by:
getNameCurrentLanguageId
in interfaceLayoutRevisionModel
-
getNameCurrentValue
- Specified by:
getNameCurrentValue
in interfaceLayoutRevisionModel
-
getNameMap
Returns a map of the locales and localized names of this layout revision.- Specified by:
getNameMap
in interfaceLayoutRevisionModel
- Returns:
- the locales and localized names of this layout revision
-
getParentLayoutRevisionId
public long getParentLayoutRevisionId()Returns the parent layout revision ID of this layout revision.- Specified by:
getParentLayoutRevisionId
in interfaceLayoutRevisionModel
- Returns:
- the parent layout revision ID of this layout revision
-
getPlid
public long getPlid()Returns the plid of this layout revision.- Specified by:
getPlid
in interfaceLayoutRevisionModel
- Returns:
- the plid of this layout revision
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this layout revision.- Specified by:
getPrimaryKey
in interfaceLayoutRevisionModel
- Returns:
- the primary key of this layout revision
-
getPrivateLayout
public boolean getPrivateLayout()Returns the private layout of this layout revision.- Specified by:
getPrivateLayout
in interfaceLayoutRevisionModel
- Returns:
- the private layout of this layout revision
-
getRegularURL
public String getRegularURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException - Specified by:
getRegularURL
in interfaceLayoutRevision
- Throws:
PortalException
-
getRobots
Returns the robots of this layout revision.- Specified by:
getRobots
in interfaceLayoutRevisionModel
- Returns:
- the robots of this layout revision
-
getRobots
Returns the localized robots of this layout revision in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getRobots
in interfaceLayoutRevisionModel
- Parameters:
locale
- the locale of the language- Returns:
- the localized robots of this layout revision
-
getRobots
Returns the localized robots of this layout revision in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getRobots
in interfaceLayoutRevisionModel
- Parameters:
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language- Returns:
- the localized robots of this layout revision. If
useDefault
isfalse
and no localization exists for the requested language, an empty string will be returned.
-
getRobots
Returns the localized robots of this layout revision in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getRobots
in interfaceLayoutRevisionModel
- Parameters:
languageId
- the ID of the language- Returns:
- the localized robots of this layout revision
-
getRobots
Returns the localized robots of this layout revision in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getRobots
in interfaceLayoutRevisionModel
- Parameters:
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language- Returns:
- the localized robots of this layout revision
-
getRobotsCurrentLanguageId
- Specified by:
getRobotsCurrentLanguageId
in interfaceLayoutRevisionModel
-
getRobotsCurrentValue
- Specified by:
getRobotsCurrentValue
in interfaceLayoutRevisionModel
-
getRobotsMap
Returns a map of the locales and localized robotses of this layout revision.- Specified by:
getRobotsMap
in interfaceLayoutRevisionModel
- Returns:
- the locales and localized robotses of this layout revision
-
getStatus
public int getStatus()Returns the status of this layout revision.- Specified by:
getStatus
in interfaceLayoutRevisionModel
- Specified by:
getStatus
in interfaceWorkflowedModel
- Returns:
- the status of this layout revision
-
getStatusByUserId
public long getStatusByUserId()Returns the status by user ID of this layout revision.- Specified by:
getStatusByUserId
in interfaceLayoutRevisionModel
- Specified by:
getStatusByUserId
in interfaceWorkflowedModel
- Returns:
- the status by user ID of this layout revision
-
getStatusByUserName
Returns the status by user name of this layout revision.- Specified by:
getStatusByUserName
in interfaceLayoutRevisionModel
- Specified by:
getStatusByUserName
in interfaceWorkflowedModel
- Returns:
- the status by user name of this layout revision
-
getStatusByUserUuid
Returns the status by user uuid of this layout revision.- Specified by:
getStatusByUserUuid
in interfaceLayoutRevisionModel
- Specified by:
getStatusByUserUuid
in interfaceWorkflowedModel
- Returns:
- the status by user uuid of this layout revision
-
getStatusDate
Returns the status date of this layout revision.- Specified by:
getStatusDate
in interfaceLayoutRevisionModel
- Specified by:
getStatusDate
in interfaceWorkflowedModel
- Returns:
- the status date of this layout revision
-
getTarget
- Specified by:
getTarget
in interfaceLayoutRevision
-
getTheme
- Specified by:
getTheme
in interfaceLayoutRevision
- Throws:
PortalException
-
getThemeId
Returns the theme ID of this layout revision.- Specified by:
getThemeId
in interfaceLayoutRevisionModel
- Returns:
- the theme ID of this layout revision
-
getThemeSetting
- Specified by:
getThemeSetting
in interfaceLayoutRevision
-
getTitle
Returns the title of this layout revision.- Specified by:
getTitle
in interfaceLayoutRevisionModel
- Returns:
- the title of this layout revision
-
getTitle
Returns the localized title of this layout revision in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getTitle
in interfaceLayoutRevisionModel
- Parameters:
locale
- the locale of the language- Returns:
- the localized title of this layout revision
-
getTitle
Returns the localized title of this layout revision in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getTitle
in interfaceLayoutRevisionModel
- Parameters:
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language- Returns:
- the localized title of this layout revision. If
useDefault
isfalse
and no localization exists for the requested language, an empty string will be returned.
-
getTitle
Returns the localized title of this layout revision in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getTitle
in interfaceLayoutRevisionModel
- Parameters:
languageId
- the ID of the language- Returns:
- the localized title of this layout revision
-
getTitle
Returns the localized title of this layout revision in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getTitle
in interfaceLayoutRevisionModel
- Parameters:
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language- Returns:
- the localized title of this layout revision
-
getTitleCurrentLanguageId
- Specified by:
getTitleCurrentLanguageId
in interfaceLayoutRevisionModel
-
getTitleCurrentValue
- Specified by:
getTitleCurrentValue
in interfaceLayoutRevisionModel
-
getTitleMap
Returns a map of the locales and localized titles of this layout revision.- Specified by:
getTitleMap
in interfaceLayoutRevisionModel
- Returns:
- the locales and localized titles of this layout revision
-
getTypeSettings
Returns the type settings of this layout revision.- Specified by:
getTypeSettings
in interfaceLayoutRevisionModel
- Returns:
- the type settings of this layout revision
-
getTypeSettingsProperties
- Specified by:
getTypeSettingsProperties
in interfaceLayoutRevision
-
getTypeSettingsProperty
- Specified by:
getTypeSettingsProperty
in interfaceLayoutRevision
-
getTypeSettingsProperty
- Specified by:
getTypeSettingsProperty
in interfaceLayoutRevision
-
getUserId
public long getUserId()Returns the user ID of this layout revision.- Specified by:
getUserId
in interfaceAuditedModel
- Specified by:
getUserId
in interfaceLayoutRevisionModel
- Returns:
- the user ID of this layout revision
-
getUserName
Returns the user name of this layout revision.- Specified by:
getUserName
in interfaceAuditedModel
- Specified by:
getUserName
in interfaceLayoutRevisionModel
- Returns:
- the user name of this layout revision
-
getUserUuid
Returns the user uuid of this layout revision.- Specified by:
getUserUuid
in interfaceAuditedModel
- Specified by:
getUserUuid
in interfaceLayoutRevisionModel
- Returns:
- the user uuid of this layout revision
-
hasChildren
public boolean hasChildren()- Specified by:
hasChildren
in interfaceLayoutRevision
-
isApproved
public boolean isApproved()Returnstrue
if this layout revision is approved.- Specified by:
isApproved
in interfaceLayoutRevisionModel
- Specified by:
isApproved
in interfaceWorkflowedModel
- Returns:
true
if this layout revision is approved;false
otherwise
-
isContentDisplayPage
public boolean isContentDisplayPage()- Specified by:
isContentDisplayPage
in interfaceLayoutRevision
-
isCustomizable
- Specified by:
isCustomizable
in interfaceLayoutRevision
- Throws:
PortalException
-
isDenied
public boolean isDenied()Returnstrue
if this layout revision is denied.- Specified by:
isDenied
in interfaceLayoutRevisionModel
- Specified by:
isDenied
in interfaceWorkflowedModel
- Returns:
true
if this layout revision is denied;false
otherwise
-
isDraft
public boolean isDraft()Returnstrue
if this layout revision is a draft.- Specified by:
isDraft
in interfaceLayoutRevisionModel
- Specified by:
isDraft
in interfaceWorkflowedModel
- Returns:
true
if this layout revision is a draft;false
otherwise
-
isExpired
public boolean isExpired()Returnstrue
if this layout revision is expired.- Specified by:
isExpired
in interfaceLayoutRevisionModel
- Specified by:
isExpired
in interfaceWorkflowedModel
- Returns:
true
if this layout revision is expired;false
otherwise
-
isHead
public boolean isHead()Returnstrue
if this layout revision is head.- Specified by:
isHead
in interfaceLayoutRevisionModel
- Returns:
true
if this layout revision is head;false
otherwise
-
isIconImage
public boolean isIconImage()- Specified by:
isIconImage
in interfaceLayoutRevision
-
isInactive
public boolean isInactive()Returnstrue
if this layout revision is inactive.- Specified by:
isInactive
in interfaceLayoutRevisionModel
- Specified by:
isInactive
in interfaceWorkflowedModel
- Returns:
true
if this layout revision is inactive;false
otherwise
-
isIncomplete
public boolean isIncomplete()Returnstrue
if this layout revision is incomplete.- Specified by:
isIncomplete
in interfaceLayoutRevisionModel
- Specified by:
isIncomplete
in interfaceWorkflowedModel
- Returns:
true
if this layout revision is incomplete;false
otherwise
-
isInheritLookAndFeel
public boolean isInheritLookAndFeel()- Specified by:
isInheritLookAndFeel
in interfaceLayoutRevision
-
isMajor
public boolean isMajor()Returnstrue
if this layout revision is major.- Specified by:
isMajor
in interfaceLayoutRevisionModel
- Returns:
true
if this layout revision is major;false
otherwise
-
isPending
public boolean isPending()Returnstrue
if this layout revision is pending.- Specified by:
isPending
in interfaceLayoutRevisionModel
- Specified by:
isPending
in interfaceWorkflowedModel
- Returns:
true
if this layout revision is pending;false
otherwise
-
isPrivateLayout
public boolean isPrivateLayout()Returnstrue
if this layout revision is private layout.- Specified by:
isPrivateLayout
in interfaceLayoutRevisionModel
- Returns:
true
if this layout revision is private layout;false
otherwise
-
isScheduled
public boolean isScheduled()Returnstrue
if this layout revision is scheduled.- Specified by:
isScheduled
in interfaceLayoutRevisionModel
- Specified by:
isScheduled
in interfaceWorkflowedModel
- Returns:
true
if this layout revision is scheduled;false
otherwise
-
persist
public void persist()Description copied from interface:PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persist
in interfacePersistedModel
-
prepareLocalizedFieldsForImport
- Specified by:
prepareLocalizedFieldsForImport
in interfaceLayoutRevisionModel
- Specified by:
prepareLocalizedFieldsForImport
in interfaceLocalizedModel
- Throws:
LocaleException
-
prepareLocalizedFieldsForImport
- Specified by:
prepareLocalizedFieldsForImport
in interfaceLayoutRevisionModel
- Specified by:
prepareLocalizedFieldsForImport
in interfaceLocalizedModel
- Throws:
LocaleException
-
setColorSchemeId
Sets the color scheme ID of this layout revision.- Specified by:
setColorSchemeId
in interfaceLayoutRevisionModel
- Parameters:
colorSchemeId
- the color scheme ID of this layout revision
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this layout revision.- Specified by:
setCompanyId
in interfaceAuditedModel
- Specified by:
setCompanyId
in interfaceLayoutRevisionModel
- Specified by:
setCompanyId
in interfaceShardedModel
- Parameters:
companyId
- the company ID of this layout revision
-
setCreateDate
Sets the create date of this layout revision.- Specified by:
setCreateDate
in interfaceAuditedModel
- Specified by:
setCreateDate
in interfaceLayoutRevisionModel
- Parameters:
createDate
- the create date of this layout revision
-
setCss
Sets the css of this layout revision.- Specified by:
setCss
in interfaceLayoutRevisionModel
- Parameters:
css
- the css of this layout revision
-
setDescription
Sets the description of this layout revision.- Specified by:
setDescription
in interfaceLayoutRevisionModel
- Parameters:
description
- the description of this layout revision
-
setDescription
Sets the localized description of this layout revision in the language.- Specified by:
setDescription
in interfaceLayoutRevisionModel
- Parameters:
description
- the localized description of this layout revisionlocale
- the locale of the language
-
setDescription
Sets the localized description of this layout revision in the language, and sets the default locale.- Specified by:
setDescription
in interfaceLayoutRevisionModel
- Parameters:
description
- the localized description of this layout revisionlocale
- the locale of the languagedefaultLocale
- the default locale
-
setDescriptionCurrentLanguageId
- Specified by:
setDescriptionCurrentLanguageId
in interfaceLayoutRevisionModel
-
setDescriptionMap
Sets the localized descriptions of this layout revision from the map of locales and localized descriptions.- Specified by:
setDescriptionMap
in interfaceLayoutRevisionModel
- Parameters:
descriptionMap
- the locales and localized descriptions of this layout revision
-
setDescriptionMap
Sets the localized descriptions of this layout revision from the map of locales and localized descriptions, and sets the default locale.- Specified by:
setDescriptionMap
in interfaceLayoutRevisionModel
- Parameters:
descriptionMap
- the locales and localized descriptions of this layout revisiondefaultLocale
- the default locale
-
setGroupId
public void setGroupId(long groupId) Sets the group ID of this layout revision.- Specified by:
setGroupId
in interfaceGroupedModel
- Specified by:
setGroupId
in interfaceLayoutRevisionModel
- Parameters:
groupId
- the group ID of this layout revision
-
setHead
public void setHead(boolean head) Sets whether this layout revision is head.- Specified by:
setHead
in interfaceLayoutRevisionModel
- Parameters:
head
- the head of this layout revision
-
setIconImageId
public void setIconImageId(long iconImageId) Sets the icon image ID of this layout revision.- Specified by:
setIconImageId
in interfaceLayoutRevisionModel
- Parameters:
iconImageId
- the icon image ID of this layout revision
-
setKeywords
Sets the keywords of this layout revision.- Specified by:
setKeywords
in interfaceLayoutRevisionModel
- Parameters:
keywords
- the keywords of this layout revision
-
setKeywords
Sets the localized keywords of this layout revision in the language.- Specified by:
setKeywords
in interfaceLayoutRevisionModel
- Parameters:
keywords
- the localized keywords of this layout revisionlocale
- the locale of the language
-
setKeywords
Sets the localized keywords of this layout revision in the language, and sets the default locale.- Specified by:
setKeywords
in interfaceLayoutRevisionModel
- Parameters:
keywords
- the localized keywords of this layout revisionlocale
- the locale of the languagedefaultLocale
- the default locale
-
setKeywordsCurrentLanguageId
- Specified by:
setKeywordsCurrentLanguageId
in interfaceLayoutRevisionModel
-
setKeywordsMap
Sets the localized keywordses of this layout revision from the map of locales and localized keywordses.- Specified by:
setKeywordsMap
in interfaceLayoutRevisionModel
- Parameters:
keywordsMap
- the locales and localized keywordses of this layout revision
-
setKeywordsMap
Sets the localized keywordses of this layout revision from the map of locales and localized keywordses, and sets the default locale.- Specified by:
setKeywordsMap
in interfaceLayoutRevisionModel
- Parameters:
keywordsMap
- the locales and localized keywordses of this layout revisiondefaultLocale
- the default locale
-
setLayoutBranchId
public void setLayoutBranchId(long layoutBranchId) Sets the layout branch ID of this layout revision.- Specified by:
setLayoutBranchId
in interfaceLayoutRevisionModel
- Parameters:
layoutBranchId
- the layout branch ID of this layout revision
-
setLayoutRevisionId
public void setLayoutRevisionId(long layoutRevisionId) Sets the layout revision ID of this layout revision.- Specified by:
setLayoutRevisionId
in interfaceLayoutRevisionModel
- Parameters:
layoutRevisionId
- the layout revision ID of this layout revision
-
setLayoutSetBranchId
public void setLayoutSetBranchId(long layoutSetBranchId) Sets the layout set branch ID of this layout revision.- Specified by:
setLayoutSetBranchId
in interfaceLayoutRevisionModel
- Parameters:
layoutSetBranchId
- the layout set branch ID of this layout revision
-
setMajor
public void setMajor(boolean major) Sets whether this layout revision is major.- Specified by:
setMajor
in interfaceLayoutRevisionModel
- Parameters:
major
- the major of this layout revision
-
setModifiedDate
Sets the modified date of this layout revision.- Specified by:
setModifiedDate
in interfaceAuditedModel
- Specified by:
setModifiedDate
in interfaceLayoutRevisionModel
- Parameters:
modifiedDate
- the modified date of this layout revision
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this layout revision.- Specified by:
setMvccVersion
in interfaceLayoutRevisionModel
- Specified by:
setMvccVersion
in interfaceMVCCModel
- Parameters:
mvccVersion
- the mvcc version of this layout revision
-
setName
Sets the name of this layout revision.- Specified by:
setName
in interfaceLayoutRevisionModel
- Parameters:
name
- the name of this layout revision
-
setName
Sets the localized name of this layout revision in the language.- Specified by:
setName
in interfaceLayoutRevisionModel
- Parameters:
name
- the localized name of this layout revisionlocale
- the locale of the language
-
setName
Sets the localized name of this layout revision in the language, and sets the default locale.- Specified by:
setName
in interfaceLayoutRevisionModel
- Parameters:
name
- the localized name of this layout revisionlocale
- the locale of the languagedefaultLocale
- the default locale
-
setNameCurrentLanguageId
- Specified by:
setNameCurrentLanguageId
in interfaceLayoutRevisionModel
-
setNameMap
Sets the localized names of this layout revision from the map of locales and localized names.- Specified by:
setNameMap
in interfaceLayoutRevisionModel
- Parameters:
nameMap
- the locales and localized names of this layout revision
-
setNameMap
Sets the localized names of this layout revision from the map of locales and localized names, and sets the default locale.- Specified by:
setNameMap
in interfaceLayoutRevisionModel
- Parameters:
nameMap
- the locales and localized names of this layout revisiondefaultLocale
- the default locale
-
setParentLayoutRevisionId
public void setParentLayoutRevisionId(long parentLayoutRevisionId) Sets the parent layout revision ID of this layout revision.- Specified by:
setParentLayoutRevisionId
in interfaceLayoutRevisionModel
- Parameters:
parentLayoutRevisionId
- the parent layout revision ID of this layout revision
-
setPlid
public void setPlid(long plid) Sets the plid of this layout revision.- Specified by:
setPlid
in interfaceLayoutRevisionModel
- Parameters:
plid
- the plid of this layout revision
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this layout revision.- Specified by:
setPrimaryKey
in interfaceLayoutRevisionModel
- Parameters:
primaryKey
- the primary key of this layout revision
-
setPrivateLayout
public void setPrivateLayout(boolean privateLayout) Sets whether this layout revision is private layout.- Specified by:
setPrivateLayout
in interfaceLayoutRevisionModel
- Parameters:
privateLayout
- the private layout of this layout revision
-
setRobots
Sets the robots of this layout revision.- Specified by:
setRobots
in interfaceLayoutRevisionModel
- Parameters:
robots
- the robots of this layout revision
-
setRobots
Sets the localized robots of this layout revision in the language.- Specified by:
setRobots
in interfaceLayoutRevisionModel
- Parameters:
robots
- the localized robots of this layout revisionlocale
- the locale of the language
-
setRobots
Sets the localized robots of this layout revision in the language, and sets the default locale.- Specified by:
setRobots
in interfaceLayoutRevisionModel
- Parameters:
robots
- the localized robots of this layout revisionlocale
- the locale of the languagedefaultLocale
- the default locale
-
setRobotsCurrentLanguageId
- Specified by:
setRobotsCurrentLanguageId
in interfaceLayoutRevisionModel
-
setRobotsMap
Sets the localized robotses of this layout revision from the map of locales and localized robotses.- Specified by:
setRobotsMap
in interfaceLayoutRevisionModel
- Parameters:
robotsMap
- the locales and localized robotses of this layout revision
-
setRobotsMap
Sets the localized robotses of this layout revision from the map of locales and localized robotses, and sets the default locale.- Specified by:
setRobotsMap
in interfaceLayoutRevisionModel
- Parameters:
robotsMap
- the locales and localized robotses of this layout revisiondefaultLocale
- the default locale
-
setStatus
public void setStatus(int status) Sets the status of this layout revision.- Specified by:
setStatus
in interfaceLayoutRevisionModel
- Specified by:
setStatus
in interfaceWorkflowedModel
- Parameters:
status
- the status of this layout revision
-
setStatusByUserId
public void setStatusByUserId(long statusByUserId) Sets the status by user ID of this layout revision.- Specified by:
setStatusByUserId
in interfaceLayoutRevisionModel
- Specified by:
setStatusByUserId
in interfaceWorkflowedModel
- Parameters:
statusByUserId
- the status by user ID of this layout revision
-
setStatusByUserName
Sets the status by user name of this layout revision.- Specified by:
setStatusByUserName
in interfaceLayoutRevisionModel
- Specified by:
setStatusByUserName
in interfaceWorkflowedModel
- Parameters:
statusByUserName
- the status by user name of this layout revision
-
setStatusByUserUuid
Sets the status by user uuid of this layout revision.- Specified by:
setStatusByUserUuid
in interfaceLayoutRevisionModel
- Specified by:
setStatusByUserUuid
in interfaceWorkflowedModel
- Parameters:
statusByUserUuid
- the status by user uuid of this layout revision
-
setStatusDate
Sets the status date of this layout revision.- Specified by:
setStatusDate
in interfaceLayoutRevisionModel
- Specified by:
setStatusDate
in interfaceWorkflowedModel
- Parameters:
statusDate
- the status date of this layout revision
-
setThemeId
Sets the theme ID of this layout revision.- Specified by:
setThemeId
in interfaceLayoutRevisionModel
- Parameters:
themeId
- the theme ID of this layout revision
-
setTitle
Sets the title of this layout revision.- Specified by:
setTitle
in interfaceLayoutRevisionModel
- Parameters:
title
- the title of this layout revision
-
setTitle
Sets the localized title of this layout revision in the language.- Specified by:
setTitle
in interfaceLayoutRevisionModel
- Parameters:
title
- the localized title of this layout revisionlocale
- the locale of the language
-
setTitle
Sets the localized title of this layout revision in the language, and sets the default locale.- Specified by:
setTitle
in interfaceLayoutRevisionModel
- Parameters:
title
- the localized title of this layout revisionlocale
- the locale of the languagedefaultLocale
- the default locale
-
setTitleCurrentLanguageId
- Specified by:
setTitleCurrentLanguageId
in interfaceLayoutRevisionModel
-
setTitleMap
Sets the localized titles of this layout revision from the map of locales and localized titles.- Specified by:
setTitleMap
in interfaceLayoutRevisionModel
- Parameters:
titleMap
- the locales and localized titles of this layout revision
-
setTitleMap
Sets the localized titles of this layout revision from the map of locales and localized titles, and sets the default locale.- Specified by:
setTitleMap
in interfaceLayoutRevisionModel
- Parameters:
titleMap
- the locales and localized titles of this layout revisiondefaultLocale
- the default locale
-
setTypeSettings
Sets the type settings of this layout revision.- Specified by:
setTypeSettings
in interfaceLayoutRevisionModel
- Parameters:
typeSettings
- the type settings of this layout revision
-
setTypeSettingsProperties
- Specified by:
setTypeSettingsProperties
in interfaceLayoutRevision
-
setUserId
public void setUserId(long userId) Sets the user ID of this layout revision.- Specified by:
setUserId
in interfaceAuditedModel
- Specified by:
setUserId
in interfaceLayoutRevisionModel
- Parameters:
userId
- the user ID of this layout revision
-
setUserName
Sets the user name of this layout revision.- Specified by:
setUserName
in interfaceAuditedModel
- Specified by:
setUserName
in interfaceLayoutRevisionModel
- Parameters:
userName
- the user name of this layout revision
-
setUserUuid
Sets the user uuid of this layout revision.- Specified by:
setUserUuid
in interfaceAuditedModel
- Specified by:
setUserUuid
in interfaceLayoutRevisionModel
- Parameters:
userUuid
- the user uuid of this layout revision
-
toXmlString
- Specified by:
toXmlString
in interfaceLayoutRevisionModel
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<LayoutRevision>
-