public class ScpNeoUser extends AbstractUser
User
for SAP Cloud Platform Neo.Modifier and Type | Field and Description |
---|---|
static String |
EMAIL |
static String |
FIRST_NAME |
static String |
LAST_NAME |
Constructor and Description |
---|
ScpNeoUser(com.sap.security.um.user.User delegate)
Creates a new
ScpNeoUser . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
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()
Delegate to the current
User . |
boolean |
hasAuthorization(Authorization authorization)
Checks whether the user has the given authorization.
|
int |
hashCode() |
String |
toString() |
getAttributes, getLocale, getName
public static final String FIRST_NAME
public static final String LAST_NAME
public static final String EMAIL
public ScpNeoUser(@Nonnull com.sap.security.um.user.User delegate)
ScpNeoUser
.delegate
- The user to delegate to.public boolean hasAuthorization(@Nonnull Authorization authorization)
hasAuthorization
in interface User
hasAuthorization
in class AbstractUser
authorization
- The authorization the user should have.@Nonnull public Set<Authorization> getAuthorizations()
getAuthorizations
in interface User
getAuthorizations
in class AbstractUser
@Nonnull public Optional<UserAttribute> getAttribute(@Nonnull String name)
Optional
.getAttribute
in interface User
getAttribute
in class AbstractUser
name
- The name of the attribute to get.public boolean equals(Object o)
equals
in class AbstractUser
protected boolean canEqual(Object other)
canEqual
in class AbstractUser
public int hashCode()
hashCode
in class AbstractUser
public String toString()
toString
in class AbstractUser
@Nonnull public com.sap.security.um.user.User getDelegate()
User
.Copyright © 2018 SAP SE. All rights reserved.