Interface SubjectGrant

    • Method Detail

      • isExportable

        boolean isExportable()
        Get the value for Exportable. (Whether this grant is exportable or not.)
        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.
      • setExportable

        void setExportable​(boolean newExportable)
        Set the value for Exportable. (Whether this grant is exportable or not.)
        Parameters:
        newExportable - the new value for Exportable.
        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.
      • getGrantorSubject

        Subject getGrantorSubject()
        Get the GrantorSubject.
        Returns:
        GrantorSubject
        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.
      • getGranteeSubject

        Subject getGranteeSubject()
        Get the GranteeSubject.
        Returns:
        GranteeSubject
        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.
      • setGranteeSubject

        void setGranteeSubject​(Subject newGranteeSubject)
        Set the value for GranteeSubject. This value is mandatory.
        Parameters:
        newGranteeSubject - is the object to set GranteeSubject to. Which Subject was granted the Granted Subject. This Subject must have GrantToable==true. If this is null, then the object cannot be persisted.