|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<Role>
com.liferay.portal.model.impl.RoleModelImpl
@JSON(strict=true) @ProviderType public class RoleModelImpl
The base model implementation for the Role service. Represents a row in the "Role_" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface RoleModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in RoleImpl.
RoleImpl,
Role,
RoleModel,
Serialized Form| Constructor Summary | |
|---|---|
RoleModelImpl()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Role role)
|
boolean |
equals(Object obj)
|
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 p k of this role. |
long |
getColumnBitmask()
|
long |
getCompanyId()
Returns the company ID of this role. |
Date |
getCreateDate()
Returns the create date 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. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
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 |
getOriginalClassNameId()
|
long |
getOriginalClassPK()
|
long |
getOriginalCompanyId()
|
String |
getOriginalName()
|
String |
getOriginalSubtype()
|
int |
getOriginalType()
|
String |
getOriginalUuid()
|
long |
getPrimaryKey()
Returns the primary key of this role. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
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. |
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. |
int |
hashCode()
|
boolean |
hasSetModifiedDate()
|
boolean |
isEntityCacheEnabled()
Returns true if this model's entity cache is enabled. |
boolean |
isFinderCacheEnabled()
Returns true if this model's finder cache is enabled. |
void |
prepareLocalizedFieldsForImport()
|
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setClassName(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(Date createDate)
Sets the create date 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 |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
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 |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
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. |
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. |
static Role |
toModel(RoleSoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<Role> |
toModels(RoleSoap[] soapModels)
Converts the soap model instances into normal model instances. |
String |
toString()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
|---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.model.RoleModel |
|---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Field Detail |
|---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final Map<String,Integer> TABLE_COLUMNS_MAP
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static final long CLASSNAMEID_COLUMN_BITMASK
public static final long CLASSPK_COLUMN_BITMASK
public static final long COMPANYID_COLUMN_BITMASK
public static final long NAME_COLUMN_BITMASK
public static final long SUBTYPE_COLUMN_BITMASK
public static final long TYPE_COLUMN_BITMASK
public static final long UUID_COLUMN_BITMASK
public static final String MAPPING_TABLE_GROUPS_ROLES_NAME
public static final Object[][] MAPPING_TABLE_GROUPS_ROLES_COLUMNS
public static final String MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE
public static final boolean FINDER_CACHE_ENABLED_GROUPS_ROLES
public static final String MAPPING_TABLE_USERS_ROLES_NAME
public static final Object[][] MAPPING_TABLE_USERS_ROLES_COLUMNS
public static final String MAPPING_TABLE_USERS_ROLES_SQL_CREATE
public static final boolean FINDER_CACHE_ENABLED_USERS_ROLES
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public RoleModelImpl()
| Method Detail |
|---|
public static Role toModel(RoleSoap soapModel)
soapModel - the soap model instance to convert
public static List<Role> toModels(RoleSoap[] soapModels)
soapModels - the soap model instances to convert
public long getPrimaryKey()
RoleModel
getPrimaryKey in interface RoleModelpublic void setPrimaryKey(long primaryKey)
RoleModel
setPrimaryKey in interface RoleModelprimaryKey - the primary key of this rolepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Role>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface RoleModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Role>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface RoleModelprimaryKeyObj - the primary key of this model instancepublic Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<Role>getModelAttributes in class BaseModelImpl<Role>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Role>setModelAttributes in class BaseModelImpl<Role>@JSON public long getMvccVersion()
RoleModel
getMvccVersion in interface MVCCModelgetMvccVersion in interface RoleModelpublic void setMvccVersion(long mvccVersion)
RoleModel
setMvccVersion in interface MVCCModelsetMvccVersion in interface RoleModelmvccVersion - the mvcc version of this role@JSON public String getUuid()
RoleModel
getUuid in interface RoleModelgetUuid in interface StagedModelpublic void setUuid(String uuid)
RoleModel
setUuid in interface RoleModelsetUuid in interface StagedModeluuid - the uuid of this rolepublic String getOriginalUuid()
@JSON public long getRoleId()
RoleModel
getRoleId in interface RoleModelpublic void setRoleId(long roleId)
RoleModel
setRoleId in interface RoleModelroleId - the role ID of this role@JSON public long getCompanyId()
RoleModel
getCompanyId in interface AuditedModelgetCompanyId in interface RoleModelgetCompanyId in interface ShardedModelgetCompanyId in interface StagedModelpublic void setCompanyId(long companyId)
RoleModel
setCompanyId in interface AuditedModelsetCompanyId in interface RoleModelsetCompanyId in interface ShardedModelsetCompanyId in interface StagedModelcompanyId - the company ID of this rolepublic long getOriginalCompanyId()
@JSON public long getUserId()
RoleModel
getUserId in interface AuditedModelgetUserId in interface RoleModelpublic void setUserId(long userId)
RoleModel
setUserId in interface AuditedModelsetUserId in interface RoleModeluserId - the user ID of this rolepublic String getUserUuid()
RoleModel
getUserUuid in interface AuditedModelgetUserUuid in interface RoleModelpublic void setUserUuid(String userUuid)
RoleModel
setUserUuid in interface AuditedModelsetUserUuid in interface RoleModeluserUuid - the user uuid of this role@JSON public String getUserName()
RoleModel
getUserName in interface AuditedModelgetUserName in interface RoleModelpublic void setUserName(String userName)
RoleModel
setUserName in interface AuditedModelsetUserName in interface RoleModeluserName - the user name of this role@JSON public Date getCreateDate()
RoleModel
getCreateDate in interface AuditedModelgetCreateDate in interface RoleModelgetCreateDate in interface StagedModelpublic void setCreateDate(Date createDate)
RoleModel
setCreateDate in interface AuditedModelsetCreateDate in interface RoleModelsetCreateDate in interface StagedModelcreateDate - the create date of this role@JSON public Date getModifiedDate()
RoleModel
getModifiedDate in interface AuditedModelgetModifiedDate in interface RoleModelgetModifiedDate in interface StagedModelpublic boolean hasSetModifiedDate()
public void setModifiedDate(Date modifiedDate)
RoleModel
setModifiedDate in interface AuditedModelsetModifiedDate in interface RoleModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this rolepublic String getClassName()
RoleModel
getClassName in interface RoleModelgetClassName in interface TypedModelpublic void setClassName(String className)
setClassName in interface RoleModel@JSON public long getClassNameId()
RoleModel
getClassNameId in interface RoleModelgetClassNameId in interface TypedModelpublic void setClassNameId(long classNameId)
RoleModel
setClassNameId in interface RoleModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this rolepublic long getOriginalClassNameId()
@JSON public long getClassPK()
RoleModel
getClassPK in interface AttachedModelgetClassPK in interface RoleModelpublic void setClassPK(long classPK)
RoleModel
setClassPK in interface AttachedModelsetClassPK in interface RoleModelclassPK - the class p k of this rolepublic long getOriginalClassPK()
@JSON public String getName()
RoleModel
getName in interface RoleModelpublic void setName(String name)
RoleModel
setName in interface RoleModelname - the name of this rolepublic String getOriginalName()
@JSON public String getTitle()
RoleModel
getTitle in interface RoleModelpublic String getTitle(Locale locale)
RoleModel
getTitle in interface RoleModellocale - the locale of the language
public String getTitle(Locale locale,
boolean useDefault)
RoleModel
getTitle in interface RoleModellocale - the local of the languageuseDefault - whether to use the default language if no localization exists for the requested language
useDefault is false and no localization exists for the requested language, an empty string will be returned.public String getTitle(String languageId)
RoleModel
getTitle in interface RoleModellanguageId - the ID of the language
public String getTitle(String languageId,
boolean useDefault)
RoleModel
getTitle in interface RoleModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language
public String getTitleCurrentLanguageId()
getTitleCurrentLanguageId in interface RoleModel@JSON public String getTitleCurrentValue()
getTitleCurrentValue in interface RoleModelpublic Map<Locale,String> getTitleMap()
RoleModel
getTitleMap in interface RoleModelpublic void setTitle(String title)
RoleModel
setTitle in interface RoleModeltitle - the title of this role
public void setTitle(String title,
Locale locale)
RoleModel
setTitle in interface RoleModeltitle - the localized title of this rolelocale - the locale of the language
public void setTitle(String title,
Locale locale,
Locale defaultLocale)
RoleModel
setTitle in interface RoleModeltitle - the localized title of this rolelocale - the locale of the languagedefaultLocale - the default localepublic void setTitleCurrentLanguageId(String languageId)
setTitleCurrentLanguageId in interface RoleModelpublic void setTitleMap(Map<Locale,String> titleMap)
RoleModel
setTitleMap in interface RoleModeltitleMap - the locales and localized titles of this role
public void setTitleMap(Map<Locale,String> titleMap,
Locale defaultLocale)
RoleModel
setTitleMap in interface RoleModeltitleMap - the locales and localized titles of this roledefaultLocale - the default locale@JSON public String getDescription()
RoleModel
getDescription in interface RoleModelpublic String getDescription(Locale locale)
RoleModel
getDescription in interface RoleModellocale - the locale of the language
public String getDescription(Locale locale,
boolean useDefault)
RoleModel
getDescription in interface RoleModellocale - the local of the languageuseDefault - whether to use the default language if no localization exists for the requested language
useDefault is false and no localization exists for the requested language, an empty string will be returned.public String getDescription(String languageId)
RoleModel
getDescription in interface RoleModellanguageId - the ID of the language
public String getDescription(String languageId,
boolean useDefault)
RoleModel
getDescription in interface RoleModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language
public String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId in interface RoleModel@JSON public String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface RoleModelpublic Map<Locale,String> getDescriptionMap()
RoleModel
getDescriptionMap in interface RoleModelpublic void setDescription(String description)
RoleModel
setDescription in interface RoleModeldescription - the description of this role
public void setDescription(String description,
Locale locale)
RoleModel
setDescription in interface RoleModeldescription - the localized description of this rolelocale - the locale of the language
public void setDescription(String description,
Locale locale,
Locale defaultLocale)
RoleModel
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)
RoleModel
setDescriptionMap in interface RoleModeldescriptionMap - the locales and localized descriptions of this role
public void setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
RoleModel
setDescriptionMap in interface RoleModeldescriptionMap - the locales and localized descriptions of this roledefaultLocale - the default locale@JSON public int getType()
RoleModel
getType in interface RoleModelpublic void setType(int type)
RoleModel
setType in interface RoleModeltype - the type of this rolepublic int getOriginalType()
@JSON public String getSubtype()
RoleModel
getSubtype in interface RoleModelpublic void setSubtype(String subtype)
RoleModel
setSubtype in interface RoleModelsubtype - the subtype of this rolepublic String getOriginalSubtype()
public StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Role>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface RoleModelgetExpandoBridge in class BaseModelImpl<Role>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Role>setExpandoBridgeAttributes in interface RoleModelsetExpandoBridgeAttributes in class BaseModelImpl<Role>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface LocalizedModelgetAvailableLanguageIds in interface RoleModelpublic String getDefaultLanguageId()
getDefaultLanguageId in interface LocalizedModelgetDefaultLanguageId in interface RoleModel
public void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface LocalizedModelprepareLocalizedFieldsForImport in interface RoleModelLocaleException
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface LocalizedModelprepareLocalizedFieldsForImport in interface RoleModelLocaleExceptionpublic Role toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Role>toEscapedModel in interface RoleModeltoEscapedModel in class BaseModelImpl<Role>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<Role>clone in interface RoleModelclone in interface StagedModelclone in class BaseModelImpl<Role>public int compareTo(Role role)
compareTo in interface RoleModelcompareTo in interface Comparable<Role>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface RoleModelhashCode in class Objectpublic 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()
BaseModel
resetOriginalValues in interface BaseModel<Role>resetOriginalValues in class BaseModelImpl<Role>public CacheModel<Role> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<Role>toCacheModel in interface RoleModeltoCacheModel in class BaseModelImpl<Role>public String toString()
toString in interface RoleModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Role>toXmlString in interface RoleModel
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||