Class TemplateGroup

  • All Implemented Interfaces:
    Serializable

    public class TemplateGroup
    extends Object
    implements Serializable
    This class represents security permissions for a group in relation to a template
    Version:
    8.7.2
    Author:
    Marco Meschieri - LogicalDOC
    See Also:
    Serialized Form
    • Constructor Detail

      • TemplateGroup

        public TemplateGroup()
      • TemplateGroup

        public TemplateGroup​(long groupId)
    • Method Detail

      • getGroupId

        public long getGroupId()
      • getWrite

        public int getWrite()
      • setGroupId

        public void setGroupId​(long groupId)
      • setWrite

        public void setWrite​(int write)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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)