Class BasePermissionsNode

    • Constructor Detail

      • BasePermissionsNode

        public BasePermissionsNode()
    • Method Detail

      • getPermissions

        public java.util.List<java.lang.String> getPermissions()
        Specified by:
        getPermissions in interface TemplatePermissions
        Returns:
        List of permissions applied to this Node, including inherited. Strings returned are of the format [ALLOWED|DENIED];[USERNAME|GROUPNAME];PERMISSION for example ALLOWED;kevinr;Consumer so can be easily tokenized on the ';' character.
      • getDirectPermissions

        public java.util.List<java.lang.String> getDirectPermissions()
        Returns:
        List of permissions applied to this Node (does not include inherited). Strings returned are of the format [ALLOWED|DENIED];[USERNAME|GROUPNAME];PERMISSION for example ALLOWED;kevinr;Consumer so can be easily tokenized on the ';' character.
      • getFullPermissions

        public java.util.List<java.lang.String> getFullPermissions()
        Returns:
        List of permissions applied to this Node, including inherited. Strings returned are of the format [ALLOWED|DENIED];[USERNAME|GROUPNAME];PERMISSION;[INHERITED|DIRECT] for example ALLOWED;kevinr;Consumer so can be easily tokenized on the ';' character.
      • getInheritsPermissions

        public boolean getInheritsPermissions()
        Specified by:
        getInheritsPermissions in interface TemplatePermissions
        Returns:
        true if this node inherits permissions from its parent node, false otherwise.
      • hasPermission

        public boolean hasPermission​(java.lang.String permission)
        Specified by:
        hasPermission in interface TemplatePermissions
        Parameters:
        permission - Permission name to test
        Returns:
        true if the current user is granted the specified permission on the node