public class OperationActionAdapter extends Object implements OperationAction
Constructor and Description |
---|
OperationActionAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
eventPosted(OperationActionSpecification oas,
AuditEvent event,
LibraryObject target)
Receive notification that an event is being posted.
|
void |
initialize(OperationActionSpecification oas)
Initialize this instance.
|
protected Object |
lookupEventType(String typeKey)
Gets the info for a specified event type key, if that type was previously
registered.
|
protected void |
registerEventType(String typeKey,
Object info)
Register an event type.
|
public void initialize(OperationActionSpecification oas) throws IfsException
Called immediately after construction (via the default constructor) and used so that the implementation can initialize session-independent state. This instance may be subsequently used concurrently by multiple threads.
initialize
in interface OperationAction
oas
- the referencing OperationActionSpecificationIfsException
- if the operation failspublic void eventPosted(OperationActionSpecification oas, AuditEvent event, LibraryObject target) throws IfsException
Called with the OperationActionSpecification context of this action, along with the event being posted and the target object.
eventPosted
in interface OperationAction
oas
- the referencing OperationActionSpecificationevent
- the event being postedtarget
- the target objectIfsException
- if the operation failsprotected void registerEventType(String typeKey, Object info)
typeKey
- the AuditEvent Operation type keyinfo
- information associated with the typeIfsException
- if operation failsCopyright © 2023. All rights reserved.