Liferay 6.2-ce-ga5

com.liferay.portal.model
Class UserGroupWrapper

java.lang.Object
  extended by com.liferay.portal.model.UserGroupWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<UserGroup>, ClassedModel, ModelWrapper<UserGroup>, PersistedModel, StagedAuditedModel, StagedModel, UserGroup, UserGroupModel, Serializable, Cloneable, Comparable<UserGroup>

@ProviderType
public class UserGroupWrapper
extends Object
implements UserGroup, ModelWrapper<UserGroup>

This class is a wrapper for UserGroup.

See Also:
UserGroup, Serialized Form

Field Summary
 
Fields inherited from interface com.liferay.portal.model.UserGroup
NAME_ACCESSOR
 
Constructor Summary
UserGroupWrapper(UserGroup userGroup)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(UserGroup userGroup)
           
 boolean equals(Object obj)
           
 boolean getAddedByLDAPImport()
          Returns the added by l d a p import of this user group.
 long getCompanyId()
          Returns the company ID of this user group.
 Date getCreateDate()
          Returns the create date of this user group.
 String getDescription()
          Returns the description of this user group.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Group getGroup()
           
 long getGroupId()
           
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this user group.
 String getName()
          Returns the name of this user group.
 long getParentUserGroupId()
          Returns the parent user group ID of this user group.
 long getPrimaryKey()
          Returns the primary key of this user group.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 int getPrivateLayoutsPageCount()
           
 int getPublicLayoutsPageCount()
           
 StagedModelType getStagedModelType()
           
 long getUserGroupId()
          Returns the user group ID of this user group.
 long getUserId()
          Returns the user ID of this user group.
 String getUserName()
          Returns the user name of this user group.
 String getUserUuid()
          Returns the user uuid of this user group.
 String getUuid()
          Returns the uuid of this user group.
 UserGroup getWrappedModel()
           
 UserGroup getWrappedUserGroup()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 int hashCode()
           
 boolean hasPrivateLayouts()
           
 boolean hasPublicLayouts()
           
 boolean isAddedByLDAPImport()
          Returns true if this user group is added by l d a p import.
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setAddedByLDAPImport(boolean addedByLDAPImport)
          Sets whether this user group is added by l d a p import.
 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 setCreateDate(Date createDate)
          Sets the create date of this user group.
 void setDescription(String description)
          Sets the description of this user group.
 void setExpandoBridgeAttributes(BaseModel<?> baseModel)
           
 void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
           
 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 user group.
 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 primaryKey)
          Sets the primary key of this user group.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setUserGroupId(long userGroupId)
          Sets the user group ID of this user group.
 void setUserId(long userId)
          Sets the user ID of this user group.
 void setUserName(String userName)
          Sets the user name of this user group.
 void setUserUuid(String userUuid)
          Sets the user uuid of this user group.
 void setUuid(String uuid)
          Sets the uuid of this user group.
 CacheModel<UserGroup> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 UserGroup toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 UserGroup toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserGroupWrapper

public UserGroupWrapper(UserGroup userGroup)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<UserGroup>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<UserGroup>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this user group.

Specified by:
getPrimaryKey in interface UserGroupModel
Returns:
the primary key of this user group

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this user group.

Specified by:
setPrimaryKey in interface UserGroupModel
Parameters:
primaryKey - the primary key of this user group

getUuid

public String getUuid()
Returns the uuid of this user group.

Specified by:
getUuid in interface StagedModel
Specified by:
getUuid in interface UserGroupModel
Returns:
the uuid of this user group

setUuid

public void setUuid(String uuid)
Sets the uuid of this user group.

Specified by:
setUuid in interface StagedModel
Specified by:
setUuid in interface UserGroupModel
Parameters:
uuid - the uuid of this user group

getUserGroupId

public long getUserGroupId()
Returns the user group ID of this user group.

Specified by:
getUserGroupId in interface UserGroupModel
Returns:
the user group ID of this user group

setUserGroupId

public void setUserGroupId(long userGroupId)
Sets the user group ID of this user group.

Specified by:
setUserGroupId in interface UserGroupModel
Parameters:
userGroupId - the user group ID of this user group

getCompanyId

public long getCompanyId()
Returns the company ID of this user group.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface StagedModel
Specified by:
getCompanyId in interface UserGroupModel
Returns:
the company ID of this user group

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this user group.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface StagedModel
Specified by:
setCompanyId in interface UserGroupModel
Parameters:
companyId - the company ID of this user group

getUserId

public long getUserId()
Returns the user ID of this user group.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface UserGroupModel
Returns:
the user ID of this user group

setUserId

public void setUserId(long userId)
Sets the user ID of this user group.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface UserGroupModel
Parameters:
userId - the user ID of this user group

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this user group.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface UserGroupModel
Returns:
the user uuid of this user group
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this user group.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface UserGroupModel
Parameters:
userUuid - the user uuid of this user group

getUserName

public String getUserName()
Returns the user name of this user group.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface UserGroupModel
Returns:
the user name of this user group

setUserName

public void setUserName(String userName)
Sets the user name of this user group.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface UserGroupModel
Parameters:
userName - the user name of this user group

getCreateDate

