Package com.liferay.portal.kernel.model
Class LayoutPrototypeWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<LayoutPrototype>
com.liferay.portal.kernel.model.LayoutPrototypeWrapper
- All Implemented Interfaces:
AuditedModel
,BaseModel<LayoutPrototype>
,CTModel<LayoutPrototype>
,ClassedModel
,LayoutPrototype
,LayoutPrototypeModel
,LocalizedModel
,ModelWrapper<LayoutPrototype>
,MVCCModel
,PersistedModel
,ShardedModel
,StagedAuditedModel
,StagedModel
,Serializable
,Cloneable
,Comparable<LayoutPrototype>
public class LayoutPrototypeWrapper
extends BaseModelWrapper<LayoutPrototype>
implements LayoutPrototype, ModelWrapper<LayoutPrototype>
This class is a wrapper for LayoutPrototype
.
- 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.LayoutPrototype
LAYOUT_PROTOTYPE_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the active of this layout prototype.String[]
long
Returns the company ID of this layout prototype.Returns the create date of this layout prototype.long
Returns the ct collection ID of this layout prototype.Returns the description of this layout prototype.getDescription
(String languageId) Returns the localized description of this layout prototype in the language.getDescription
(String languageId, boolean useDefault) Returns the localized description of this layout prototype 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 prototype in the language.getDescription
(Locale locale, boolean useDefault) Returns the localized description of this layout prototype 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 prototype.getGroup()
long
long
Returns the layout prototype ID of this layout prototype.int
Returns the number of failed merge attempts for the layout prototype since its last reset or update.Returns the modified date of this layout prototype.long
Returns the mvcc version of this layout prototype.getName()
Returns the name of this layout prototype.Returns the localized name of this layout prototype in the language.Returns the localized name of this layout prototype in the language, optionally using the default language if no localization exists for the requested language.Returns the localized name of this layout prototype in the language.Returns the localized name of this layout prototype 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 prototype.long
Returns the primary key of this layout prototype.Returns the settings of this layout prototype.long
Returns the user ID of this layout prototype.Returns the user name of this layout prototype.Returns the user uuid of this layout prototype.getUuid()
Returns the uuid of this layout prototype.boolean
boolean
isActive()
Returnstrue
if this layout prototype is active.void
persist()
Updates this model instance in the database or adds it if it does not yet exist.void
void
prepareLocalizedFieldsForImport
(Locale defaultImportLocale) void
setActive
(boolean active) Sets whether this layout prototype is active.void
setCompanyId
(long companyId) Sets the company ID of this layout prototype.void
setCreateDate
(Date createDate) Sets the create date of this layout prototype.void
setCtCollectionId
(long ctCollectionId) Sets the ct collection ID of this layout prototype.void
setDescription
(String description) Sets the description of this layout prototype.void
setDescription
(String description, Locale locale) Sets the localized description of this layout prototype in the language.void
setDescription
(String description, Locale locale, Locale defaultLocale) Sets the localized description of this layout prototype 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 prototype from the map of locales and localized descriptions.void
setDescriptionMap
(Map<Locale, String> descriptionMap, Locale defaultLocale) Sets the localized descriptions of this layout prototype from the map of locales and localized descriptions, and sets the default locale.void
setLayoutPrototypeId
(long layoutPrototypeId) Sets the layout prototype ID of this layout prototype.void
setModelAttributes
(Map<String, Object> attributes) void
setModifiedDate
(Date modifiedDate) Sets the modified date of this layout prototype.void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this layout prototype.void
Sets the name of this layout prototype.void
Sets the localized name of this layout prototype in the language.void
Sets the localized name of this layout prototype 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 prototype from the map of locales and localized names.void
setNameMap
(Map<Locale, String> nameMap, Locale defaultLocale) Sets the localized names of this layout prototype from the map of locales and localized names, and sets the default locale.void
setPrimaryKey
(long primaryKey) Sets the primary key of this layout prototype.void
setSettings
(String settings) Sets the settings of this layout prototype.void
setUserId
(long userId) Sets the user ID of this layout prototype.void
setUserName
(String userName) Sets the user name of this layout prototype.void
setUserUuid
(String userUuid) Sets the user uuid of this layout prototype.void
Sets the uuid of this layout prototype.protected LayoutPrototypeWrapper
wrap
(LayoutPrototype layoutPrototype) 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, 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
Methods inherited from interface com.liferay.portal.kernel.model.StagedModel
clone
-
Constructor Details
-
LayoutPrototypeWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<LayoutPrototype>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<LayoutPrototype>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<LayoutPrototype>
- Specified by:
cloneWithOriginalValues
in interfaceLayoutPrototypeModel
-
getActive
public boolean getActive()Returns the active of this layout prototype.- Specified by:
getActive
in interfaceLayoutPrototypeModel
- Returns:
- the active of this layout prototype
-
getAvailableLanguageIds
- Specified by:
getAvailableLanguageIds
in interfaceLayoutPrototypeModel
- Specified by:
getAvailableLanguageIds
in interfaceLocalizedModel
-
getCompanyId
public long getCompanyId()Returns the company ID of this layout prototype.- Specified by:
getCompanyId
in interfaceAuditedModel
- Specified by:
getCompanyId
in interfaceLayoutPrototypeModel
- Specified by:
getCompanyId
in interfaceShardedModel
- Specified by:
getCompanyId
in interfaceStagedModel
- Returns:
- the company ID of this layout prototype
-
getCreateDate
Returns the create date of this layout prototype.- Specified by:
getCreateDate
in interfaceAuditedModel
- Specified by:
getCreateDate
in interfaceLayoutPrototypeModel
- Specified by:
getCreateDate
in interfaceStagedModel
- Returns:
- the create date of this layout prototype
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this layout prototype.- Specified by:
getCtCollectionId
in interfaceCTModel<LayoutPrototype>
- Specified by:
getCtCollectionId
in interfaceLayoutPrototypeModel
- Returns:
- the ct collection ID of this layout prototype
-
getDefaultLanguageId
- Specified by:
getDefaultLanguageId
in interfaceLayoutPrototypeModel
- Specified by:
getDefaultLanguageId
in interfaceLocalizedModel
-
getDescription
Returns the description of this layout prototype.- Specified by:
getDescription
in interfaceLayoutPrototypeModel
- Returns:
- the description of this layout prototype
-
getDescription
Returns the localized description of this layout prototype in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getDescription
in interfaceLayoutPrototypeModel
- Parameters:
locale
- the locale of the language- Returns:
- the localized description of this layout prototype
-
getDescription
Returns the localized description of this layout prototype in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getDescription
in interfaceLayoutPrototypeModel
- 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 prototype. 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 prototype in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getDescription
in interfaceLayoutPrototypeModel
- Parameters:
languageId
- the ID of the language- Returns:
- the localized description of this layout prototype
-
getDescription
Returns the localized description of this layout prototype in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getDescription
in interfaceLayoutPrototypeModel
- 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 prototype
-
getDescriptionCurrentLanguageId
- Specified by:
getDescriptionCurrentLanguageId
in interfaceLayoutPrototypeModel
-
getDescriptionCurrentValue
- Specified by:
getDescriptionCurrentValue
in interfaceLayoutPrototypeModel
-
getDescriptionMap
Returns a map of the locales and localized descriptions of this layout prototype.- Specified by:
getDescriptionMap
in interfaceLayoutPrototypeModel
- Returns:
- the locales and localized descriptions of this layout prototype
-
getGroup
- Specified by:
getGroup
in interfaceLayoutPrototype
- Throws:
PortalException
-
getGroupId
- Specified by:
getGroupId
in interfaceLayoutPrototype
- Throws:
PortalException
-
getLayout
- Specified by:
getLayout
in interfaceLayoutPrototype
- Throws:
PortalException
-
getLayoutPrototypeId
public long getLayoutPrototypeId()Returns the layout prototype ID of this layout prototype.- Specified by:
getLayoutPrototypeId
in interfaceLayoutPrototypeModel
- Returns:
- the layout prototype ID of this layout prototype
-
getMergeFailCount
Returns the number of failed merge attempts for the layout prototype since its last reset or update.- Specified by:
getMergeFailCount
in interfaceLayoutPrototype
- Returns:
- the number of failed merge attempts for the layout prototype
- Throws:
PortalException
-
getModifiedDate
Returns the modified date of this layout prototype.- Specified by:
getModifiedDate
in interfaceAuditedModel
- Specified by:
getModifiedDate
in interfaceLayoutPrototypeModel
- Specified by:
getModifiedDate
in interfaceStagedModel
- Returns:
- the modified date of this layout prototype
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this layout prototype.- Specified by:
getMvccVersion
in interfaceLayoutPrototypeModel
- Specified by:
getMvccVersion
in interfaceMVCCModel
- Returns:
- the mvcc version of this layout prototype
-
getName
Returns the name of this layout prototype.- Specified by:
getName
in interfaceLayoutPrototypeModel
- Returns:
- the name of this layout prototype
-
getName
Returns the localized name of this layout prototype in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getName
in interfaceLayoutPrototypeModel
- Parameters:
locale
- the locale of the language- Returns:
- the localized name of this layout prototype
-
getName
Returns the localized name of this layout prototype in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getName
in interfaceLayoutPrototypeModel
- 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 prototype. 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 prototype in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getName
in interfaceLayoutPrototypeModel
- Parameters:
languageId
- the ID of the language- Returns:
- the localized name of this layout prototype
-
getName
Returns the localized name of this layout prototype in the language, optionally using the default language if no localization exists for the requested language.- Specified by:
getName
in interfaceLayoutPrototypeModel
- 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 prototype
-
getNameCurrentLanguageId
- Specified by:
getNameCurrentLanguageId
in interfaceLayoutPrototypeModel
-
getNameCurrentValue
- Specified by:
getNameCurrentValue
in interfaceLayoutPrototypeModel
-
getNameMap
Returns a map of the locales and localized names of this layout prototype.- Specified by:
getNameMap
in interfaceLayoutPrototypeModel
- Returns:
- the locales and localized names of this layout prototype
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this layout prototype.- Specified by:
getPrimaryKey
in interfaceCTModel<LayoutPrototype>
- Specified by:
getPrimaryKey
in interfaceLayoutPrototypeModel
- Returns:
- the primary key of this layout prototype
-
getSettings
Returns the settings of this layout prototype.- Specified by:
getSettings
in interfaceLayoutPrototypeModel
- Returns:
- the settings of this layout prototype
-
getUserId
public long getUserId()Returns the user ID of this layout prototype.- Specified by:
getUserId
in interfaceAuditedModel
- Specified by:
getUserId
in interfaceLayoutPrototypeModel
- Returns:
- the user ID of this layout prototype
-
getUserName
Returns the user name of this layout prototype.- Specified by:
getUserName
in interfaceAuditedModel
- Specified by:
getUserName
in interfaceLayoutPrototypeModel
- Returns:
- the user name of this layout prototype
-
getUserUuid
Returns the user uuid of this layout prototype.- Specified by:
getUserUuid
in interfaceAuditedModel
- Specified by:
getUserUuid
in interfaceLayoutPrototypeModel
- Returns:
- the user uuid of this layout prototype
-
getUuid
Returns the uuid of this layout prototype.- Specified by:
getUuid
in interfaceLayoutPrototypeModel
- Specified by:
getUuid
in interfaceStagedModel
- Returns:
- the uuid of this layout prototype
-
hasSetModifiedDate
public boolean hasSetModifiedDate()- Specified by:
hasSetModifiedDate
in interfaceLayoutPrototype
-
isActive
public boolean isActive()Returnstrue
if this layout prototype is active.- Specified by:
isActive
in interfaceLayoutPrototypeModel
- Returns:
true
if this layout prototype is active;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 interfaceLayoutPrototypeModel
- Specified by:
prepareLocalizedFieldsForImport
in interfaceLocalizedModel
- Throws:
LocaleException
-
prepareLocalizedFieldsForImport
- Specified by:
prepareLocalizedFieldsForImport
in interfaceLayoutPrototypeModel
- Specified by:
prepareLocalizedFieldsForImport
in interfaceLocalizedModel
- Throws:
LocaleException
-
setActive
public void setActive(boolean active) Sets whether this layout prototype is active.- Specified by:
setActive
in interfaceLayoutPrototypeModel
- Parameters:
active
- the active of this layout prototype
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this layout prototype.- Specified by:
setCompanyId
in interfaceAuditedModel
- Specified by:
setCompanyId
in interfaceLayoutPrototypeModel
- Specified by:
setCompanyId
in interfaceShardedModel
- Specified by:
setCompanyId
in interfaceStagedModel
- Parameters:
companyId
- the company ID of this layout prototype
-
setCreateDate
Sets the create date of this layout prototype.- Specified by:
setCreateDate
in interfaceAuditedModel
- Specified by:
setCreateDate
in interfaceLayoutPrototypeModel
- Specified by:
setCreateDate
in interfaceStagedModel
- Parameters:
createDate
- the create date of this layout prototype
-
setCtCollectionId
public void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this layout prototype.- Specified by:
setCtCollectionId
in interfaceCTModel<LayoutPrototype>
- Specified by:
setCtCollectionId
in interfaceLayoutPrototypeModel
- Parameters:
ctCollectionId
- the ct collection ID of this layout prototype
-
setDescription
Sets the description of this layout prototype.- Specified by:
setDescription
in interfaceLayoutPrototypeModel
- Parameters:
description
- the description of this layout prototype
-
setDescription
Sets the localized description of this layout prototype in the language.- Specified by:
setDescription
in interfaceLayoutPrototypeModel
- Parameters:
description
- the localized description of this layout prototypelocale
- the locale of the language
-
setDescription
Sets the localized description of this layout prototype in the language, and sets the default locale.- Specified by:
setDescription
in interfaceLayoutPrototypeModel
- Parameters:
description
- the localized description of this layout prototypelocale
- the locale of the languagedefaultLocale
- the default locale
-
setDescriptionCurrentLanguageId
- Specified by:
setDescriptionCurrentLanguageId
in interfaceLayoutPrototypeModel
-
setDescriptionMap
Sets the localized descriptions of this layout prototype from the map of locales and localized descriptions.- Specified by:
setDescriptionMap
in interfaceLayoutPrototypeModel
- Parameters:
descriptionMap
- the locales and localized descriptions of this layout prototype
-
setDescriptionMap
Sets the localized descriptions of this layout prototype from the map of locales and localized descriptions, and sets the default locale.- Specified by:
setDescriptionMap
in interfaceLayoutPrototypeModel
- Parameters:
descriptionMap
- the locales and localized descriptions of this layout prototypedefaultLocale
- the default locale
-
setLayoutPrototypeId
public void setLayoutPrototypeId(long layoutPrototypeId) Sets the layout prototype ID of this layout prototype.- Specified by:
setLayoutPrototypeId
in interfaceLayoutPrototypeModel
- Parameters:
layoutPrototypeId
- the layout prototype ID of this layout prototype
-
setModifiedDate
Sets the modified date of this layout prototype.- Specified by:
setModifiedDate
in interfaceAuditedModel
- Specified by:
setModifiedDate
in interfaceLayoutPrototypeModel
- Specified by:
setModifiedDate
in interfaceStagedModel
- Parameters:
modifiedDate
- the modified date of this layout prototype
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this layout prototype.- Specified by:
setMvccVersion
in interfaceLayoutPrototypeModel
- Specified by:
setMvccVersion
in interfaceMVCCModel
- Parameters:
mvccVersion
- the mvcc version of this layout prototype
-
setName
Sets the name of this layout prototype.- Specified by:
setName
in interfaceLayoutPrototypeModel
- Parameters:
name
- the name of this layout prototype
-
setName
Sets the localized name of this layout prototype in the language.- Specified by:
setName
in interfaceLayoutPrototypeModel
- Parameters:
name
- the localized name of this layout prototypelocale
- the locale of the language
-
setName
Sets the localized name of this layout prototype in the language, and sets the default locale.- Specified by:
setName
in interfaceLayoutPrototypeModel
- Parameters:
name
- the localized name of this layout prototypelocale
- the locale of the languagedefaultLocale
- the default locale
-
setNameCurrentLanguageId
- Specified by:
setNameCurrentLanguageId
in interfaceLayoutPrototypeModel
-
setNameMap
Sets the localized names of this layout prototype from the map of locales and localized names.- Specified by:
setNameMap
in interfaceLayoutPrototypeModel
- Parameters:
nameMap
- the locales and localized names of this layout prototype
-
setNameMap
Sets the localized names of this layout prototype from the map of locales and localized names, and sets the default locale.- Specified by:
setNameMap
in interfaceLayoutPrototypeModel
- Parameters:
nameMap
- the locales and localized names of this layout prototypedefaultLocale
- the default locale
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this layout prototype.- Specified by:
setPrimaryKey
in interfaceCTModel<LayoutPrototype>
- Specified by:
setPrimaryKey
in interfaceLayoutPrototypeModel
- Parameters:
primaryKey
- the primary key of this layout prototype
-
setSettings
Sets the settings of this layout prototype.- Specified by:
setSettings
in interfaceLayoutPrototypeModel
- Parameters:
settings
- the settings of this layout prototype
-
setUserId
public void setUserId(long userId) Sets the user ID of this layout prototype.- Specified by:
setUserId
in interfaceAuditedModel
- Specified by:
setUserId
in interfaceLayoutPrototypeModel
- Parameters:
userId
- the user ID of this layout prototype
-
setUserName
Sets the user name of this layout prototype.- Specified by:
setUserName
in interfaceAuditedModel
- Specified by:
setUserName
in interfaceLayoutPrototypeModel
- Parameters:
userName
- the user name of this layout prototype
-
setUserUuid
Sets the user uuid of this layout prototype.- Specified by:
setUserUuid
in interfaceAuditedModel
- Specified by:
setUserUuid
in interfaceLayoutPrototypeModel
- Parameters:
userUuid
- the user uuid of this layout prototype
-
setUuid
Sets the uuid of this layout prototype.- Specified by:
setUuid
in interfaceLayoutPrototypeModel
- Specified by:
setUuid
in interfaceStagedModel
- Parameters:
uuid
- the uuid of this layout prototype
-
toXmlString
- Specified by:
toXmlString
in interfaceLayoutPrototypeModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfaceBaseModel<LayoutPrototype>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfaceBaseModel<LayoutPrototype>
-
getStagedModelType
- Specified by:
getStagedModelType
in interfaceStagedModel
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<LayoutPrototype>
-