Class TypePermissions

    • Field Detail

      • children

        protected boolean children
        Flag whether the type/instance has children
      • editable

        protected boolean editable
        Flag to mark editable
    • Constructor Detail

      • TypePermissions

        public TypePermissions()
    • Method Detail

      • getType

        public String getType()
        Type
        Returns:
        type
      • setType

        public TypePermissions setType​(String type)
        Set type
        Parameters:
        type - type
        Returns:
        fluent API
      • getId

        public Integer getId()
        Optional instance ID
        Returns:
        instance ID (may be null)
      • setId

        public TypePermissions setId​(Integer id)
        Set instance ID
        Parameters:
        id - ID
        Returns:
        fluent API
      • getChannelId

        public Integer getChannelId()
        Optional channel ID for folders
        Returns:
        channel ID (may be null)
      • setChannelId

        public TypePermissions setChannelId​(Integer channelId)
        Set channel ID
        Parameters:
        channelId - channel ID
        Returns:
        fluent API
      • getLabel

        public String getLabel()
        Label of the type/instance
        Returns:
        label
      • setLabel

        public TypePermissions setLabel​(String label)
        Set label
        Parameters:
        label - label
        Returns:
        fluent API
      • getDescription

        public String getDescription()
        Description
        Returns:
        description
      • setDescription

        public TypePermissions setDescription​(String description)
        Set description
        Parameters:
        description - description
        Returns:
        fluent API
      • getPerms

        public List<TypePermissionItem> getPerms()
        List of permissions available for the type
        Returns:
        permission list
      • getRoles

        public List<RoleItem> getRoles()
        List of available roles
        Returns:
        list of roles
      • isChildren

        public boolean isChildren()
        True if the type/instance has children
        Returns:
        flag
      • setChildren

        public TypePermissions setChildren​(boolean children)
        Set child flag
        Parameters:
        children - flag
        Returns:
        fluent API
      • isEditable

        public boolean isEditable()
        True if the permissions can be changed by the current user
        Returns:
        editable flag
      • setEditable

        public TypePermissions setEditable​(boolean editable)
        Set editable flag
        Parameters:
        editable - flag
        Returns:
        fluent API