public class DoLockoutManagerOperation extends AbstractProfileAction
AccountLockoutManager interface.
The API supports GET, POST, and DELETE at the moment, using jsonapi.org conventions.
| Modifier and Type | Field and Description |
|---|---|
private String |
key
Account key to operate on.
|
static String |
KEY
Flow variable indicating ID of account key.
|
private AccountLockoutManager |
lockoutManager
AccountLockoutManager to operate on. |
private org.slf4j.Logger |
log
Class logger.
|
static String |
MANAGER_ID
Flow variable indicating ID of manager bean to access.
|
private String |
managerId
Manager ID to operate on.
|
private com.fasterxml.jackson.databind.ObjectMapper |
objectMapper
JSON object mapper.
|
| Constructor and Description |
|---|
DoLockoutManagerOperation() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
private AccountLockoutManager |
getLockoutManager(org.springframework.webflow.execution.RequestContext requestContext)
Helper method to get the manager bean to operate on.
|
private void |
sendError(int status,
String title,
String detail)
Output an error object.
|
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
Set the JSON
ObjectMapper to use for serialization. |
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull @NotEmpty public static final String MANAGER_ID
@Nonnull @NotEmpty public static final String KEY
@Nonnull private org.slf4j.Logger log
@NonnullAfterInit private com.fasterxml.jackson.databind.ObjectMapper objectMapper
@Nullable private AccountLockoutManager lockoutManager
AccountLockoutManager to operate on.public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper)
ObjectMapper to use for serialization.mapper - object mapperprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionprotected boolean doPreExecute(ProfileRequestContext profileRequestContext)
doPreExecute in class AbstractConditionalProfileActionprotected void doExecute(ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileAction@Nullable private AccountLockoutManager getLockoutManager(@Nonnull org.springframework.webflow.execution.RequestContext requestContext)
requestContext - current SWF request contextprivate void sendError(int status,
@Nonnull@NotEmpty
String title,
@Nonnull@NotEmpty
String detail)
throws IOException
status - HTTP statustitle - fixed error descriptiondetail - human-readable error descriptionIOException - if unable to output the errorCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.