public interface User
Modifier and Type | Method and Description |
---|---|
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.
|
Optional<Locale> |
getLocale() |
String |
getName() |
boolean |
hasAuthorization(Authorization authorization)
Checks whether the user has the given authorization.
|
boolean hasAuthorization(Authorization authorization)
authorization
- The authorization the user should have.@Nonnull Set<Authorization> getAuthorizations()
@Nonnull Optional<UserAttribute> getAttribute(String name)
Optional
.name
- The name of the attribute to get.Copyright © 2018 SAP SE. All rights reserved.