Class ExportEventProcessor
java.lang.Object
org.dspace.statistics.export.processor.ExportEventProcessor
- Direct Known Subclasses:
BitstreamEventProcessor,ItemEventProcessor
Abstract export event processor that contains all shared logic to handle both Items and Bitstreams
from the IrusExportUsageEventListener
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetBaseParameters(Item item) Get the base parameters for the url to be transmittedprotected StringGet the current dateabstract voidProcesses the eventprotected voidprocessObject(String urlParameters) Process the url obtained from the object to be transmittedprotected booleanshouldProcessEntityType(Item item) Checks if the item's entity type should be processed When no entity type is present, the check will not be performed and true will be returned.protected booleanshouldProcessItem(Item item) Checks if an item should be processedprotected booleanshouldProcessItemType(Item item) Checks if the item should be excluded based on the its type
-
Field Details
-
ENTITY_TYPE_DEFAULT
- See Also:
-
ITEM_VIEW
- See Also:
-
BITSTREAM_DOWNLOAD
- See Also:
-
UTF_8
-
-
Method Details
-
processEvent
Processes the event- Throws:
SQLExceptionIOException
-
processObject
Process the url obtained from the object to be transmitted- Parameters:
urlParameters-- Throws:
IOExceptionSQLException
-
getBaseParameters
Get the base parameters for the url to be transmitted- Parameters:
item-- Returns:
- the parameter string to be used in the url
- Throws:
UnsupportedEncodingException
-
getCurrentDateString
Get the current date- Returns:
- the current date as a string
-
shouldProcessItem
Checks if an item should be processed- Parameters:
item- to be checked- Returns:
- whether the item should be processed
- Throws:
SQLException
-
shouldProcessEntityType
Checks if the item's entity type should be processed When no entity type is present, the check will not be performed and true will be returned.- Parameters:
item- to be checked- Returns:
- whether the item should be processed
- Throws:
SQLException
-
shouldProcessItemType
Checks if the item should be excluded based on the its type- Parameters:
item- to be checked- Returns:
- whether the item should be processed
-