Class ItemEventProcessor
- java.lang.Object
-
- org.dspace.statistics.export.processor.ExportEventProcessor
-
- org.dspace.statistics.export.processor.ItemEventProcessor
-
public class ItemEventProcessor extends ExportEventProcessor
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
Constructors Constructor Description ItemEventProcessor(Context context, javax.servlet.http.HttpServletRequest request, Item item)Creates a new ItemEventProcessor that will set the params
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringaddObjectSpecificData(String string, Item item)Adds additional item data to the urlvoidprocessEvent()Process the event Check if the item should be processed Create the url to be transmitted based on item data-
Methods inherited from class org.dspace.statistics.export.processor.ExportEventProcessor
getBaseParameters, getCurrentDateString, processObject, shouldProcessEntityType, shouldProcessItem, shouldProcessItemType
-
-
-
-
Method Detail
-
processEvent
public void processEvent() throws SQLException, IOExceptionProcess 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
-
-