Class NotSubject

  • All Implemented Interfaces:
    EntitlementSubject

    public class NotSubject
    extends LogicalSubject
    This class wrapped on an Entitlement Subject object to provide boolean NOT. Membership of NotSubject is satisfied in the user is not a member of the nested EntitlementSubject. We @JsonIgnore getESubjects and setESubjects (NOTE the 's' on the end) so that we don't indicate via JSON schema exposed that we take multiple subject types. We extend LogicalSubject but ensure that we are only allowing a single EntitlementSubject to be referenced by this class.
    • Constructor Detail

      • NotSubject

        public NotSubject()
        Constructs NotSubject
      • NotSubject

        public NotSubject​(EntitlementSubject eSubject)
        Constructs NotSubject
        Parameters:
        eSubject - nested EntitlementSubject
      • NotSubject

        public NotSubject​(EntitlementSubject eSubject,
                          String pSubjectName)
        Constructs NotSubject
        Parameters:
        eSubject - eSubject nested EntitlementSubject
        pSubjectName - subject name as used in OpenAM policy, this is relevant only when NotrESubject was created from OpenAM policy Subject