Liferay 7.0-ga1 portal-impl

com.liferay.portal.model.impl
Class RoleModelImpl

java.lang.Object
  extended by com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Role>
      extended by com.liferay.portal.model.impl.RoleModelImpl
All Implemented Interfaces:
com.liferay.portal.kernel.model.AttachedModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.RoleModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedAuditedModel, com.liferay.portal.kernel.model.StagedModel, com.liferay.portal.kernel.model.TypedModel, Serializable, Cloneable, Comparable<com.liferay.portal.kernel.model.Role>
Direct Known Subclasses:
RoleBaseImpl

@JSON(strict=true)
@ProviderType
public class RoleModelImpl
extends com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Role>
implements com.liferay.portal.kernel.model.RoleModel

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.

See Also:
RoleImpl, Role, RoleModel, Serialized Form
{$generated.description}

Field Summary
static long CLASSNAMEID_COLUMN_BITMASK
           
static long CLASSPK_COLUMN_BITMASK
           
static boolean COLUMN_BITMASK_ENABLED
           
static long COMPANYID_COLUMN_BITMASK
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED_GROUPS_ROLES
           
static boolean FINDER_CACHE_ENABLED_USERS_ROLES
           
static long LOCK_EXPIRATION_TIME
           
static Object[][] MAPPING_TABLE_GROUPS_ROLES_COLUMNS
           
static String MAPPING_TABLE_GROUPS_ROLES_NAME
           
static String MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE
           
static Object[][] MAPPING_TABLE_USERS_ROLES_COLUMNS
           
static String MAPPING_TABLE_USERS_ROLES_NAME
           
static String MAPPING_TABLE_USERS_ROLES_SQL_CREATE
           
static long NAME_COLUMN_BITMASK
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static long SUBTYPE_COLUMN_BITMASK
           
static Object[][] TABLE_COLUMNS
           
static Map<String,Integer> TABLE_COLUMNS_MAP
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
static long TYPE_COLUMN_BITMASK
           
static long UUID_COLUMN_BITMASK
           
 
Constructor Summary
RoleModelImpl()
           
 
Method Summary
 Object clone()
           
 int compareTo(com.liferay.portal.kernel.model.Role role)
           
 boolean equals(Object obj)
           
 String[] getAvailableLanguageIds()
           
 String getClassName()
           
 long getClassNameId()
           
 long getClassPK()
           
 long getColumnBitmask()
           
 long getCompanyId()
           
 Date getCreateDate()
           
 String getDefaultLanguageId()
           
 String getDescription()
           
 String getDescription(Locale locale)
           
 String getDescription(Locale locale, boolean useDefault)
           
 String getDescription(String languageId)
           
 String getDescription(String languageId, boolean useDefault)
           
 String getDescriptionCurrentLanguageId()
           
 String getDescriptionCurrentValue()
           
 Map<Locale,String> getDescriptionMap()
           
 com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
           
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
           
 long getMvccVersion()
           
 String getName()
           
 long getOriginalClassNameId()
           
 long getOriginalClassPK()
           
 long getOriginalCompanyId()
           
 String getOriginalName()
           
 String getOriginalSubtype()
           
 int getOriginalType()
           
 String getOriginalUuid()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
           
 long getRoleId()
           
 com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
           
 String getSubtype()
           
 String getTitle()
           
 String getTitle(Locale locale)
           
 String getTitle(Locale locale, boolean useDefault)
           
 String getTitle(String languageId)
           
 String getTitle(String languageId, boolean useDefault)
           
 String getTitleCurrentLanguageId()
           
 String getTitleCurrentValue()
           
 Map<Locale,String> getTitleMap()
           
 int getType()
           
 long getUserId()
           
 String getUserName()
           
 String getUserUuid()
           
 String getUuid()
           
 int hashCode()
           
 boolean hasSetModifiedDate()
           
 boolean isEntityCacheEnabled()
           
 boolean isFinderCacheEnabled()
           
 void prepareLocalizedFieldsForImport()
           
 void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
           
 void resetOriginalValues()
           
 void setClassName(String className)
           
 void setClassNameId(long classNameId)
           
 void setClassPK(long classPK)
           
 void setCompanyId(long companyId)
           
 void setCreateDate(Date createDate)
           
 void setDescription(String description)
           
 void setDescription(String description, Locale locale)
           
 void setDescription(String description, Locale locale, Locale defaultLocale)
           
 void setDescriptionCurrentLanguageId(String languageId)
           
 void setDescriptionMap(Map<Locale,String> descriptionMap)
           
 void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
           
 void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
           
 void setMvccVersion(long mvccVersion)
           
 void setName(String name)
           
 void setPrimaryKey(long primaryKey)
           
 void setPrimaryKeyObj(Serializable primaryKeyObj)
           
 void setRoleId(long roleId)
           
 void setSubtype(String subtype)
           
 void setTitle(String title)
           
 void setTitle(String title, Locale locale)
           
 void setTitle(String title, Locale locale, Locale defaultLocale)
           
 void setTitleCurrentLanguageId(String languageId)
           
 void setTitleMap(Map<Locale,String> titleMap)
           
 void setTitleMap(Map<Locale,String> titleMap, Locale defaultLocale)
           
 void setType(int type)
           
 void setUserId(long userId)
           
 void setUserName(String userName)
           
 void setUserUuid(String userUuid)
           
 void setUuid(String uuid)
           
 com.liferay.portal.kernel.model.CacheModel<com.liferay.portal.kernel.model.Role> toCacheModel()
           
 com.liferay.portal.kernel.model.Role toEscapedModel()
           
