public class RoleWrapper extends BaseModelWrapper<Role> implements ModelWrapper<Role>, Role
This class is a wrapper for Role.
Role,
Serialized FormmodelNAME_ACCESSOR, ROLE_ID_ACCESSOR, TITLE_ACCESSOR| Constructor and Description |
|---|
RoleWrapper(Role role) |
| Modifier and Type | Method and Description |
|---|---|
Role |
cloneWithOriginalValues() |
Map<String,Function<Role,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<Role,Object>> |
getAttributeSetterBiConsumers() |
String[] |
getAvailableLanguageIds() |
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 pk of this role.
|
long |
getCompanyId()
Returns the company ID of this role.
|
Date |
getCreateDate()
Returns the create date of this role.
|
long |
getCtCollectionId()
Returns the ct collection ID of this role.
|
String |
getDefaultLanguageId() |
String |
getDescription()
Returns the description of this role.
|
String |
getDescription(Locale locale)
Returns the localized description of this role in the language.
|
String |
getDescription(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.
|
String |
getDescription(String languageId)
Returns the localized description of this role in the language.
|
String |
getDescription(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.
|
String |
getDescriptionCurrentLanguageId() |
String |
getDescriptionCurrentValue() |
Map<Locale,String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this role.
|
String |
getDescriptiveName() |
Map<String,Object> |
getModelAttributes() |
Date |
getModifiedDate()
Returns the modified date of this role.
|
long |
getMvccVersion()
Returns the mvcc version of this role.
|
String |
getName()
Returns the name of this role.
|
long |
getPrimaryKey()
Returns the primary key of this role.
|
long |
getRoleId()
Returns the role ID of this role.
|
StagedModelType |
getStagedModelType() |
String |
getSubtype()
Returns the subtype of this role.
|
String |
getTitle()
Returns the title of this role.
|
String |
getTitle(Locale locale)
Returns the localized title of this role in the language.
|
String |
getTitle(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.
|
String |
getTitle(String languageId)
Returns the localized title of this role in the language.
|
String |
getTitle(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.
|
String |
getTitleCurrentLanguageId() |
String |
getTitleCurrentValue() |
Map<Locale,String> |
getTitleMap()
Returns a map of the locales and localized titles of this role.
|
int |
getType()
Returns the type of this role.
|
String |
getTypeLabel() |
long |
getUserId()
Returns the user ID of this role.
|
String |
getUserName()
Returns the user name of this role.
|
String |
getUserUuid()
Returns the user uuid of this role.
|
String |
getUuid()
Returns the uuid of this role.
|
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(Locale defaultImportLocale) |
void |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this role.
|
void |
setClassPK(long classPK)
Sets the class pk of this role.
|
void |
setCompanyId(long companyId)
Sets the company ID of this role.
|
void |
setCreateDate(Date createDate)
Sets the create date of this role.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this role.
|
void |
setDescription(String description)
Sets the description of this role.
|
void |
setDescription(String description,
Locale locale)
Sets the localized description of this role in the language.
|
void |
setDescription(String description,
Locale locale,
Locale defaultLocale)
Sets the localized description of this role in the language, and sets the default locale.
|
void |
setDescriptionCurrentLanguageId(String languageId) |
void |
setDescriptionMap(Map<Locale,String> descriptionMap)
Sets the localized descriptions of this role from the map of locales and localized descriptions.
|
void |
setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
Sets the localized descriptions of this role from the map of locales and localized descriptions, and sets the default locale.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this role.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this role.
|
void |
setName(String name)
Sets the name of this role.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this role.
|
void |
setRoleId(long roleId)
Sets the role ID of this role.
|
void |
setSubtype(String subtype)
Sets the subtype of this role.
|
void |
setTitle(String title)
Sets the title of this role.
|
void |
setTitle(String title,
Locale locale)
Sets the localized title of this role in the language.
|
void |
setTitle(String title,
Locale locale,
Locale defaultLocale)
Sets the localized title of this role in the language, and sets the default locale.
|
void |
setTitleCurrentLanguageId(String languageId) |
void |
setTitleMap(Map<Locale,String> titleMap)
Sets the localized titles of this role from the map of locales and localized titles.
|
void |
setTitleMap(Map<Locale,String> titleMap,
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(String userName)
Sets the user name of this role.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this role.
|
void |
setUuid(String uuid)
Sets the uuid of this role.
|
protected RoleWrapper |
wrap(Role role) |
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, toXmlStringgetWrappedModelclone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringclonegetModelClass, getModelClassNamepublic RoleWrapper(Role role)
public Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<Role>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Role>public Role cloneWithOriginalValues()
cloneWithOriginalValues in interface BaseModel<Role>cloneWithOriginalValues in interface RoleModelpublic String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface LocalizedModelgetAvailableLanguageIds in interface RoleModelpublic 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 ShardedModelgetCompanyId in interface StagedModelpublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface RoleModelgetCreateDate in interface StagedModelpublic long getCtCollectionId()
getCtCollectionId in interface CTModel<Role>getCtCollectionId in interface RoleModelpublic String getDefaultLanguageId()
getDefaultLanguageId in interface LocalizedModelgetDefaultLanguageId in interface RoleModelpublic String getDescription()
getDescription in interface RoleModelpublic String getDescription(Locale locale)
getDescription in interface RoleModellocale - the locale of the languagepublic String getDescription(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 String getDescription(String languageId)
getDescription in interface RoleModellanguageId - the ID of the languagepublic String getDescription(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 String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId in interface RoleModelpublic String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface RoleModelpublic Map<Locale,String> getDescriptionMap()
getDescriptionMap in interface RoleModelpublic String getDescriptiveName()
throws PortalException
getDescriptiveName in interface RolePortalExceptionpublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface RoleModelgetModifiedDate in interface StagedModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface RoleModelpublic String getName()
public long getPrimaryKey()
getPrimaryKey in interface CTModel<Role>getPrimaryKey in interface RoleModelpublic long getRoleId()
public String getSubtype()
getSubtype in interface RoleModelpublic String getTitle()
public String getTitle(Locale locale)
public String getTitle(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 String getTitle(String languageId)
public String getTitle(String languageId,
boolean useDefault)
public String getTitleCurrentLanguageId()
getTitleCurrentLanguageId in interface RoleModelpublic String getTitleCurrentValue()
getTitleCurrentValue in interface RoleModelpublic Map<Locale,String> getTitleMap()
getTitleMap in interface RoleModelpublic int getType()
public String getTypeLabel()
getTypeLabel in interface Rolepublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface RoleModelpublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface RoleModelpublic String getUserUuid()
getUserUuid in interface AuditedModelgetUserUuid in interface RoleModelpublic String getUuid()
getUuid in interface RoleModelgetUuid in interface StagedModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface LocalizedModelprepareLocalizedFieldsForImport in interface RoleModelLocaleExceptionpublic void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface LocalizedModelprepareLocalizedFieldsForImport in interface RoleModelLocaleExceptionpublic void setClassName(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 pk of this rolepublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface RoleModelsetCompanyId in interface ShardedModelsetCompanyId in interface StagedModelcompanyId - the company ID of this rolepublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface RoleModelsetCreateDate in interface StagedModelcreateDate - the create date of this rolepublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId in interface CTModel<Role>setCtCollectionId in interface RoleModelctCollectionId - the ct collection ID of this rolepublic void setDescription(String description)
setDescription in interface RoleModeldescription - the description of this rolepublic void setDescription(String description,
Locale locale)
setDescription in interface RoleModeldescription - the localized description of this rolelocale - the locale of the languagepublic void setDescription(String description,
Locale locale,
Locale defaultLocale)
setDescription in interface RoleModeldescription - the localized description of this rolelocale - the locale of the languagedefaultLocale - the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId in interface RoleModelpublic void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap in interface RoleModeldescriptionMap - the locales and localized descriptions of this rolepublic void setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
setDescriptionMap in interface RoleModeldescriptionMap - the locales and localized descriptions of this roledefaultLocale - the default localepublic void setModifiedDate(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(String name)
public void setPrimaryKey(long primaryKey)
setPrimaryKey in interface CTModel<Role>setPrimaryKey in interface RoleModelprimaryKey - the primary key of this rolepublic void setRoleId(long roleId)
public void setSubtype(String subtype)
setSubtype in interface RoleModelsubtype - the subtype of this rolepublic void setTitle(String title)
public void setTitle(String title,
Locale locale)
public void setTitle(String title,
Locale locale,
Locale defaultLocale)
public void setTitleCurrentLanguageId(String languageId)
setTitleCurrentLanguageId in interface RoleModelpublic void setTitleMap(Map<Locale,String> titleMap)
setTitleMap in interface RoleModeltitleMap - the locales and localized titles of this rolepublic void setTitleMap(Map<Locale,String> titleMap,
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(String userName)
setUserName in interface AuditedModelsetUserName in interface RoleModeluserName - the user name of this rolepublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface RoleModeluserUuid - the user uuid of this rolepublic void setUuid(String uuid)
setUuid in interface RoleModelsetUuid in interface StagedModeluuid - the uuid of this rolepublic Map<String,Function<Role,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions in interface BaseModel<Role>public Map<String,BiConsumer<Role,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers in interface BaseModel<Role>public StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelprotected RoleWrapper wrap(Role role)
wrap in class BaseModelWrapper<Role>