Class Group
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.security.user.Group
- All Implemented Interfaces:
- Serializable
This class represents groups. 
Groups have a type that qualifies the group usage as follows:
Groups have a type that qualifies the group usage as follows:
- DEFAULT (0): Standard group of users
- USER (1): Group of a user(one to one relationship), it is hidden and not editable using admin tools
- Version:
- 1.0
- Author:
- Michael Scholz, Marco Meschieri
- See Also:
- 
Field SummaryFieldsFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleangetName()getType()getUser()If this is a user group, then it returns the usergetUsers()inthashCode()booleanisAdmin()booleanisGuest()Check if this group is the guest or is the user's group of a guest userbooleanvoidreset()voidsetDescription(String description) voidvoidvoidsetType(int type) voidvoidtoString()Methods inherited from class com.logicaldoc.core.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
- 
Field Details- 
GROUP_ADMIN- See Also:
 
- 
GROUPID_ADMINpublic static final long GROUPID_ADMIN- See Also:
 
- 
GROUPID_PUBLISHERpublic static final long GROUPID_PUBLISHER- See Also:
 
 
- 
- 
Constructor Details- 
Grouppublic Group()
 
- 
- 
Method Details- 
getType
- 
setType
- 
setTypepublic void setType(int type) 
- 
getUsers
- 
setUsers
- 
getName
- 
getDescription
- 
setName
- 
setDescription
- 
resetpublic void reset()
- 
clearUserspublic void clearUsers()
- 
toString- Overrides:
- toStringin class- PersistentObject
 
- 
isUserGrouppublic boolean isUserGroup()
- 
getUserIf this is a user group, then it returns the user- Returns:
- the user
 
- 
isGuestpublic boolean isGuest()Check if this group is the guest or is the user's group of a guest user- Returns:
- if this is the guest group or is the user's group of a guest user
 
- 
isAdminpublic boolean isAdmin()
- 
getSource
- 
setSource
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- PersistentObject
 
- 
equals- Overrides:
- equalsin class- PersistentObject
 
 
-