static com.liferay.portal.kernel.model.Role toModel(com.liferay.portal.kernel.model.RoleSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<com.liferay.portal.kernel.model.Role> toModels(com.liferay.portal.kernel.model.RoleSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 String toXmlString()
           
 
Methods inherited from class com.liferay.portal.kernel.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.kernel.model.RoleModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_COLUMNS_MAP

public static final Map<String,Integer> TABLE_COLUMNS_MAP

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

CLASSNAMEID_COLUMN_BITMASK

public static final long CLASSNAMEID_COLUMN_BITMASK
See Also:
Constant Field Values

CLASSPK_COLUMN_BITMASK

public static final long CLASSPK_COLUMN_BITMASK
See Also:
Constant Field Values

COMPANYID_COLUMN_BITMASK

public static final long COMPANYID_COLUMN_BITMASK
See Also:
Constant Field Values

NAME_COLUMN_BITMASK

public static final long NAME_COLUMN_BITMASK
See Also:
Constant Field Values

SUBTYPE_COLUMN_BITMASK

public static final long SUBTYPE_COLUMN_BITMASK
See Also:
Constant Field Values

TYPE_COLUMN_BITMASK

public static final long TYPE_COLUMN_BITMASK
See Also:
Constant Field Values

UUID_COLUMN_BITMASK

public static final long UUID_COLUMN_BITMASK
See Also:
Constant Field Values

MAPPING_TABLE_GROUPS_ROLES_NAME

public static final String MAPPING_TABLE_GROUPS_ROLES_NAME
See Also:
Constant Field Values

MAPPING_TABLE_GROUPS_ROLES_COLUMNS

public static final Object[][] MAPPING_TABLE_GROUPS_ROLES_COLUMNS

MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE

public static final String MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_GROUPS_ROLES

public static final boolean FINDER_CACHE_ENABLED_GROUPS_ROLES

MAPPING_TABLE_USERS_ROLES_NAME

public static final String MAPPING_TABLE_USERS_ROLES_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_ROLES_COLUMNS

public static final Object[][] MAPPING_TABLE_USERS_ROLES_COLUMNS

MAPPING_TABLE_USERS_ROLES_SQL_CREATE

public static final String MAPPING_TABLE_USERS_ROLES_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERS_ROLES

public static final boolean FINDER_CACHE_ENABLED_USERS_ROLES

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

RoleModelImpl

public RoleModelImpl()
Method Detail

toModel

public static com.liferay.portal.kernel.model.Role toModel(com.liferay.portal.kernel.model.RoleSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<com.liferay.portal.kernel.model.Role> toModels(com.liferay.portal.kernel.model.RoleSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface com.liferay.portal.kernel.model.RoleModel

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Specified by:
setPrimaryKey in interface com.liferay.portal.kernel.model.RoleModel

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModel
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.kernel.model.RoleModel

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModel
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.kernel.model.RoleModel

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface com.liferay.portal.kernel.model.ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface com.liferay.portal.kernel.model.ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Overrides:
getModelAttributes in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Role>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Overrides:
setModelAttributes in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Role>

getMvccVersion

@JSON
public long getMvccVersion()
Specified by:
getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
Specified by:
getMvccVersion in interface com.liferay.portal.kernel.model.RoleModel

setMvccVersion

public void setMvccVersion(long mvccVersion)
Specified by:
setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
Specified by:
setMvccVersion in interface com.liferay.portal.kernel.model.RoleModel

getUuid

@JSON
public String getUuid()
Specified by:
getUuid in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
getUuid in interface com.liferay.portal.kernel.model.StagedModel

setUuid

public void setUuid(String uuid)
Specified by:
setUuid in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
setUuid in interface com.liferay.portal.kernel.model.StagedModel

getOriginalUuid

public String getOriginalUuid()

getRoleId

@JSON
public long getRoleId()
Specified by:
getRoleId in interface com.liferay.portal.kernel.model.RoleModel

setRoleId

public void setRoleId(long roleId)
Specified by:
setRoleId in interface com.liferay.portal.kernel.model.RoleModel

getCompanyId

@JSON
public long getCompanyId()
Specified by:
getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
getCompanyId in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
Specified by:
getCompanyId in interface com.liferay.portal.kernel.model.StagedModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
setCompanyId in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
Specified by:
setCompanyId in interface com.liferay.portal.kernel.model.StagedModel

getOriginalCompanyId

public long getOriginalCompanyId()

getUserId

@JSON
public long getUserId()
Specified by:
getUserId in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
getUserId in interface com.liferay.portal.kernel.model.RoleModel

setUserId

public void setUserId(long userId)
Specified by:
setUserId in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
setUserId in interface com.liferay.portal.kernel.model.RoleModel

getUserUuid

public String getUserUuid()
Specified by:
getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
getUserUuid in interface com.liferay.portal.kernel.model.RoleModel

setUserUuid

public void setUserUuid(String userUuid)
Specified by:
setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
setUserUuid in interface com.liferay.portal.kernel.model.RoleModel

getUserName

@JSON
public String getUserName()
Specified by:
getUserName in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
getUserName in interface com.liferay.portal.kernel.model.RoleModel

setUserName

public void setUserName(String userName)
Specified by:
setUserName in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
setUserName in interface com.liferay.portal.kernel.model.RoleModel

getCreateDate

@JSON
public Date getCreateDate()
Specified by:
getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
getCreateDate in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
getCreateDate in interface com.liferay.portal.kernel.model.StagedModel

setCreateDate

public void setCreateDate(Date createDate)
Specified by:
setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
setCreateDate in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
setCreateDate in interface com.liferay.portal.kernel.model.StagedModel

getModifiedDate

@JSON
public Date getModifiedDate()
Specified by:
getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
getModifiedDate in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel

hasSetModifiedDate

public boolean hasSetModifiedDate()

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Specified by:
setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
Specified by:
setModifiedDate in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
setModifiedDate in interface com.liferay.portal.kernel.model.StagedModel

getClassName

public String getClassName()
Specified by:
getClassName in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
getClassName in interface com.liferay.portal.kernel.model.TypedModel

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface com.liferay.portal.kernel.model.RoleModel

getClassNameId

@JSON
public long getClassNameId()
Specified by:
getClassNameId in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
getClassNameId in interface com.liferay.portal.kernel.model.TypedModel

setClassNameId

public void setClassNameId(long classNameId)
Specified by:
setClassNameId in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
setClassNameId in interface com.liferay.portal.kernel.model.TypedModel

getOriginalClassNameId

public long getOriginalClassNameId()

getClassPK

@JSON
public long getClassPK()
Specified by:
getClassPK in interface com.liferay.portal.kernel.model.AttachedModel
Specified by:
getClassPK in interface com.liferay.portal.kernel.model.RoleModel

setClassPK

public void setClassPK(long classPK)
Specified by:
setClassPK in interface com.liferay.portal.kernel.model.AttachedModel
Specified by:
setClassPK in interface com.liferay.portal.kernel.model.RoleModel

getOriginalClassPK

public long getOriginalClassPK()

getName

@JSON
public String getName()
Specified by:
getName in interface com.liferay.portal.kernel.model.RoleModel

setName

public void setName(String name)
Specified by:
setName in interface com.liferay.portal.kernel.model.RoleModel

getOriginalName

public String getOriginalName()

getTitle

@JSON
public String getTitle()
Specified by:
getTitle in interface com.liferay.portal.kernel.model.RoleModel

getTitle

public String getTitle(Locale locale)
Specified by:
getTitle in interface com.liferay.portal.kernel.model.RoleModel

getTitle

public String getTitle(Locale locale,
                       boolean useDefault)
Specified by:
getTitle in interface com.liferay.portal.kernel.model.RoleModel

getTitle

public String getTitle(String languageId)
Specified by:
getTitle in interface com.liferay.portal.kernel.model.RoleModel

getTitle

public String getTitle(String languageId,
                       boolean useDefault)
Specified by:
getTitle in interface com.liferay.portal.kernel.model.RoleModel

getTitleCurrentLanguageId

public String getTitleCurrentLanguageId()
Specified by:
getTitleCurrentLanguageId in interface com.liferay.portal.kernel.model.RoleModel

getTitleCurrentValue

@JSON
public String getTitleCurrentValue()
Specified by:
getTitleCurrentValue in interface com.liferay.portal.kernel.model.RoleModel

getTitleMap

public Map<Locale,String> getTitleMap()
Specified by:
getTitleMap in interface com.liferay.portal.kernel.model.RoleModel

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface com.liferay.portal.kernel.model.RoleModel

setTitle

public void setTitle(String title,
                     Locale locale)
Specified by:
setTitle in interface com.liferay.portal.kernel.model.RoleModel

setTitle

public void setTitle(String title,
                     Locale locale,
                     Locale defaultLocale)
Specified by:
setTitle in interface com.liferay.portal.kernel.model.RoleModel

setTitleCurrentLanguageId

public void setTitleCurrentLanguageId(String languageId)
Specified by:
setTitleCurrentLanguageId in interface com.liferay.portal.kernel.model.RoleModel

setTitleMap

public void setTitleMap(Map<Locale,String> titleMap)
Specified by:
setTitleMap in interface com.liferay.portal.kernel.model.RoleModel

setTitleMap

public void setTitleMap(Map<Locale,String> titleMap,
                        Locale defaultLocale)
Specified by:
setTitleMap in interface com.liferay.portal.kernel.model.RoleModel

getDescription

@JSON
public String getDescription()
Specified by:
getDescription in interface com.liferay.portal.kernel.model.RoleModel

getDescription

public String getDescription(Locale locale)
Specified by:
getDescription in interface com.liferay.portal.kernel.model.RoleModel

getDescription

public String getDescription(Locale locale,
                             boolean useDefault)
Specified by:
getDescription in interface com.liferay.portal.kernel.model.RoleModel

getDescription

public String getDescription(String languageId)
Specified by:
getDescription in interface com.liferay.portal.kernel.model.RoleModel

getDescription

public String getDescription(String languageId,
                             boolean useDefault)
Specified by:
getDescription in interface com.liferay.portal.kernel.model.RoleModel

getDescriptionCurrentLanguageId

public String getDescriptionCurrentLanguageId()
Specified by:
getDescriptionCurrentLanguageId in interface com.liferay.portal.kernel.model.RoleModel

getDescriptionCurrentValue

@JSON
public String getDescriptionCurrentValue()
Specified by:
getDescriptionCurrentValue in interface com.liferay.portal.kernel.model.RoleModel

getDescriptionMap

public Map<Locale,String> getDescriptionMap()
Specified by:
getDescriptionMap in interface com.liferay.portal.kernel.model.RoleModel

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface com.liferay.portal.kernel.model.RoleModel

setDescription

public void setDescription(String description,
                           Locale locale)
Specified by:
setDescription in interface com.liferay.portal.kernel.model.RoleModel

setDescription

public void setDescription(String description,
                           Locale locale,
                           Locale defaultLocale)
Specified by:
setDescription in interface com.liferay.portal.kernel.model.RoleModel

setDescriptionCurrentLanguageId

public void setDescriptionCurrentLanguageId(String languageId)
Specified by:
setDescriptionCurrentLanguageId in interface com.liferay.portal.kernel.model.RoleModel

setDescriptionMap

public void setDescriptionMap(Map<Locale,String> descriptionMap)
Specified by:
setDescriptionMap in interface com.liferay.portal.kernel.model.RoleModel

setDescriptionMap

public void setDescriptionMap(Map<Locale,String> descriptionMap,
                              Locale defaultLocale)
Specified by:
setDescriptionMap in interface com.liferay.portal.kernel.model.RoleModel

getType

@JSON
public int getType()
Specified by:
getType in interface com.liferay.portal.kernel.model.RoleModel

setType

public void setType(int type)
Specified by:
setType in interface com.liferay.portal.kernel.model.RoleModel

getOriginalType

public int getOriginalType()

getSubtype

@JSON
public String getSubtype()
Specified by:
getSubtype in interface com.liferay.portal.kernel.model.RoleModel

setSubtype

public void setSubtype(String subtype)
Specified by:
setSubtype in interface com.liferay.portal.kernel.model.RoleModel

getOriginalSubtype

public String getOriginalSubtype()

getStagedModelType

public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface com.liferay.portal.kernel.model.StagedModel

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

public com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Specified by:
getExpandoBridge in interface com.liferay.portal.kernel.model.ClassedModel
Specified by:
getExpandoBridge in interface com.liferay.portal.kernel.model.RoleModel
Overrides:
getExpandoBridge in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Role>

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
Specified by:
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Specified by:
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.RoleModel
Overrides:
setExpandoBridgeAttributes in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Role>

getAvailableLanguageIds

public String[] getAvailableLanguageIds()
Specified by:
getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModel
Specified by:
getAvailableLanguageIds in interface com.liferay.portal.kernel.model.RoleModel

getDefaultLanguageId

public String getDefaultLanguageId()
Specified by:
getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModel
Specified by:
getDefaultLanguageId in interface com.liferay.portal.kernel.model.RoleModel

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport()
                                     throws com.liferay.portal.kernel.exception.LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
Specified by:
prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.RoleModel
Throws:
com.liferay.portal.kernel.exception.LocaleException

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
                                     throws com.liferay.portal.kernel.exception.LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
Specified by:
prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.RoleModel
Throws:
com.liferay.portal.kernel.exception.LocaleException

toEscapedModel

public com.liferay.portal.kernel.model.Role toEscapedModel()
Specified by:
toEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Specified by:
toEscapedModel in interface com.liferay.portal.kernel.model.RoleModel
Overrides:
toEscapedModel in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Role>

clone

public Object clone()
Specified by:
clone in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Specified by:
clone in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
clone in interface com.liferay.portal.kernel.model.StagedModel
Specified by:
clone in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Role>

compareTo

public int compareTo(com.liferay.portal.kernel.model.Role role)
Specified by:
compareTo in interface com.liferay.portal.kernel.model.RoleModel
Specified by:
compareTo in interface Comparable<com.liferay.portal.kernel.model.Role>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface com.liferay.portal.kernel.model.RoleModel
Overrides:
hashCode in class Object

isEntityCacheEnabled

public boolean isEntityCacheEnabled()
Specified by:
isEntityCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>

isFinderCacheEnabled

public boolean isFinderCacheEnabled()
Specified by:
isFinderCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>

resetOriginalValues

public void resetOriginalValues()
Specified by:
resetOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Overrides:
resetOriginalValues in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Role>

toCacheModel

public com.liferay.portal.kernel.model.CacheModel<com.liferay.portal.kernel.model.Role> toCacheModel()
Specified by:
toCacheModel in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Specified by:
toCacheModel in interface com.liferay.portal.kernel.model.RoleModel
Overrides:
toCacheModel in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Role>

toString

public String toString()
Specified by:
toString in interface com.liferay.portal.kernel.model.RoleModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Specified by:
toXmlString in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Role>
Specified by:
toXmlString in interface com.liferay.portal.kernel.model.RoleModel

Liferay 7.0-ga1 portal-impl