Package com.uc4.communication.requests
Class CheckUserPrivileges.Candidate
- java.lang.Object
-
- com.uc4.communication.requests.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 Summary
Constructors Constructor Description Candidate(UC4UserName name, UserPrivileges.Privilege priv)
Creates a newCandidate
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
UserPrivileges.Privilege
getPrivilege()
Returns the privilege to check.boolean
getResult()
Returns the result of the check.UC4UserName
getUser()
Returns the name of the user.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Candidate
public Candidate(UC4UserName name, UserPrivileges.Privilege priv)
Creates a newCandidate
.- Parameters:
name
- Name of the UC4 userpriv
- Privilege which should be checked
-
-
Method Detail
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-