T
- operationTypepublic interface OperationExtension<T>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ORDER |
static java.lang.String |
PROP_EXTENSION_ORDER |
Modifier and Type | Method and Description |
---|---|
void |
afterAction(Operation operation,
Session session,
T component,
java.util.Map<java.lang.String,java.lang.Object> requestParameters)
Callback method after the operation is performed.
|
void |
beforeAction(Operation operation,
Session session,
Resource resource,
java.util.Map<java.lang.String,java.lang.Object> requestParameters)
Callback method before the operation is performed; the extension can abort the operation by throw an
OperationException with appropriate HTTP error code. |
java.lang.String |
getName() |
java.util.List<? extends Operation> |
getOperationsToHookInto() |
int |
getOrder() |
static final int DEFAULT_ORDER
static final java.lang.String PROP_EXTENSION_ORDER
int getOrder()
java.lang.String getName()
java.util.List<? extends Operation> getOperationsToHookInto()
void beforeAction(Operation operation, Session session, Resource resource, java.util.Map<java.lang.String,java.lang.Object> requestParameters) throws OperationException
OperationException
with appropriate HTTP error code.operation
- the requested Operation
.session
- the session used by the operation.resource
- the resource on which the operation is being performed. The Session
of this resource
belongs to the original request.requestParameters
- the parameters that have been passed as part of the request to perform the operation.OperationException
- thrown if any one of the operations extensions throws an exception. This aborts the
operations.void afterAction(Operation operation, Session session, T component, java.util.Map<java.lang.String,java.lang.Object> requestParameters) throws OperationException
operation
- requested Operation
.session
- the session that is being used to perform the operation.component
- the resource on which the operation is being performed. The Session
of this resource
belongs to the original request.requestParameters
- the parameters that have been passed as part of the request to perform the operation.OperationException
- thrown if any one of the operations extensions throws an exception."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"