Package com.logicaldoc.core.metadata
Class TemplateGroup
java.lang.Object
com.logicaldoc.core.metadata.TemplateGroup
- All Implemented Interfaces:
Serializable
This class represents security permissions for a group in relation to a
template
- Version:
- 8.7.2
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Constructor Summary
ConstructorDescriptionTemplateGroup
(long groupId) TemplateGroup
(long groupId, int write) TemplateGroup
(TemplateGroup source) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
int
Parsing each permission and creates the integer representationint
getWrite()
int
hashCode()
void
setGroupId
(long groupId) void
setPermissions
(int permissions) Set each permission evaluating the given integer representation.void
setWrite
(int write)
-
Constructor Details
-
TemplateGroup
public TemplateGroup() -
TemplateGroup
public TemplateGroup(long groupId) -
TemplateGroup
public TemplateGroup(long groupId, int write) -
TemplateGroup
-
-
Method Details
-
getGroupId
public long getGroupId() -
getWrite
public int getWrite() -
setGroupId
public void setGroupId(long groupId) -
setWrite
public void setWrite(int write) -
equals
-
hashCode
public int hashCode() -
getPermissions
public int getPermissions()Parsing each permission and creates the integer representation- Returns:
- Permissions settings as integer representation.
-
setPermissions
public void setPermissions(int permissions) Set each permission evaluating the given integer representation.- Parameters:
permissions
- mask(the last slot is for the 'read' permission and it is not evaluated)
-