Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class RoleImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<Role>
      extended by com.liferay.portal.model.impl.RoleModelImpl
          extended by com.liferay.portal.model.impl.RoleBaseImpl
              extended by com.liferay.portal.model.impl.RoleImpl
All Implemented Interfaces:
AttachedModel, BaseModel<Role>, ClassedModel, PersistedModel, Role, RoleModel, Serializable, Cloneable, Comparable<Role>

public class RoleImpl
extends RoleBaseImpl

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.liferay.portal.model.impl.RoleModelImpl
CLASSNAMEID_COLUMN_BITMASK, CLASSPK_COLUMN_BITMASK, COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, FINDER_CACHE_ENABLED_GROUPS_ROLES, FINDER_CACHE_ENABLED_ROLES_PERMISSIONS, FINDER_CACHE_ENABLED_USERS_ROLES, LOCK_EXPIRATION_TIME, MAPPING_TABLE_GROUPS_ROLES_COLUMNS, MAPPING_TABLE_GROUPS_ROLES_NAME, MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE, MAPPING_TABLE_ROLES_PERMISSIONS_COLUMNS, MAPPING_TABLE_ROLES_PERMISSIONS_NAME, MAPPING_TABLE_ROLES_PERMISSIONS_SQL_CREATE, MAPPING_TABLE_USERS_ROLES_COLUMNS, MAPPING_TABLE_USERS_ROLES_NAME, MAPPING_TABLE_USERS_ROLES_SQL_CREATE, NAME_COLUMN_BITMASK, ORDER_BY_JPQL, ORDER_BY_SQL, SESSION_FACTORY, SUBTYPE_COLUMN_BITMASK, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER, TYPE_COLUMN_BITMASK
 
Fields inherited from interface com.liferay.portal.model.Role
NAME_ACCESSOR, ROLE_ID_ACCESSOR
 
Constructor Summary
RoleImpl()
           
 
Method Summary
 String getDescriptiveName()
           
 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 getTypeLabel()
           
protected  boolean hasClassName(Class<?> clazz)
           
 boolean isTeam()
           
 
Methods inherited from class com.liferay.portal.model.impl.RoleBaseImpl
persist
 
Methods inherited from class com.liferay.portal.model.impl.RoleModelImpl
clone, compareTo, equals, getClassName, getClassNameId, getClassPK, getColumnBitmask, getCompanyId, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getModelAttributes, getModelClass, getModelClassName, getName, getOriginalClassNameId, getOriginalClassPK, getOriginalCompanyId, getOriginalName, getOriginalSubtype, getOriginalType, getPrimaryKey, getPrimaryKeyObj, getRoleId, getSubtype, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTitleMap, getType, hashCode, prepareLocalizedFieldsForImport, resetOriginalValues, setClassName, setClassNameId, setClassPK, setCompanyId, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setModelAttributes, setName, setPrimaryKey, setPrimaryKeyObj, setRoleId, setSubtype, setTitle, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setType, toCacheModel, toEscapedModel, toModel, toModels, toString, toUnescapedModel, toXmlString
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.RoleModel
clone, compareTo, getClassName, getClassNameId, getClassPK, getCompanyId, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getName, getPrimaryKey, getPrimaryKeyObj, getRoleId, getSubtype, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTitleMap, getType, hashCode, isCachedModel, isEscapedModel, isNew, prepareLocalizedFieldsForImport, setCachedModel, setClassName, setClassNameId, setClassPK, setCompanyId, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setName, setNew, setPrimaryKey, setPrimaryKeyObj, setRoleId, setSubtype, setTitle, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setType, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
 
Methods inherited from interface com.liferay.portal.model.BaseModel
getModelAttributes, resetOriginalValues, setModelAttributes
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 

Constructor Detail

RoleImpl

public RoleImpl()
Method Detail

getDescriptiveName

public String getDescriptiveName()
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getTitle

public String getTitle(String languageId)
Description copied from interface: RoleModel
Returns the localized title of this role in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getTitle in interface Role
Specified by:
getTitle in interface RoleModel
Overrides:
getTitle in class RoleModelImpl
Parameters:
languageId - the ID of the language
Returns:
the localized title of this role

getTitle

public String getTitle(String languageId,
                       boolean useDefault)
Description copied from interface: RoleModel
Returns the localized title of this role in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getTitle in interface Role
Specified by:
getTitle in interface RoleModel
Overrides:
getTitle in class RoleModelImpl
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized title of this role

getTypeLabel

public String getTypeLabel()

isTeam

public boolean isTeam()

hasClassName

protected boolean hasClassName(Class<?> clazz)

Liferay 6.1.2-ce-ga3