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 Summary
FieldsFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier 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.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Field Details
-
GROUP_ADMIN
- See Also:
-
GROUPID_ADMIN
public static final long GROUPID_ADMIN- See Also:
-
GROUPID_PUBLISHER
public static final long GROUPID_PUBLISHER- See Also:
-
-
Constructor Details
-
Group
public Group()
-
-
Method Details
-
getType
-
setType
-
setType
public void setType(int type) -
getUsers
-
setUsers
-
getName
-
getDescription
-
setName
-
setDescription
-
reset
public void reset() -
clearUsers
public void clearUsers() -
toString
- Overrides:
toStringin classPersistentObject
-
isUserGroup
public boolean isUserGroup() -
getUser
If this is a user group, then it returns the user- Returns:
- the user
-
isGuest
public 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
-
isAdmin
public boolean isAdmin() -
getSource
-
setSource
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-