Interface SubjectGlobalPrivilegeGrant

    • Method Detail

      • isGrantable

        boolean isGrantable()
        Get the value for Grantable. (Whether this privilege is grantable to other subjects.)
        Returns:
        the field
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setGrantable

        void setGrantable​(boolean newGrantable)
        Set the value for Grantable. (Whether this privilege is grantable to other subjects.)
        Parameters:
        newGrantable - the new value for Grantable.
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getGrantedGlobalPrivilege

        GlobalPrivilege getGrantedGlobalPrivilege()
        Get the GrantedGlobalPrivilege.
        Returns:
        GrantedGlobalPrivilege
        Throws:
        com.redwood.scheduler.api.exception.ObjectDeletedException - If this method is called when the object has been marked for deletion.
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - If this method is called when the object has been removed from it's session.
      • setGrantedGlobalPrivilege

        void setGrantedGlobalPrivilege​(GlobalPrivilege newGrantedGlobalPrivilege)
        Set the value for GrantedGlobalPrivilege. This value is mandatory.
        Parameters:
        newGrantedGlobalPrivilege - is the object to set GrantedGlobalPrivilege to. Grant a global privilege to a subject. If this is null, then the object cannot be persisted.