Package com.liferay.portal.kernel.model
Class UserGroupRoleWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<UserGroupRole>
com.liferay.portal.kernel.model.UserGroupRoleWrapper
- All Implemented Interfaces:
BaseModel<UserGroupRole>
,CTModel<UserGroupRole>
,ClassedModel
,ModelWrapper<UserGroupRole>
,MVCCModel
,PersistedModel
,ShardedModel
,UserGroupRole
,UserGroupRoleModel
,Serializable
,Cloneable
,Comparable<UserGroupRole>
public class UserGroupRoleWrapper
extends BaseModelWrapper<UserGroupRole>
implements ModelWrapper<UserGroupRole>, UserGroupRole
This class is a wrapper for UserGroupRole
.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.portal.kernel.model.UserGroupRole
GROUP_ID_ACCESSOR, ROLE_ID_ACCESSOR, USER_GROUP_ROLE_ID_ACCESSOR, USER_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Returns the company ID of this user group role.long
Returns the ct collection ID of this user group role.getGroup()
long
Returns the group ID of this user group role.long
Returns the mvcc version of this user group role.long
Returns the primary key of this user group role.getRole()
long
Returns the role ID of this user group role.getUser()
long
Returns the user group role ID of this user group role.long
Returns the user ID of this user group role.Returns the user uuid of this user group role.int
hashCode()
boolean
boolean
void
persist()
Updates this model instance in the database or adds it if it does not yet exist.void
setCompanyId
(long companyId) Sets the company ID of this user group role.void
setCtCollectionId
(long ctCollectionId) Sets the ct collection ID of this user group role.void
setGroupId
(long groupId) Sets the group ID of this user group role.void
setModelAttributes
(Map<String, Object> attributes) void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this user group role.void
setPrimaryKey
(long primaryKey) Sets the primary key of this user group role.void
setRoleId
(long roleId) Sets the role ID of this user group role.void
setUserGroupRoleId
(long userGroupRoleId) Sets the user group role ID of this user group role.void
setUserId
(long userId) Sets the user ID of this user group role.void
setUserUuid
(String userUuid) Sets the user uuid of this user group role.protected UserGroupRoleWrapper
wrap
(UserGroupRole userGroupRole) Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
clone, compareTo, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
UserGroupRoleWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<UserGroupRole>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<UserGroupRole>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<UserGroupRole>
- Specified by:
cloneWithOriginalValues
in interfaceUserGroupRoleModel
-
equals
- Specified by:
equals
in interfaceUserGroupRole
- Overrides:
equals
in classBaseModelWrapper<UserGroupRole>
-
getCompanyId
public long getCompanyId()Returns the company ID of this user group role.- Specified by:
getCompanyId
in interfaceShardedModel
- Specified by:
getCompanyId
in interfaceUserGroupRoleModel
- Returns:
- the company ID of this user group role
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this user group role.- Specified by:
getCtCollectionId
in interfaceCTModel<UserGroupRole>
- Specified by:
getCtCollectionId
in interfaceUserGroupRoleModel
- Returns:
- the ct collection ID of this user group role
-
getGroup
- Specified by:
getGroup
in interfaceUserGroupRole
- Throws:
PortalException
-
getGroupId
public long getGroupId()Returns the group ID of this user group role.- Specified by:
getGroupId
in interfaceUserGroupRoleModel
- Returns:
- the group ID of this user group role
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this user group role.- Specified by:
getMvccVersion
in interfaceMVCCModel
- Specified by:
getMvccVersion
in interfaceUserGroupRoleModel
- Returns:
- the mvcc version of this user group role
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this user group role.- Specified by:
getPrimaryKey
in interfaceCTModel<UserGroupRole>
- Specified by:
getPrimaryKey
in interfaceUserGroupRoleModel
- Returns:
- the primary key of this user group role
-
getRole
- Specified by:
getRole
in interfaceUserGroupRole
- Throws:
PortalException
-
getRoleId
public long getRoleId()Returns the role ID of this user group role.- Specified by:
getRoleId
in interfaceUserGroupRoleModel
- Returns:
- the role ID of this user group role
-
getUser
- Specified by:
getUser
in interfaceUserGroupRole
- Throws:
PortalException
-
getUserGroupRoleId
public long getUserGroupRoleId()Returns the user group role ID of this user group role.- Specified by:
getUserGroupRoleId
in interfaceUserGroupRoleModel
- Returns:
- the user group role ID of this user group role
-
getUserId
public long getUserId()Returns the user ID of this user group role.- Specified by:
getUserId
in interfaceUserGroupRoleModel
- Returns:
- the user ID of this user group role
-
getUserUuid
Returns the user uuid of this user group role.- Specified by:
getUserUuid
in interfaceUserGroupRoleModel
- Returns:
- the user uuid of this user group role
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceUserGroupRole
- Overrides:
hashCode
in classBaseModelWrapper<UserGroupRole>
-
hasOrganizationRole
public boolean hasOrganizationRole()- Specified by:
hasOrganizationRole
in interfaceUserGroupRole
-
hasSiteRole
public boolean hasSiteRole()- Specified by:
hasSiteRole
in interfaceUserGroupRole
-
persist
public void persist()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 interfacePersistedModel
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this user group role.- Specified by:
setCompanyId
in interfaceShardedModel
- Specified by:
setCompanyId
in interfaceUserGroupRoleModel
- Parameters:
companyId
- the company ID of this user group role
-
setCtCollectionId
public void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this user group role.- Specified by:
setCtCollectionId
in interfaceCTModel<UserGroupRole>
- Specified by:
setCtCollectionId
in interfaceUserGroupRoleModel
- Parameters:
ctCollectionId
- the ct collection ID of this user group role
-
setGroupId
public void setGroupId(long groupId) Sets the group ID of this user group role.- Specified by:
setGroupId
in interfaceUserGroupRoleModel
- Parameters:
groupId
- the group ID of this user group role
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this user group role.- Specified by:
setMvccVersion
in interfaceMVCCModel
- Specified by:
setMvccVersion
in interfaceUserGroupRoleModel
- Parameters:
mvccVersion
- the mvcc version of this user group role
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this user group role.- Specified by:
setPrimaryKey
in interfaceCTModel<UserGroupRole>
- Specified by:
setPrimaryKey
in interfaceUserGroupRoleModel
- Parameters:
primaryKey
- the primary key of this user group role
-
setRoleId
public void setRoleId(long roleId) Sets the role ID of this user group role.- Specified by:
setRoleId
in interfaceUserGroupRoleModel
- Parameters:
roleId
- the role ID of this user group role
-
setUserGroupRoleId
public void setUserGroupRoleId(long userGroupRoleId) Sets the user group role ID of this user group role.- Specified by:
setUserGroupRoleId
in interfaceUserGroupRoleModel
- Parameters:
userGroupRoleId
- the user group role ID of this user group role
-
setUserId
public void setUserId(long userId) Sets the user ID of this user group role.- Specified by:
setUserId
in interfaceUserGroupRoleModel
- Parameters:
userId
- the user ID of this user group role
-
setUserUuid
Sets the user uuid of this user group role.- Specified by:
setUserUuid
in interfaceUserGroupRoleModel
- Parameters:
userUuid
- the user uuid of this user group role
-
toXmlString
- Specified by:
toXmlString
in interfaceUserGroupRoleModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfaceBaseModel<UserGroupRole>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfaceBaseModel<UserGroupRole>
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<UserGroupRole>
-