public Date getCreateDate()
Returns the create date of this user group.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface StagedModel
Specified by:
getCreateDate in interface UserGroupModel
Returns:
the create date of this user group

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this user group.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface StagedModel
Specified by:
setCreateDate in interface UserGroupModel
Parameters:
createDate - the create date of this user group

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this user group.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface StagedModel
Specified by:
getModifiedDate in interface UserGroupModel
Returns:
the modified date of this user group

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this user group.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface StagedModel
Specified by:
setModifiedDate in interface UserGroupModel
Parameters:
modifiedDate - the modified date of this user group

getParentUserGroupId

public long getParentUserGroupId()
Returns the parent user group ID of this user group.

Specified by:
getParentUserGroupId in interface UserGroupModel
Returns:
the parent user group ID of this user group

setParentUserGroupId

public void setParentUserGroupId(long parentUserGroupId)
Sets the parent user group ID of this user group.

Specified by:
setParentUserGroupId in interface UserGroupModel
Parameters:
parentUserGroupId - the parent user group ID of this user group

getName

public String getName()
Returns the name of this user group.

Specified by:
getName in interface UserGroupModel
Returns:
the name of this user group

setName

public void setName(String name)
Sets the name of this user group.

Specified by:
setName in interface UserGroupModel
Parameters:
name - the name of this user group

getDescription

public String getDescription()
Returns the description of this user group.

Specified by:
getDescription in interface UserGroupModel
Returns:
the description of this user group

setDescription

public void setDescription(String description)
Sets the description of this user group.

Specified by:
setDescription in interface UserGroupModel
Parameters:
description - the description of this user group

getAddedByLDAPImport

public boolean getAddedByLDAPImport()
Returns the added by l d a p import of this user group.

Specified by:
getAddedByLDAPImport in interface UserGroupModel
Returns:
the added by l d a p import of this user group

isAddedByLDAPImport

public boolean isAddedByLDAPImport()
Returns true if this user group is added by l d a p import.

Specified by:
isAddedByLDAPImport in interface UserGroupModel
Returns:
true if this user group is added by l d a p import; false otherwise

setAddedByLDAPImport

public void setAddedByLDAPImport(boolean addedByLDAPImport)
Sets whether this user group is added by l d a p import.

Specified by:
setAddedByLDAPImport in interface UserGroupModel
Parameters:
addedByLDAPImport - the added by l d a p import of this user group

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<UserGroup>
Specified by:
isNew in interface UserGroupModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<UserGroup>
Specified by:
setNew in interface UserGroupModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<UserGroup>
Specified by:
isCachedModel in interface UserGroupModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<UserGroup>
Specified by:
setCachedModel in interface UserGroupModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<UserGroup>
Specified by:
isEscapedModel in interface UserGroupModel
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<UserGroup>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface UserGroupModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<UserGroup>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface UserGroupModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<UserGroup>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface UserGroupModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<UserGroup>
Specified by:
setExpandoBridgeAttributes in interface UserGroupModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<UserGroup>
Specified by:
setExpandoBridgeAttributes in interface UserGroupModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<UserGroup>
Specified by:
setExpandoBridgeAttributes in interface UserGroupModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<UserGroup>
Specified by:
clone in interface StagedModel
Specified by:
clone in interface UserGroupModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(UserGroup userGroup)
Specified by:
compareTo in interface UserGroupModel
Specified by:
compareTo in interface Comparable<UserGroup>

hashCode

public int hashCode()
Specified by:
hashCode in interface UserGroupModel
Overrides:
hashCode in class Object

toCacheModel

public CacheModel<UserGroup> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<UserGroup>
Specified by:
toCacheModel in interface UserGroupModel
Returns:
the cache model object

toEscapedModel

public UserGroup toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<UserGroup>
Specified by:
toEscapedModel in interface UserGroupModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public UserGroup toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<UserGroup>
Specified by:
toUnescapedModel in interface UserGroupModel

toString

public String toString()
Specified by:
toString in interface UserGroupModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<UserGroup>
Specified by:
toXmlString in interface UserGroupModel
Returns:
the XML representation of this model instance

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

getGroup

public Group getGroup()
               throws PortalException,
                      SystemException
Specified by:
getGroup in interface UserGroup
Throws:
PortalException
SystemException

getGroupId

public long getGroupId()
                throws PortalException,
                       SystemException
Specified by:
getGroupId in interface UserGroup
Throws:
PortalException
SystemException

getPrivateLayoutsPageCount

public int getPrivateLayoutsPageCount()
                               throws PortalException,
                                      SystemException
Specified by:
getPrivateLayoutsPageCount in interface UserGroup
Throws:
PortalException
SystemException

getPublicLayoutsPageCount

public int getPublicLayoutsPageCount()
                              throws PortalException,
                                     SystemException
Specified by:
getPublicLayoutsPageCount in interface UserGroup
Throws:
PortalException
SystemException

hasPrivateLayouts

public boolean hasPrivateLayouts()
                          throws PortalException,
                                 SystemException
Specified by:
hasPrivateLayouts in interface UserGroup
Throws:
PortalException
SystemException

hasPublicLayouts

public boolean hasPublicLayouts()
                         throws PortalException,
                                SystemException
Specified by:
hasPublicLayouts in interface UserGroup
Throws:
PortalException
SystemException

equals

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

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

getWrappedUserGroup

public UserGroup getWrappedUserGroup()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

public UserGroup getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<UserGroup>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<UserGroup>

Liferay 6.2-ce-ga5