|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.RoleWrapper
public class RoleWrapper
This class is a wrapper for Role.
Role,
Serialized Form| Constructor Summary | |
|---|---|
RoleWrapper(Role role)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Role role)
|
String |
getClassName()
Gets the class name of the model instance this role is polymorphically associated with. |
long |
getClassNameId()
Gets the class name id of this role. |
long |
getClassPK()
Gets the class p k of this role. |
long |
getCompanyId()
Gets the company id of this role. |
String |
getDescription()
Gets the description of this role. |
String |
getDescriptiveName()
|
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
Gets the name of this role. |
long |
getPrimaryKey()
Gets the primary key of this role. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getRoleId()
Gets the role id of this role. |
String |
getSubtype()
Gets the subtype of this role. |
String |
getTitle()
Gets the title of this role. |
String |
getTitle(Locale locale)
Gets the localized title of this role. |
String |
getTitle(Locale locale,
boolean useDefault)
Gets the localized title of this role, optionally using the default language if no localization exists for the requested language. |
String |
getTitle(String languageId)
Gets the localized title of this role. |
String |
getTitle(String languageId,
boolean useDefault)
Gets the localized title of this role, optionally using the default language if no localization exists for the requested language. |
Map<Locale,String> |
getTitleMap()
Gets a map of the locales and localized title of this role. |
int |
getType()
Gets the type of this role. |
String |
getTypeLabel()
|
Role |
getWrappedRole()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
boolean |
isTeam()
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
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 |
setDescription(String description)
Sets the description of this role. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setName(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 pk)
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(Locale locale,
String title)
Sets the localized title of this role. |
void |
setTitle(String title)
Sets the title of this role. |
void |
setTitleMap(Map<Locale,String> titleMap)
Sets the localized titles of this role from the map of locales and localized titles. |
void |
setType(int type)
Sets the type of this role. |
Role |
toEscapedModel()
Gets a copy of this role as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RoleWrapper(Role role)
| Method Detail |
|---|
public long getPrimaryKey()
RoleModel
getPrimaryKey in interface RoleModelpublic void setPrimaryKey(long pk)
RoleModel
setPrimaryKey in interface RoleModelpk - the primary key of this rolepublic long getRoleId()
RoleModel
getRoleId in interface RoleModelpublic void setRoleId(long roleId)
RoleModel
setRoleId in interface RoleModelroleId - the role id of this rolepublic long getCompanyId()
RoleModel
getCompanyId in interface RoleModelpublic void setCompanyId(long companyId)
RoleModel
setCompanyId in interface RoleModelcompanyId - the company id of this rolepublic String getClassName()
RoleModel
getClassName in interface RoleModelpublic long getClassNameId()
RoleModel
getClassNameId in interface RoleModelpublic void setClassNameId(long classNameId)
RoleModel
setClassNameId in interface RoleModelclassNameId - the class name id of this rolepublic long getClassPK()
RoleModel
getClassPK in interface RoleModelpublic void setClassPK(long classPK)
RoleModel
setClassPK in interface RoleModelclassPK - the class p k of this rolepublic String getName()
RoleModel
getName in interface RoleModelpublic void setName(String name)
RoleModel
setName in interface RoleModelname - the name of this rolepublic String getTitle()
RoleModel
getTitle in interface RoleModelpublic String getTitle(Locale locale)
RoleModel
getTitle in interface RoleModellocale - the locale to get the localized title for
public String getTitle(Locale locale,
boolean useDefault)
RoleModel
getTitle in interface RoleModellocale - the local to get the localized title foruseDefault - 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 RolegetTitle in interface RoleModellanguageId - the id of the language to get the localized title for
public String getTitle(String languageId,
boolean useDefault)
RoleModel
getTitle in interface RolegetTitle in interface RoleModellanguageId - the id of the language to get the localized title foruseDefault - whether to use the default language if no localization exists for the requested language
public 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(Locale locale,
String title)
RoleModel
setTitle in interface RoleModellocale - the locale to set the localized title fortitle - the localized title of this rolepublic void setTitleMap(Map<Locale,String> titleMap)
RoleModel
setTitleMap in interface RoleModeltitleMap - the locales and localized titles of this rolepublic String getDescription()
RoleModel
getDescription in interface RoleModelpublic void setDescription(String description)
RoleModel
setDescription in interface RoleModeldescription - the description of this rolepublic int getType()
RoleModel
getType in interface RoleModelpublic void setType(int type)
RoleModel
setType in interface RoleModeltype - the type of this rolepublic String getSubtype()
RoleModel
getSubtype in interface RoleModelpublic void setSubtype(String subtype)
RoleModel
setSubtype in interface RoleModelsubtype - the subtype of this rolepublic Role toEscapedModel()
RoleModelAutoEscapeBeanHandler.
toEscapedModel in interface RoleModelAutoEscapeBeanHandlerpublic boolean isNew()
BaseModel
isNew in interface BaseModel<Role>isNew in interface RoleModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<Role>setNew in interface RoleModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<Role>isCachedModel in interface RoleModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<Role>setCachedModel in interface RoleModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<Role>isEscapedModel in interface RoleModeltrue if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<Role>setEscapedModel in interface RoleModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Role>getPrimaryKeyObj in interface RoleModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Role>getExpandoBridge in interface RoleModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Role>setExpandoBridgeAttributes in interface RoleModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<Role>clone in interface RoleModelclone in class Objectpublic int compareTo(Role role)
compareTo in interface RoleModelcompareTo in interface Comparable<Role>public int hashCode()
hashCode in interface RoleModelhashCode in class Objectpublic String toString()
toString in interface RoleModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Role>toXmlString in interface RoleModel
public String getDescriptiveName()
throws PortalException,
SystemException
getDescriptiveName in interface RolePortalException
SystemExceptionpublic String getTypeLabel()
getTypeLabel in interface Rolepublic boolean isTeam()
isTeam in interface Rolepublic Role getWrappedRole()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||