Class CheckUserPrivileges.Candidate

java.lang.Object
com.uc4.communication.requests.CheckUserPrivileges.Candidate
Enclosing class:
CheckUserPrivileges

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

    • 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 Details

    • getUser

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

      public UserPrivileges.Privilege getPrivilege()
      Returns the privilege to check.
      Returns:
      Privilege
    • 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 Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object