Interface TurbineRole

    • Method Detail

      • getPermissions

        PermissionSet getPermissions()
        Get the permission that are part of this role
        Returns:
        a set of permissions
      • getPermissionsAsSet

        <T extends PermissionSet<T> getPermissionsAsSet()
        Get the permission that are part of this role as Set
        Returns:
        a set of permissions
      • setPermissions

        void setPermissions​(PermissionSet permissionSet)
        Set the permission that are part of this role
        Parameters:
        permissionSet - a set of permissions
      • setPermissionsAsSet

        <T extends Permission> void setPermissionsAsSet​(Set<T> permissions)
        Set the permission that are part of this role as Set
        Type Parameters:
        T - Permission
        Parameters:
        permissions - a set of permissions
      • addPermission

        void addPermission​(Permission permission)
        This method should only be used by a RoleManager. Not directly.
        Parameters:
        permission - perm to add
      • removePermission

        void removePermission​(Permission permission)
        This method should only be used by a RoleManager. Not directly.
        Parameters:
        permission - perm to remove