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.ObjectStores 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 booleanequals(java.lang.Object obj)UserPrivileges.PrivilegegetPrivilege()Returns the privilege to check.booleangetResult()Returns the result of the check.UC4UserNamegetUser()Returns the name of the user.inthashCode()java.lang.StringtoString()
-
-
-
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:
trueif the user holds the specified privilege,falseif not.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-