public class ScpCfUser extends AbstractUser
User
for SAP Cloud Platform Cloud Foundry.Constructor and Description |
---|
ScpCfUser(String name,
Locale locale,
Set<Authorization> authorizations,
Map<String,UserAttribute> attributes)
Creates a new
ScpCfUser . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
boolean |
hasAuthorization(Authorization authorization)
Checks whether the user has the given authorization.
|
int |
hashCode() |
String |
toString() |
getAttribute, getAttributes, getAuthorizations, getLocale, getName
public ScpCfUser(@Nonnull String name, @Nullable Locale locale, @Nonnull Set<Authorization> authorizations, @Nonnull Map<String,UserAttribute> attributes)
ScpCfUser
.name
- The name of the user.locale
- The Locale
of the user.authorizations
- The authorizations of the user.attributes
- The attributes of the user.public boolean hasAuthorization(@Nonnull Authorization authorization)
hasAuthorization
in interface User
hasAuthorization
in class AbstractUser
authorization
- The authorization the user should have.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
Copyright © 2018 SAP SE. All rights reserved.