@ProviderType public class RoleWrapper extends java.lang.Object implements Role, ModelWrapper<Role>
This class is a wrapper for Role.
Role,
Serialized FormNAME_ACCESSOR, ROLE_ID_ACCESSOR, TITLE_ACCESSOR| Constructor and Description |
|---|
RoleWrapper(Role role) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Role role) |
boolean |
equals(java.lang.Object obj) |
java.lang.String[] |
getAvailableLanguageIds() |
java.lang.String |
getClassName()
Returns the fully qualified class name of this role.
|
long |
getClassNameId()
Returns the class name ID of this role.
|
long |
getClassPK()
Returns the class p k of this role.
|
long |
getCompanyId()
Returns the company ID of this role.
|
java.util.Date |
getCreateDate()
Returns the create date of this role.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDescription()
Returns the description of this role.
|
java.lang.String |
getDescription(java.util.Locale locale)
Returns the localized description of this role in the language.
|
java.lang.String |
getDescription(java.util.Locale locale,
boolean useDefault)
Returns the localized description of this role in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescription(java.lang.String languageId)
Returns the localized description of this role in the language.
|
java.lang.String |
getDescription(java.lang.String languageId,
boolean useDefault)
Returns the localized description of this role in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescriptionCurrentLanguageId() |
java.lang.String |
getDescriptionCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this role.
|
java.lang.String |
getDescriptiveName() |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this role.
|
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 role.
|
long |
getMvccVersion()
Returns the mvcc version of this role.
|
java.lang.String |
getName()
Returns the name of this role.
|
long |
getPrimaryKey()
Returns the primary key of this role.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getRoleId()
Returns the role ID of this role.
|
StagedModelType |
getStagedModelType() |
java.lang.String |
getSubtype()
Returns the subtype of this role.
|
java.lang.String |
getTitle()
Returns the title of this role.
|
java.lang.String |
getTitle(java.util.Locale locale)
Returns the localized title of this role in the language.
|
java.lang.String |
getTitle(java.util.Locale locale,
boolean useDefault)
Returns the localized title of this role in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getTitle(java.lang.String languageId)
Returns the localized title of this role in the language.
|
java.lang.String |
getTitle(java.lang.String languageId,
boolean useDefault)
Returns the localized title of this role in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getTitleCurrentLanguageId() |
java.lang.String |
getTitleCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getTitleMap()
Returns a map of the locales and localized titles of this role.
|
int |
getType()
Returns the type of this role.
|
java.lang.String |
getTypeLabel() |
long |
getUserId()
Returns the user ID of this role.
|
java.lang.String |
getUserName()
Returns the user name of this role.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this role.
|
java.lang.String |
getUuid()
Returns the uuid of this role.
|
Role |
getWrappedModel() |
Role |
getWrappedRole()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
int |
hashCode() |
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. |
boolean |
isSystem() |
boolean |
isTeam() |
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 |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setClassName(java.lang.String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this role.
|
void |
setClassPK(long classPK)
Sets the class p k of this role.
|
void |
setCompanyId(long companyId)
Sets the company ID of this role.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this role.
|
void |
setDescription(java.lang.String description)
Sets the description of this role.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale)
Sets the localized description of this role in the language.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized description of this role in the language, and sets the default locale.
|
void |
setDescriptionCurrentLanguageId(java.lang.String languageId) |
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
Sets the localized descriptions of this role from the map of locales and localized descriptions.
|
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
Sets the localized descriptions of this role 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 |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this role.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this role.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this role.
|
void |
setName(java.lang.String name)
Sets the name of this role.
|
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 role.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setRoleId(long roleId)
Sets the role ID of this role.
|
void |
setSubtype(java.lang.String subtype)
Sets the subtype of this role.
|
void |
setTitle(java.lang.String title)
Sets the title of this role.
|
void |
setTitle(java.lang.String title,
java.util.Locale locale)
Sets the localized title of this role in the language.
|
void |
setTitle(java.lang.String title,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized title of this role in the language, and sets the default locale.
|
void |
setTitleCurrentLanguageId(java.lang.String languageId) |
void |
setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap)
Sets the localized titles of this role from the map of locales and localized titles.
|
void |
setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Locale defaultLocale)
Sets the localized titles of this role from the map of locales and localized titles, and sets the default locale.
|
void |
setType(int type)
Sets the type of this role.
|
void |
setUserId(long userId)
Sets the user ID of this role.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this role.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this role.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this role.
|
CacheModel<Role> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
Role |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
Role |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public RoleWrapper(Role role)
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<Role>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<Role>public java.lang.Object clone()
BaseModelpublic int compareTo(Role role)
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface LocalizedModelgetAvailableLanguageIds in interface RoleModelpublic java.lang.String getClassName()
getClassName in interface RoleModelgetClassName in interface TypedModelpublic long getClassNameId()
getClassNameId in interface RoleModelgetClassNameId in interface TypedModelpublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface RoleModelpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface RoleModelgetCompanyId in interface StagedModelpublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface RoleModelgetCreateDate in interface StagedModelpublic java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface LocalizedModelgetDefaultLanguageId in interface RoleModelpublic java.lang.String getDescription()
getDescription in interface RoleModelpublic java.lang.String getDescription(java.lang.String languageId)
getDescription in interface RoleModellanguageId - the ID of the languagepublic java.lang.String getDescription(java.lang.String languageId,
boolean useDefault)
getDescription in interface RoleModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested languagepublic java.lang.String getDescription(java.util.Locale locale)
getDescription in interface RoleModellocale - the locale of the languagepublic java.lang.String getDescription(java.util.Locale locale,
boolean useDefault)
getDescription in interface RoleModellocale - 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 getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId in interface RoleModelpublic java.lang.String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface RoleModelpublic java.util.Map<java.util.Locale,java.lang.String> getDescriptionMap()
getDescriptionMap in interface RoleModelpublic java.lang.String getDescriptiveName()
throws PortalException
getDescriptiveName in interface RolePortalExceptionpublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<Role>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface RoleModelpublic java.util.Date getLastPublishDate()
getLastPublishDate in interface RoleModelgetLastPublishDate in interface StagedModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface RoleModelgetModifiedDate in interface StagedModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface RoleModelpublic java.lang.String getName()
public long getPrimaryKey()
getPrimaryKey in interface RoleModelpublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<Role>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface RoleModelpublic long getRoleId()
public java.lang.String getSubtype()
getSubtype in interface RoleModelpublic java.lang.String getTitle()
public java.lang.String getTitle(java.lang.String languageId)
public java.lang.String getTitle(java.lang.String languageId,
boolean useDefault)
public java.lang.String getTitle(java.util.Locale locale)
public java.lang.String getTitle(java.util.Locale locale,
boolean useDefault)
getTitle in interface RoleModellocale - 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 getTitleCurrentLanguageId()
getTitleCurrentLanguageId in interface RoleModelpublic java.lang.String getTitleCurrentValue()
getTitleCurrentValue in interface RoleModelpublic java.util.Map<java.util.Locale,java.lang.String> getTitleMap()
getTitleMap in interface RoleModelpublic int getType()
public java.lang.String getTypeLabel()
getTypeLabel in interface Rolepublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface RoleModelpublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface RoleModelpublic java.lang.String getUserUuid()
getUserUuid in interface AuditedModelgetUserUuid in interface RoleModelpublic java.lang.String getUuid()
getUuid in interface RoleModelgetUuid in interface StagedModelpublic int hashCode()
public boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<Role>isCachedModel in interface RoleModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<Role>isEscapedModel in interface RoleModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.public void persist()
PersistedModelpersist in interface PersistedModelpublic void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface LocalizedModelprepareLocalizedFieldsForImport in interface RoleModelLocaleExceptionpublic void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface LocalizedModelprepareLocalizedFieldsForImport in interface RoleModelLocaleExceptionpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<Role>setCachedModel in interface RoleModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setClassName(java.lang.String className)
setClassName in interface RoleModelpublic void setClassNameId(long classNameId)
setClassNameId in interface RoleModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this rolepublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface RoleModelclassPK - the class p k of this rolepublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface RoleModelsetCompanyId in interface StagedModelcompanyId - the company ID of this rolepublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface RoleModelsetCreateDate in interface StagedModelcreateDate - the create date of this rolepublic void setDescription(java.lang.String description)
setDescription in interface RoleModeldescription - the description of this rolepublic void setDescription(java.lang.String description,
java.util.Locale locale)
setDescription in interface RoleModeldescription - the localized description of this rolelocale - the locale of the languagepublic void setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
setDescription in interface RoleModeldescription - the localized description of this rolelocale - the locale of the languagedefaultLocale - the default localepublic void setDescriptionCurrentLanguageId(java.lang.String languageId)
setDescriptionCurrentLanguageId in interface RoleModelpublic void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
setDescriptionMap in interface RoleModeldescriptionMap - the locales and localized descriptions of this rolepublic void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
setDescriptionMap in interface RoleModeldescriptionMap - the locales and localized descriptions of this roledefaultLocale - the default localepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Role>setExpandoBridgeAttributes in interface RoleModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Role>setExpandoBridgeAttributes in interface RoleModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<Role>setExpandoBridgeAttributes in interface RoleModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate in interface RoleModelsetLastPublishDate in interface StagedModellastPublishDate - the last publish date of this rolepublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface RoleModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this rolepublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface RoleModelmvccVersion - the mvcc version of this rolepublic void setName(java.lang.String name)
public void setNew(boolean n)
BaseModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface RoleModelprimaryKey - the primary key of this rolepublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<Role>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface RoleModelprimaryKeyObj - the primary key of this model instancepublic void setRoleId(long roleId)
public void setSubtype(java.lang.String subtype)
setSubtype in interface RoleModelsubtype - the subtype of this rolepublic void setTitle(java.lang.String title)
public void setTitle(java.lang.String title,
java.util.Locale locale)
public void setTitle(java.lang.String title,
java.util.Locale locale,
java.util.Locale defaultLocale)
public void setTitleCurrentLanguageId(java.lang.String languageId)
setTitleCurrentLanguageId in interface RoleModelpublic void setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap)
setTitleMap in interface RoleModeltitleMap - the locales and localized titles of this rolepublic void setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Locale defaultLocale)
setTitleMap in interface RoleModeltitleMap - the locales and localized titles of this roledefaultLocale - the default localepublic void setType(int type)
public void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface RoleModeluserId - the user ID of this rolepublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface RoleModeluserName - the user name of this rolepublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface RoleModeluserUuid - the user uuid of this rolepublic void setUuid(java.lang.String uuid)
setUuid in interface RoleModelsetUuid in interface StagedModeluuid - the uuid of this rolepublic CacheModel<Role> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<Role>toCacheModel in interface RoleModelpublic Role toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<Role>toEscapedModel in interface RoleModelAutoEscapeBeanHandlerpublic java.lang.String toString()
public Role toUnescapedModel()
toUnescapedModel in interface BaseModel<Role>toUnescapedModel in interface RoleModelpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<Role>toXmlString in interface RoleModelpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModel@Deprecated public Role getWrappedRole()
getWrappedModel()public Role getWrappedModel()
getWrappedModel in interface ModelWrapper<Role>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<Role>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<Role>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<Role>