Modifier and Type | Class and Description |
---|---|
class |
AbstractUser |
class |
ScpCfUser
Implementation of
User for SAP Cloud Platform Cloud Foundry. |
class |
ScpNeoUser
Implementation of
User for SAP Cloud Platform Neo. |
Modifier and Type | Method and Description |
---|---|
User |
UserFacade.getCurrentUser()
Returns the current
User . |
static User |
UserAccessor.getCurrentUser()
Returns the current
User . |
User |
AbstractUserFacade.getCurrentUser()
Returns the current
User . |
protected abstract User |
AbstractUserFacade.newMockedUser()
Instantiates a mocked
User . |
protected User |
ScpCfUserFacade.newMockedUser()
Instantiates a mocked
User . |
protected User |
ScpNeoUserFacade.newMockedUser()
Instantiates a mocked
User . |
Modifier and Type | Method and Description |
---|---|
Optional<User> |
UserFacade.getCurrentUserIfAuthenticated()
Returns the current
User , if authenticated. |
static Optional<User> |
UserAccessor.getCurrentUserIfAuthenticated()
Returns the current
User , if authenticated. |
Optional<User> |
AbstractUserFacade.getCurrentUserIfAuthenticated()
Returns the current
User , if authenticated. |
Optional<User> |
AbstractUserFacade.getMockedUser()
Returns a mocked
User , if the environment variable "USE_MOCKED_USER" is set to "true". |
protected Optional<User> |
ScpCfUserFacade.getMockedUserAsFallback()
Returns a mocked
User as fallback, if the environment variable "ALLOW_MOCKED_AUTH_HEADER" is set to
"true". |
Optional<User> |
UserFacade.getUserByName(String name)
Returns a
User by its name, if it exists. |
static Optional<User> |
UserAccessor.getUserByName(String name)
Returns a
User by its name, if it exists. |
Optional<User> |
ScpCfUserFacade.getUserByName(String name)
Returns a
User by its name, if it exists. |
Optional<User> |
ScpNeoUserFacade.getUserByName(String name)
Returns a
User by its name, if it exists. |
Class<? extends User> |
UserFacade.getUserClass()
Returns the platform-specific implementation class of
User . |
Optional<User> |
UserFacade.resolveCurrentUser()
Resolves the current
User using the platform-specific lookup. |
Optional<User> |
ScpCfUserFacade.resolveCurrentUser()
Resolves the current
User using the platform-specific lookup. |
Optional<User> |
ScpNeoUserFacade.resolveCurrentUser()
Resolves the current
User using the platform-specific lookup. |
Modifier and Type | Method and Description |
---|---|
User |
UserNotInRoleException.getUser() |
Constructor and Description |
---|
UserNotInRoleException(User user,
Role role)
Creates the exception with an error message based on the given user and role.
|
UserNotInRoleException(User user,
Role role,
String message)
Creates the exception by delegating the message to the super constructor and storing the user and the rule.
|
UserNotInRoleException(User user,
Role role,
String message,
Throwable cause)
Creates the exception by delegating the message and the causing exception to the super constructor and storing
the user and the rule.
|
Modifier and Type | Field and Description |
---|---|
protected User |
AccessDeniedException.user |
Modifier and Type | Method and Description |
---|---|
User |
AccessDeniedException.getUser() |
Modifier and Type | Method and Description |
---|---|
static AccessDeniedException |
AccessDeniedException.raiseMissingAuthorizations(User user,
Iterable<? extends Authorization> missingAuthorizations) |
Constructor and Description |
---|
AccessDeniedException(User user,
Set<Authorization> missingAuthorizations) |
Modifier and Type | Method and Description |
---|---|
User |
MockUtil.mockCurrentUser()
Mocks the current
User with user name MockUtil.MOCKED_USER . |
User |
MockUtil.mockCurrentUser(String userName)
Mocks the current
User with the given name. |
User |
MockUtil.mockCurrentUser(String userName,
Locale locale,
Collection<Authorization> authorizations,
Map<String,UserAttribute> attributes)
Mocks the current
User . |
User |
MockUtil.mockUser(String userName)
Mocks a
User with the given name. |
User |
MockUtil.mockUser(String userName,
Locale locale,
Collection<Authorization> authorizations,
Map<String,UserAttribute> attributes)
Mocks a
User . |
Copyright © 2018 SAP SE. All rights reserved.