|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.UserGroupWrapper
public class UserGroupWrapper
This class is a wrapper for UserGroup
.
UserGroup
,
Serialized FormConstructor Summary | |
---|---|
UserGroupWrapper(UserGroup userGroup)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(UserGroup userGroup)
|
long |
getCompanyId()
Gets the company id of this user group. |
String |
getDescription()
Gets the description of this user group. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
Group |
getGroup()
|
String |
getName()
Gets the name of this user group. |
long |
getParentUserGroupId()
Gets the parent user group id of this user group. |
long |
getPrimaryKey()
Gets the primary key of this user group. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
int |
getPrivateLayoutsPageCount()
|
int |
getPublicLayoutsPageCount()
|
long |
getUserGroupId()
Gets the user group id of this user group. |
UserGroup |
getWrappedUserGroup()
|
int |
hashCode()
|
boolean |
hasPrivateLayouts()
|
boolean |
hasPublicLayouts()
|
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. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCompanyId(long companyId)
Sets the company id of this user group. |
void |
setDescription(String description)
Sets the description of this user group. |
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 user group. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setParentUserGroupId(long parentUserGroupId)
Sets the parent user group id of this user group. |
void |
setPrimaryKey(long pk)
Sets the primary key of this user group |
void |
setUserGroupId(long userGroupId)
Sets the user group id of this user group. |
UserGroup |
toEscapedModel()
Gets a copy of this user group 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 UserGroupWrapper(UserGroup userGroup)
Method Detail |
---|
public long getPrimaryKey()
UserGroupModel
getPrimaryKey
in interface UserGroupModel
public void setPrimaryKey(long pk)
UserGroupModel
setPrimaryKey
in interface UserGroupModel
pk
- the primary key of this user grouppublic long getUserGroupId()
UserGroupModel
getUserGroupId
in interface UserGroupModel
public void setUserGroupId(long userGroupId)
UserGroupModel
setUserGroupId
in interface UserGroupModel
userGroupId
- the user group id of this user grouppublic long getCompanyId()
UserGroupModel
getCompanyId
in interface UserGroupModel
public void setCompanyId(long companyId)
UserGroupModel
setCompanyId
in interface UserGroupModel
companyId
- the company id of this user grouppublic long getParentUserGroupId()
UserGroupModel
getParentUserGroupId
in interface UserGroupModel
public void setParentUserGroupId(long parentUserGroupId)
UserGroupModel
setParentUserGroupId
in interface UserGroupModel
parentUserGroupId
- the parent user group id of this user grouppublic String getName()
UserGroupModel
getName
in interface UserGroupModel
public void setName(String name)
UserGroupModel
setName
in interface UserGroupModel
name
- the name of this user grouppublic String getDescription()
UserGroupModel
getDescription
in interface UserGroupModel
public void setDescription(String description)
UserGroupModel
setDescription
in interface UserGroupModel
description
- the description of this user grouppublic UserGroup toEscapedModel()
UserGroupModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface UserGroupModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<UserGroup>
isNew
in interface UserGroupModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<UserGroup>
setNew
in interface UserGroupModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<UserGroup>
isCachedModel
in interface UserGroupModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<UserGroup>
setCachedModel
in interface UserGroupModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<UserGroup>
isEscapedModel
in interface UserGroupModel
true
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<UserGroup>
setEscapedModel
in interface UserGroupModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<UserGroup>
getPrimaryKeyObj
in interface UserGroupModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<UserGroup>
getExpandoBridge
in interface UserGroupModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<UserGroup>
setExpandoBridgeAttributes
in interface UserGroupModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<UserGroup>
clone
in interface UserGroupModel
clone
in class Object
public int compareTo(UserGroup userGroup)
compareTo
in interface UserGroupModel
compareTo
in interface Comparable<UserGroup>
public int hashCode()
hashCode
in interface UserGroupModel
hashCode
in class Object
public String toString()
toString
in interface UserGroupModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<UserGroup>
toXmlString
in interface UserGroupModel
public Group getGroup() throws PortalException, SystemException
getGroup
in interface UserGroup
PortalException
SystemException
public int getPrivateLayoutsPageCount() throws PortalException, SystemException
getPrivateLayoutsPageCount
in interface UserGroup
PortalException
SystemException
public boolean hasPrivateLayouts() throws PortalException, SystemException
hasPrivateLayouts
in interface UserGroup
PortalException
SystemException
public int getPublicLayoutsPageCount() throws PortalException, SystemException
getPublicLayoutsPageCount
in interface UserGroup
PortalException
SystemException
public boolean hasPublicLayouts() throws PortalException, SystemException
hasPublicLayouts
in interface UserGroup
PortalException
SystemException
public UserGroup getWrappedUserGroup()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |