Package com.uc4.communication.requests
Class CheckUserPrivileges.Candidate
java.lang.Object
com.uc4.communication.requests.CheckUserPrivileges.Candidate
- Enclosing class:
- CheckUserPrivileges
Stores the name of the user, a privilege to check and the result of the check after the request has been sent.
-
Constructor Summary
ConstructorsConstructorDescriptionCandidate
(UC4UserName name, UserPrivileges.Privilege priv) Creates a newCandidate
. -
Method Summary
-
Constructor Details
-
Candidate
Creates a newCandidate
.- Parameters:
name
- Name of the UC4 userpriv
- Privilege which should be checked
-
-
Method Details
-
getUser
Returns the name of the user.- Returns:
- User
-
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() -
equals
-
toString
-