public class DoStorageOperation
extends net.shibboleth.idp.profile.AbstractProfileAction
StorageService records.
The API supports GET and DELETE at the moment, using jsonapi.org conventions.
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, EventIds.IO_ERROR| Modifier and Type | Field and Description |
|---|---|
private String |
context
Storage context to operate on.
|
static String |
CONTEXT
Flow variable indicating ID of storage context.
|
private String |
key
Storage key to operate on.
|
static String |
KEY
Flow variable indicating ID of storage key.
|
private Logger |
log
Class logger.
|
private com.fasterxml.jackson.databind.ObjectMapper |
objectMapper
JSON object mapper.
|
static String |
SERVICE_ID
Flow variable indicating ID of storage service bean to reload.
|
private org.opensaml.storage.StorageService |
storageService
StorageService to operate on. |
| Constructor and Description |
|---|
DoStorageOperation() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
private org.opensaml.storage.StorageService |
getStorageService(RequestContext requestContext)
Helper method to get the storage service 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 SERVICE_ID
@Nonnull @NotEmpty public static final String CONTEXT
@Nonnull @NotEmpty public static final String KEY
@NonnullAfterInit private com.fasterxml.jackson.databind.ObjectMapper objectMapper
@Nullable private org.opensaml.storage.StorageService storageService
StorageService 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(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractConditionalProfileActionprotected void doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileAction@Nullable private org.opensaml.storage.StorageService getStorageService(@Nonnull 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–2016 Shibboleth Consortium. All rights reserved.