@ProviderType public class LayoutPrototypeWrapper extends Object implements LayoutPrototype, ModelWrapper<LayoutPrototype>
This class is a wrapper for LayoutPrototype
.
LayoutPrototype
,
Serialized FormLAYOUT_PROTOTYPE_ID_ACCESSOR
Constructor and Description |
---|
LayoutPrototypeWrapper(LayoutPrototype layoutPrototype) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(LayoutPrototype layoutPrototype) |
boolean |
equals(Object obj) |
boolean |
getActive()
Returns the active of this layout prototype.
|
String[] |
getAvailableLanguageIds() |
long |
getCompanyId()
Returns the company ID of this layout prototype.
|
Date |
getCreateDate()
Returns the create date of this layout prototype.
|
String |
getDefaultLanguageId() |
String |
getDescription()
Returns the description of this layout prototype.
|
String |
getDescription(Locale locale)
Returns the localized description of this layout prototype in the language.
|
String |
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.
|
String |
getDescription(String languageId)
Returns the localized description of this layout prototype in the language.
|
String |
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.
|
String |
getDescriptionCurrentLanguageId() |
String |
getDescriptionCurrentValue() |
Map<Locale,String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this layout prototype.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Group |
getGroup() |
long |
getGroupId() |
Layout |
getLayout() |
long |
getLayoutPrototypeId()
Returns the layout prototype ID of this layout prototype.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate()
Returns the modified date of this layout prototype.
|
long |
getMvccVersion()
Returns the mvcc version of this layout prototype.
|
String |
getName()
Returns the name of this layout prototype.
|
String |
getName(Locale locale)
Returns the localized name of this layout prototype in the language.
|
String |
getName(Locale locale,
boolean useDefault)
Returns the localized name of this layout prototype in the language, optionally using the default language if no localization exists for the requested language.
|
String |
getName(String languageId)
Returns the localized name of this layout prototype in the language.
|
String |
getName(String languageId,
boolean useDefault)
Returns the localized name of this layout prototype in the language, optionally using the default language if no localization exists for the requested language.
|
String |
getNameCurrentLanguageId() |
String |
getNameCurrentValue() |
Map<Locale,String> |
getNameMap()
Returns a map of the locales and localized names of this layout prototype.
|
long |
getPrimaryKey()
Returns the primary key of this layout prototype.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
String |
getSettings()
Returns the settings of this layout prototype.
|
StagedModelType |
getStagedModelType() |
long |
getUserId()
Returns the user ID of this layout prototype.
|
String |
getUserName()
Returns the user name of this layout prototype.
|
String |
getUserUuid()
Returns the user uuid of this layout prototype.
|
String |
getUuid()
Returns the uuid of this layout prototype.
|
LayoutPrototype |
getWrappedModel() |
int |
hashCode() |
boolean |
hasSetModifiedDate() |
boolean |
isActive()
Returns
true if this layout prototype is active. |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale) |
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setActive(boolean active)
Sets whether this layout prototype is active.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
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 |
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 |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
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 |
setName(String name)
Sets the name of this layout prototype.
|
void |
setName(String name,
Locale locale)
Sets the localized name of this layout prototype in the language.
|
void |
setName(String name,
Locale locale,
Locale defaultLocale)
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 |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this layout prototype.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
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 |
setUuid(String uuid)
Sets the uuid of this layout prototype.
|
CacheModel<LayoutPrototype> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
LayoutPrototype |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
LayoutPrototype |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public LayoutPrototypeWrapper(LayoutPrototype layoutPrototype)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<LayoutPrototype>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<LayoutPrototype>
public Object clone()
BaseModel
clone
in interface BaseModel<LayoutPrototype>
clone
in interface LayoutPrototypeModel
clone
in interface StagedModel
clone
in class Object
public int compareTo(LayoutPrototype layoutPrototype)
compareTo
in interface LayoutPrototypeModel
compareTo
in interface Comparable<LayoutPrototype>
public boolean getActive()
getActive
in interface LayoutPrototypeModel
public String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface LayoutPrototypeModel
getAvailableLanguageIds
in interface LocalizedModel
public long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface LayoutPrototypeModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
public Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface LayoutPrototypeModel
getCreateDate
in interface StagedModel
public String getDefaultLanguageId()
getDefaultLanguageId
in interface LayoutPrototypeModel
getDefaultLanguageId
in interface LocalizedModel
public String getDescription()
getDescription
in interface LayoutPrototypeModel
public String getDescription(Locale locale)
getDescription
in interface LayoutPrototypeModel
locale
- the locale of the languagepublic String getDescription(Locale locale, boolean useDefault)
getDescription
in interface LayoutPrototypeModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested languageuseDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getDescription(String languageId)
getDescription
in interface LayoutPrototypeModel
languageId
- the ID of the languagepublic String getDescription(String languageId, boolean useDefault)
getDescription
in interface LayoutPrototypeModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId
in interface LayoutPrototypeModel
public String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface LayoutPrototypeModel
public Map<Locale,String> getDescriptionMap()
getDescriptionMap
in interface LayoutPrototypeModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<LayoutPrototype>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface LayoutPrototypeModel
public Group getGroup() throws PortalException
getGroup
in interface LayoutPrototype
PortalException
public long getGroupId() throws PortalException
getGroupId
in interface LayoutPrototype
PortalException
public Layout getLayout() throws PortalException
getLayout
in interface LayoutPrototype
PortalException
public long getLayoutPrototypeId()
getLayoutPrototypeId
in interface LayoutPrototypeModel
public Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface LayoutPrototypeModel
getModifiedDate
in interface StagedModel
public long getMvccVersion()
getMvccVersion
in interface LayoutPrototypeModel
getMvccVersion
in interface MVCCModel
public String getName()
getName
in interface LayoutPrototypeModel
public String getName(Locale locale)
getName
in interface LayoutPrototypeModel
locale
- the locale of the languagepublic String getName(Locale locale, boolean useDefault)
getName
in interface LayoutPrototypeModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested languageuseDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getName(String languageId)
getName
in interface LayoutPrototypeModel
languageId
- the ID of the languagepublic String getName(String languageId, boolean useDefault)
getName
in interface LayoutPrototypeModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic String getNameCurrentLanguageId()
getNameCurrentLanguageId
in interface LayoutPrototypeModel
public String getNameCurrentValue()
getNameCurrentValue
in interface LayoutPrototypeModel
public Map<Locale,String> getNameMap()
getNameMap
in interface LayoutPrototypeModel
public long getPrimaryKey()
getPrimaryKey
in interface LayoutPrototypeModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<LayoutPrototype>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface LayoutPrototypeModel
public String getSettings()
getSettings
in interface LayoutPrototypeModel
public long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface LayoutPrototypeModel
public String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface LayoutPrototypeModel
public String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface LayoutPrototypeModel
public String getUuid()
getUuid
in interface LayoutPrototypeModel
getUuid
in interface StagedModel
public int hashCode()
hashCode
in interface LayoutPrototypeModel
hashCode
in class Object
public boolean hasSetModifiedDate()
hasSetModifiedDate
in interface LayoutPrototype
public boolean isActive()
true
if this layout prototype is active.isActive
in interface LayoutPrototypeModel
true
if this layout prototype is active; false
otherwisepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<LayoutPrototype>
isCachedModel
in interface LayoutPrototypeModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<LayoutPrototype>
isEscapedModel
in interface LayoutPrototypeModel
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<LayoutPrototype>
isNew
in interface LayoutPrototypeModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void prepareLocalizedFieldsForImport() throws LocaleException
prepareLocalizedFieldsForImport
in interface LayoutPrototypeModel
prepareLocalizedFieldsForImport
in interface LocalizedModel
LocaleException
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface LayoutPrototypeModel
prepareLocalizedFieldsForImport
in interface LocalizedModel
LocaleException
public void setActive(boolean active)
setActive
in interface LayoutPrototypeModel
active
- the active of this layout prototypepublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<LayoutPrototype>
setCachedModel
in interface LayoutPrototypeModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface LayoutPrototypeModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this layout prototypepublic void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface LayoutPrototypeModel
setCreateDate
in interface StagedModel
createDate
- the create date of this layout prototypepublic void setDescription(String description)
setDescription
in interface LayoutPrototypeModel
description
- the description of this layout prototypepublic void setDescription(String description, Locale locale)
setDescription
in interface LayoutPrototypeModel
description
- the localized description of this layout prototypelocale
- the locale of the languagepublic void setDescription(String description, Locale locale, Locale defaultLocale)
setDescription
in interface LayoutPrototypeModel
description
- the localized description of this layout prototypelocale
- the locale of the languagedefaultLocale
- the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId
in interface LayoutPrototypeModel
public void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap
in interface LayoutPrototypeModel
descriptionMap
- the locales and localized descriptions of this layout prototypepublic void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
setDescriptionMap
in interface LayoutPrototypeModel
descriptionMap
- the locales and localized descriptions of this layout prototypedefaultLocale
- the default localepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<LayoutPrototype>
setExpandoBridgeAttributes
in interface LayoutPrototypeModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<LayoutPrototype>
setExpandoBridgeAttributes
in interface LayoutPrototypeModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<LayoutPrototype>
setExpandoBridgeAttributes
in interface LayoutPrototypeModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setLayoutPrototypeId(long layoutPrototypeId)
setLayoutPrototypeId
in interface LayoutPrototypeModel
layoutPrototypeId
- the layout prototype ID of this layout prototypepublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface LayoutPrototypeModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this layout prototypepublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface LayoutPrototypeModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this layout prototypepublic void setName(String name)
setName
in interface LayoutPrototypeModel
name
- the name of this layout prototypepublic void setName(String name, Locale locale)
setName
in interface LayoutPrototypeModel
name
- the localized name of this layout prototypelocale
- the locale of the languagepublic void setName(String name, Locale locale, Locale defaultLocale)
setName
in interface LayoutPrototypeModel
name
- the localized name of this layout prototypelocale
- the locale of the languagedefaultLocale
- the default localepublic void setNameCurrentLanguageId(String languageId)
setNameCurrentLanguageId
in interface LayoutPrototypeModel
public void setNameMap(Map<Locale,String> nameMap)
setNameMap
in interface LayoutPrototypeModel
nameMap
- the locales and localized names of this layout prototypepublic void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
setNameMap
in interface LayoutPrototypeModel
nameMap
- the locales and localized names of this layout prototypedefaultLocale
- the default localepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<LayoutPrototype>
setNew
in interface LayoutPrototypeModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface LayoutPrototypeModel
primaryKey
- the primary key of this layout prototypepublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<LayoutPrototype>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface LayoutPrototypeModel
primaryKeyObj
- the primary key of this model instancepublic void setSettings(String settings)
setSettings
in interface LayoutPrototypeModel
settings
- the settings of this layout prototypepublic void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface LayoutPrototypeModel
userId
- the user ID of this layout prototypepublic void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface LayoutPrototypeModel
userName
- the user name of this layout prototypepublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface LayoutPrototypeModel
userUuid
- the user uuid of this layout prototypepublic void setUuid(String uuid)
setUuid
in interface LayoutPrototypeModel
setUuid
in interface StagedModel
uuid
- the uuid of this layout prototypepublic CacheModel<LayoutPrototype> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<LayoutPrototype>
toCacheModel
in interface LayoutPrototypeModel
public LayoutPrototype toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<LayoutPrototype>
toEscapedModel
in interface LayoutPrototypeModel
AutoEscapeBeanHandler
public String toString()
toString
in interface LayoutPrototypeModel
toString
in class Object
public LayoutPrototype toUnescapedModel()
toUnescapedModel
in interface BaseModel<LayoutPrototype>
toUnescapedModel
in interface LayoutPrototypeModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<LayoutPrototype>
toXmlString
in interface LayoutPrototypeModel
public boolean equals(Object obj)
equals
in class Object
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
public LayoutPrototype getWrappedModel()
getWrappedModel
in interface ModelWrapper<LayoutPrototype>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<LayoutPrototype>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<LayoutPrototype>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<LayoutPrototype>