public class InterMediaAnnotationHandler extends AuditEventHandlerAdapter
Modifier and Type | Field and Description |
---|---|
static String |
NODE_PROPERTY_NAME_ORACLE_HOME
Node property Name for the Oracle Home setting.
|
static String |
PROPERTY_NAME_ANNOTATOR_TRACELEVEL
Handler Property Name for the Annotator TraceLevel.
|
static String |
PROPERTY_NAME_CLASSMAP_VALUES
Handler property Name for the Class mappings.
|
static String |
PROPERTY_NAME_INDEXABLE_ATTRIBUTES
Handler property Name for the Indexable attributes.
|
static String |
PROPERTY_NAME_INTERMEDIAANNOTATOR_CLASSNAME
Handler property Name for name of the InterMediaAnnotator Class.
|
DEFAULT_BATCHSIZE
Constructor and Description |
---|
InterMediaAnnotationHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleAnnotationRequests(AuditEventHandlerContext context,
LibrarySession session)
Handle events by performing the requested operations.
|
void |
handleEventPosted(AuditEventHandlerContext context)
Called when at least one registered event is posted.
|
void |
handleInitialize(AuditEventHandlerContext context)
Initializes this handler.
|
void |
handleTimerExpired(AuditEventHandlerContext context)
Called when the timer for this AuditEventHandler expires.
|
protected void |
processEvent(AuditEventHandlerContext context,
LibrarySession session,
AuditEvent event)
Process an event.
|
deleteEvents, getAuditHandlerSpecification, getAuditSpecification, getHandlerProperty, handleDispose, processEvent, processEvents, processEvents, selectEvents, selectEvents, selectMaximumEventId, setHandlerProperty
public static final String PROPERTY_NAME_ANNOTATOR_TRACELEVEL
public static final String PROPERTY_NAME_INDEXABLE_ATTRIBUTES
public static final String PROPERTY_NAME_CLASSMAP_VALUES
public static final String PROPERTY_NAME_INTERMEDIAANNOTATOR_CLASSNAME
public static final String NODE_PROPERTY_NAME_ORACLE_HOME
public void handleInitialize(AuditEventHandlerContext context) throws Exception
AuditEventHandlerAdapter
Called immediately after construction.
handleInitialize
in interface AuditEventHandler
handleInitialize
in class AuditEventHandlerAdapter
context
- the AuditEventHandlerContext to use for processingException
- if the operation failspublic void handleEventPosted(AuditEventHandlerContext context) throws Exception
AuditEventHandlerAdapter
handleEventPosted
in interface AuditEventHandler
handleEventPosted
in class AuditEventHandlerAdapter
context
- the AuditEventHandlerContext to use for processingException
- if the operation failspublic void handleTimerExpired(AuditEventHandlerContext context) throws Exception
AuditEventHandlerAdapter
handleTimerExpired
in interface AuditEventHandler
handleTimerExpired
in class AuditEventHandlerAdapter
context
- the AuditEventHandlerContext to use for processingException
- if the operation failsprotected void handleAnnotationRequests(AuditEventHandlerContext context, LibrarySession session) throws IfsException
context
- the AuditEventHandlerContext to use for processingsession
- the session contextIfsException
- if the operation failsprotected void processEvent(AuditEventHandlerContext context, LibrarySession session, AuditEvent event)
Delete the event after processing.
context
- the AuditEventHandlerContext to use for processingsession
- the session contextevent
- the event to processCopyright © 2023. All rights reserved.