Class ItemEventProcessor
java.lang.Object
org.dspace.statistics.export.processor.ExportEventProcessor
org.dspace.statistics.export.processor.ItemEventProcessor
Processor that handles Item events from the IrusExportUsageEventListener
-
Field Summary
Fields inherited from class org.dspace.statistics.export.processor.ExportEventProcessor
BITSTREAM_DOWNLOAD, ENTITY_TYPE_DEFAULT, ITEM_VIEW, UTF_8 -
Constructor Summary
ConstructorsConstructorDescriptionItemEventProcessor(Context context, jakarta.servlet.http.HttpServletRequest request, Item item) Creates a new ItemEventProcessor that will set the params -
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddObjectSpecificData(String string, Item item) Adds additional item data to the urlvoidProcess the event Check if the item should be processed Create the url to be transmitted based on item dataMethods inherited from class org.dspace.statistics.export.processor.ExportEventProcessor
getBaseParameters, getCurrentDateString, processObject, shouldProcessEntityType, shouldProcessItem, shouldProcessItemType
-
Constructor Details
-
Method Details
-
processEvent
Process the event Check if the item should be processed Create the url to be transmitted based on item data- Specified by:
processEventin classExportEventProcessor- Throws:
SQLExceptionIOException
-
addObjectSpecificData
protected String addObjectSpecificData(String string, Item item) throws UnsupportedEncodingException Adds additional item data to the url- Parameters:
string- to which the additional data needs to be addeditem-- Returns:
- the string with additional data
- Throws:
UnsupportedEncodingException
-