Package com.logicaldoc.core.security
Class Group
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.security.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
Modifier and TypeFieldDescriptionstatic final String
static final long
static final long
static final int
static final int
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getName()
int
getType()
getUser()
If this is a user group, then it returns the usergetUsers()
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
toString()
Methods inherited from class com.logicaldoc.core.PersistentObject
equals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, 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:
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
-