@ProviderType public class LayoutPrototypeWrapper extends java.lang.Object implements LayoutPrototype, ModelWrapper<LayoutPrototype>
This class is a wrapper for LayoutPrototype.
LayoutPrototype,
Serialized Form| Constructor and Description |
|---|
LayoutPrototypeWrapper(LayoutPrototype layoutPrototype) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(LayoutPrototype layoutPrototype) |
boolean |
equals(java.lang.Object obj) |
boolean |
getActive()
Returns the active of this layout prototype.
|
java.lang.String[] |
getAvailableLanguageIds() |
long |
getCompanyId()
Returns the company ID of this layout prototype.
|
java.util.Date |
getCreateDate()
Returns the create date of this layout prototype.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDescription()
Returns the description 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.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this layout prototype.
|
java.lang.String |
getName()
Returns the name of this layout prototype.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this layout prototype in the language.
|
java.lang.String |
getName(java.util.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.
|
java.lang.String |
getName(java.lang.String languageId)
Returns the localized name of this layout prototype in the language.
|
java.lang.String |
getName(java.lang.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.
|
java.lang.String |
getNameCurrentLanguageId() |
java.lang.String |
getNameCurrentValue() |
java.util.Map<java.util.Locale,java.lang.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.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
java.lang.String |
getSettings()
Returns the settings of this layout prototype.
|
StagedModelType |
getStagedModelType() |
long |
getUserId()
Returns the user ID of this layout prototype.
|
java.lang.String |
getUserName()
Returns the user name of this layout prototype.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this layout prototype.
|
java.lang.String |
getUuid()
Returns the uuid of this layout prototype.
|
LayoutPrototype |
getWrappedLayoutPrototype()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
LayoutPrototype |
getWrappedModel() |
int |
hashCode() |
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 |
isEscapedModel()
Returns
true if this model instance is escaped. |
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(java.util.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(java.util.Date createDate)
Sets the create date of this layout prototype.
|
void |
setDescription(java.lang.String description)
Sets the description of this layout prototype.
|
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(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this layout prototype.
|
void |
setName(java.lang.String name)
Sets the name of this layout prototype.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this layout prototype in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this layout prototype in the language, and sets the default locale.
|
void |
setNameCurrentLanguageId(java.lang.String languageId) |
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
Sets the localized names of this layout prototype from the map of locales and localized names.
|
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.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(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setSettings(java.lang.String settings)
Sets the settings of this layout prototype.
|
void |
setUserId(long userId)
Sets the user ID of this layout prototype.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this layout prototype.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this layout prototype.
|
void |
setUuid(java.lang.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. |
java.lang.String |
toString() |
LayoutPrototype |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public LayoutPrototypeWrapper(LayoutPrototype layoutPrototype)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<LayoutPrototype>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<LayoutPrototype>public long getPrimaryKey()
getPrimaryKey in interface LayoutPrototypeModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface LayoutPrototypeModelprimaryKey - the primary key of this layout prototypepublic java.lang.String getUuid()
getUuid in interface LayoutPrototypeModelgetUuid in interface StagedModelpublic void setUuid(java.lang.String uuid)
setUuid in interface LayoutPrototypeModelsetUuid in interface StagedModeluuid - the uuid of this layout prototypepublic long getLayoutPrototypeId()
getLayoutPrototypeId in interface LayoutPrototypeModelpublic void setLayoutPrototypeId(long layoutPrototypeId)
setLayoutPrototypeId in interface LayoutPrototypeModellayoutPrototypeId - the layout prototype ID of this layout prototypepublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface LayoutPrototypeModelgetCompanyId in interface StagedModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface LayoutPrototypeModelsetCompanyId in interface StagedModelcompanyId - the company ID of this layout prototypepublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface LayoutPrototypeModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface LayoutPrototypeModeluserId - the user ID of this layout prototypepublic java.lang.String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface LayoutPrototypeModelSystemException - if a system exception occurredpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface LayoutPrototypeModeluserUuid - the user uuid of this layout prototypepublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface LayoutPrototypeModelpublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface LayoutPrototypeModeluserName - the user name of this layout prototypepublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface LayoutPrototypeModelgetCreateDate in interface StagedModelpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface LayoutPrototypeModelsetCreateDate in interface StagedModelcreateDate - the create date of this layout prototypepublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface LayoutPrototypeModelgetModifiedDate in interface StagedModelpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface LayoutPrototypeModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this layout prototypepublic java.lang.String getName()
getName in interface LayoutPrototypeModelpublic java.lang.String getName(java.util.Locale locale)
getName in interface LayoutPrototypeModellocale - the locale of the languagepublic java.lang.String getName(java.util.Locale locale,
boolean useDefault)
getName in interface LayoutPrototypeModellocale - 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 java.lang.String getName(java.lang.String languageId)
getName in interface LayoutPrototypeModellanguageId - the ID of the languagepublic java.lang.String getName(java.lang.String languageId,
boolean useDefault)
getName in interface LayoutPrototypeModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested languagepublic java.lang.String getNameCurrentLanguageId()
getNameCurrentLanguageId in interface LayoutPrototypeModelpublic java.lang.String getNameCurrentValue()
getNameCurrentValue in interface LayoutPrototypeModelpublic java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap in interface LayoutPrototypeModelpublic void setName(java.lang.String name)
setName in interface LayoutPrototypeModelname - the name of this layout prototypepublic void setName(java.lang.String name,
java.util.Locale locale)
setName in interface LayoutPrototypeModelname - the localized name of this layout prototypelocale - the locale of the languagepublic void setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
setName in interface LayoutPrototypeModelname - the localized name of this layout prototypelocale - the locale of the languagedefaultLocale - the default localepublic void setNameCurrentLanguageId(java.lang.String languageId)
setNameCurrentLanguageId in interface LayoutPrototypeModelpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap in interface LayoutPrototypeModelnameMap - the locales and localized names of this layout prototypepublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
setNameMap in interface LayoutPrototypeModelnameMap - the locales and localized names of this layout prototypedefaultLocale - the default localepublic java.lang.String getDescription()
getDescription in interface LayoutPrototypeModelpublic void setDescription(java.lang.String description)
setDescription in interface LayoutPrototypeModeldescription - the description of this layout prototypepublic java.lang.String getSettings()
getSettings in interface LayoutPrototypeModelpublic void setSettings(java.lang.String settings)
setSettings in interface LayoutPrototypeModelsettings - the settings of this layout prototypepublic boolean getActive()
getActive in interface LayoutPrototypeModelpublic boolean isActive()
true if this layout prototype is active.isActive in interface LayoutPrototypeModeltrue if this layout prototype is active; false otherwisepublic void setActive(boolean active)
setActive in interface LayoutPrototypeModelactive - the active of this layout prototypepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<LayoutPrototype>isNew in interface LayoutPrototypeModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<LayoutPrototype>setNew in interface LayoutPrototypeModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<LayoutPrototype>isCachedModel in interface LayoutPrototypeModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<LayoutPrototype>setCachedModel in interface LayoutPrototypeModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<LayoutPrototype>isEscapedModel in interface LayoutPrototypeModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<LayoutPrototype>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface LayoutPrototypeModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<LayoutPrototype>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface LayoutPrototypeModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<LayoutPrototype>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface LayoutPrototypeModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<LayoutPrototype>setExpandoBridgeAttributes in interface LayoutPrototypeModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<LayoutPrototype>setExpandoBridgeAttributes in interface LayoutPrototypeModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<LayoutPrototype>setExpandoBridgeAttributes in interface LayoutPrototypeModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface LayoutPrototypeModelpublic java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface LayoutPrototypeModelpublic void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface LayoutPrototypeModelLocaleExceptionpublic void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface LayoutPrototypeModelLocaleExceptionpublic java.lang.Object clone()
BaseModelclone in interface BaseModel<LayoutPrototype>clone in interface LayoutPrototypeModelclone in interface StagedModelclone in class java.lang.Objectpublic int compareTo(LayoutPrototype layoutPrototype)
compareTo in interface LayoutPrototypeModelcompareTo in interface java.lang.Comparable<LayoutPrototype>public int hashCode()
hashCode in interface LayoutPrototypeModelhashCode in class java.lang.Objectpublic CacheModel<LayoutPrototype> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<LayoutPrototype>toCacheModel in interface LayoutPrototypeModelpublic LayoutPrototype toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<LayoutPrototype>toEscapedModel in interface LayoutPrototypeModelAutoEscapeBeanHandlerpublic LayoutPrototype toUnescapedModel()
toUnescapedModel in interface BaseModel<LayoutPrototype>toUnescapedModel in interface LayoutPrototypeModelpublic java.lang.String toString()
toString in interface LayoutPrototypeModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<LayoutPrototype>toXmlString in interface LayoutPrototypeModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic Group getGroup() throws PortalException, SystemException
getGroup in interface LayoutPrototypePortalExceptionSystemExceptionpublic long getGroupId()
throws PortalException,
SystemException
getGroupId in interface LayoutPrototypePortalExceptionSystemExceptionpublic Layout getLayout() throws PortalException, SystemException
getLayout in interface LayoutPrototypePortalExceptionSystemExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic LayoutPrototype getWrappedLayoutPrototype()
getWrappedModel()public LayoutPrototype getWrappedModel()
getWrappedModel in interface ModelWrapper<LayoutPrototype>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<LayoutPrototype>