T
- public interface OperationExtension<T>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ORDER |
static String |
PROP_EXTENSION_ORDER |
Modifier and Type | Method and Description |
---|---|
void |
afterAction(Operation operation,
Session session,
T component,
Map<String,Object> requestParameters)
Callback method after the operation is performed.
|
void |
beforeAction(Operation operation,
Session session,
Resource resource,
Map<String,Object> requestParameters)
Callback method before the operation is performed; the extension can abort the operation by throw an
OperationException with appropriate HTTP error code. |
String |
getName() |
List<? extends Operation> |
getOperationsToHookInto() |
int |
getOrder() |
static final int DEFAULT_ORDER
static final String PROP_EXTENSION_ORDER
int getOrder()
String getName()
List<? extends Operation> getOperationsToHookInto()
void beforeAction(Operation operation, Session session, Resource resource, Map<String,Object> requestParameters) throws OperationException
OperationException
with appropriate HTTP error code.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, Map<String,Object> requestParameters) throws OperationException
the
- 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 © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"