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 TypeMethodDescriptionvoid
boolean
getName()
getType()
getUser()
If this is a user group, then it returns the usergetUsers()
int
hashCode()
boolean
isAdmin()
boolean
isGuest()
Check if this group is the guest or is the user's group of a guest userboolean
void
reset()
void
setDescription
(String description) void
void
void
setType
(int type) void
void
toString()
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:
toString
in 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:
hashCode
in classPersistentObject
-
equals
- Overrides:
equals
in classPersistentObject
-