Class CheckUserPrivileges.Candidate

  • Enclosing class:
    CheckUserPrivileges

    public static class CheckUserPrivileges.Candidate
    extends java.lang.Object
    Stores the name of the user, a privilege to check and the result of the check after the request has been sent.
    • Constructor Detail

      • Candidate

        public Candidate​(UC4UserName name,
                         UserPrivileges.Privilege priv)
        Creates a new Candidate.
        Parameters:
        name - Name of the UC4 user
        priv - Privilege which should be checked
    • Method Detail

      • getUser

        public UC4UserName getUser()
        Returns the name of the user.
        Returns:
        User
      • getResult

        public boolean getResult()
        Returns the result of the check.
        Returns:
        true if the user holds the specified privilege, false if not.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object