public class UserReference extends Profile
Profile.forUser(String)
ADMINISTRATOR, EVERYONE, OWNER, READ_ONLY
Modifier and Type | Method and Description |
---|---|
Iterator<ServiceKey> |
getPrivileges()
Returns an iterator over
ServiceKey s representing the user's privileges. |
String |
getUserId()
Returns the identifier of the user (usually the login).
|
boolean |
isPrivilegeGranted(ServiceKey aServiceKey)
Returns
true if this reference has been granted the privilege
to execute the specified service. |
equals, forBuiltInRole, format, forSpecificRole, forUser, forUserWithSpecificPrivilege, forUserWithSpecificPrivileges, getLabel, hashCode, isBuiltIn, isBuiltInAdministrator, isBuiltInEveryone, isBuiltInOwner, isBuiltInReadOnly, isSpecificRole, isUserReference, parse, toString
public String getUserId()
Profile.forUser(String)
public boolean isPrivilegeGranted(ServiceKey aServiceKey)
true
if this reference has been granted the privilege
to execute the specified service.public Iterator<ServiceKey> getPrivileges()
ServiceKey
s representing the user's privileges.
Returns null
if no privileges have been given.
ServiceKey