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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final longstatic final longstatic final intstatic final intFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetName()intgetType()getUser()If this is a user group, then it returns the usergetUsers()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) voidtoString()Methods inherited from class com.logicaldoc.core.PersistentObject
equals, getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, 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:
-
TYPE_DEFAULT
public static final int TYPE_DEFAULT- See Also:
-
TYPE_USER
public static final int TYPE_USER- See Also:
-
-
Constructor Details
-
Group
public Group()
-
-
Method Details
-
getType
public int getType() -
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
-