Interface SubjectRoleGrant

    • Method Detail

      • isGrantable

        @Deprecated
        boolean isGrantable()
        Deprecated.
        This attribute has been deprecated since it was never used.

        Get the value for Grantable. (Can the assignee subject grant the assigned subject to other assignee 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

        @Deprecated
        void setGrantable​(boolean newGrantable)
        Deprecated.
        This attribute has been deprecated since it was never used.

        Set the value for Grantable. (Can the assignee subject grant the assigned subject to other assignee 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.
      • getGrantedSubject

        Subject getGrantedSubject()
        Get the GrantedSubject.
        Returns:
        GrantedSubject
        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.
      • setGrantedSubject

        void setGrantedSubject​(Subject newGrantedSubject)
        Set the value for GrantedSubject. This value is mandatory.
        Parameters:
        newGrantedSubject - is the object to set GrantedSubject to. Which Subject was granted to the Grantee Subject. This Subject must have Grantable==true. If this is null, then the object cannot be persisted.