Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.common.base.Optional<UserAttribute> |
getAttribute(String name)
Returns the attribute specified by the given name, wrapped in an
Optional . |
Set<Authorization> |
getAuthorizations()
A set containing all authorizations the user has.
|
com.google.common.base.Optional<Locale> |
getLocale() |
String |
getName() |
boolean |
hasAuthorization(Authorization authorization)
Checks whether the user has the given authorization.
|
int |
hashCode() |
String |
toString() |
public com.google.common.base.Optional<Locale> getLocale()
public boolean hasAuthorization(Authorization authorization)
User
hasAuthorization
in interface User
authorization
- The authorization the user should have.public Set<Authorization> getAuthorizations()
User
getAuthorizations
in interface User
public com.google.common.base.Optional<UserAttribute> getAttribute(String name)
User
Optional
.getAttribute
in interface User
name
- The name of the attribute to get.Copyright © 2018 SAP SE. All rights reserved.