public static class CheckUserPrivileges.Candidate
extends java.lang.Object
| Constructor and Description |
|---|
CheckUserPrivileges.Candidate(UC4UserName name,
UserPrivileges.Privilege priv)
Creates a new
Candidate. |
| Modifier and Type | Method and 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() |
public CheckUserPrivileges.Candidate(UC4UserName name, UserPrivileges.Privilege priv)
Candidate.name - Name of the UC4 userpriv - Privilege which should be checkedpublic UC4UserName getUser()
public UserPrivileges.Privilege getPrivilege()
public boolean getResult()
true if the user holds the specified privilege, false if not.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object