Modifier and Type | Field and Description |
---|---|
static String |
EMAIL |
static String |
FIRST_NAME |
static String |
LAST_NAME |
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.sap.security.um.user.User |
getDelegate() |
com.google.common.base.Optional<Locale> |
getLocale() |
String |
getName() |
String |
getUserName() |
boolean |
hasAuthorization(Authorization authorization)
Checks whether the user has the given authorization.
|
int |
hashCode() |
String |
toString() |
public static final String FIRST_NAME
public static final String LAST_NAME
public static final String EMAIL
public String getName()
public com.google.common.base.Optional<Locale> getLocale()
public boolean hasAuthorization(@NonNull 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(@NonNull String name)
User
Optional
.getAttribute
in interface User
name
- The name of the attribute to get.@NonNull public String getUserName()
@NonNull public com.sap.security.um.user.User getDelegate()
Copyright © 2018 SAP SE. All rights reserved.