|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.workplace.wcm.api.extensions.operation.OperationMapper
public class OperationMapper
OperationMapper is provided in the API to be used in conjunction with OperationContext
from the OperationCheckPlugin
extension point.
It provides a convenient way to handle the different operation types.
Here is a simple example that attempts to process operations related to item creation:
OperationCheckResult checkOperation(OperationContext context) {
OperationCheckResult result = operationContext.map(new OperationMapper()
{
public OperationCheckPlugin map(CreateOperation createOperation)
{
return checkOperation(createOperation);
}
});
return result;
}
}
Constructor Summary | |
---|---|
OperationMapper()
|
Method Summary | |
---|---|
OperationCheckResult |
map(CreateOperationContext context)
Handle a create operation context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperationMapper()
Method Detail |
---|
public OperationCheckResult map(CreateOperationContext context)
context
- for the create item operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |