Package org.dspace.qaevent.dao
Interface QAEventsDAO
- All Superinterfaces:
GenericDAO<QAEventProcessed>
- All Known Implementing Classes:
QAEventsDAOImpl
DAO that handle processed QA Events.
- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
Method Summary
Modifier and TypeMethodDescriptionReturns all the stored QAEventProcessed entities.findByEPerson(Context context, EPerson ePerson) Returns the stored QAEventProcessed entities by eperson.findByItem(Context context, Item item) Returns the stored QAEventProcessed entities by item.booleanisEventStored(Context context, String checksum) Check if an event with the given checksum is already stored.searchByEventId(Context context, String eventId, Integer start, Integer size) Search a page of quality assurance broker events by notification ID.booleanstoreEvent(Context context, String checksum, EPerson eperson, Item item) Store an event related to the given checksum.
-
Method Details
-
findAll
Returns all the stored QAEventProcessed entities.- Parameters:
context- the DSpace context- Returns:
- the found entities
- Throws:
SQLException- if an SQL error occurs
-
findByItem
Returns the stored QAEventProcessed entities by item.- Parameters:
context- the DSpace contextitem- the item to search for- Returns:
- the found entities
- Throws:
SQLException- if an SQL error occurs
-
findByEPerson
Returns the stored QAEventProcessed entities by eperson.- Parameters:
context- the DSpace contextePerson- the ePerson to search for- Returns:
- the found entities
- Throws:
SQLException- if an SQL error occurs
-
searchByEventId
List<QAEventProcessed> searchByEventId(Context context, String eventId, Integer start, Integer size) throws SQLException Search a page of quality assurance broker events by notification ID.- Parameters:
context- the DSpace contexteventId- the event idstart- the start indexsize- the size to be applied- Returns:
- the processed events
- Throws:
SQLException- if an SQL error occurs
-
isEventStored
Check if an event with the given checksum is already stored.- Parameters:
context- the DSpace contextchecksum- the checksum to search for- Returns:
- true if the given checksum is related to an already stored event, false otherwise
- Throws:
SQLException- if an SQL error occurs
-
storeEvent
Store an event related to the given checksum.- Parameters:
context- the DSpace contextchecksum- the checksum of the event to be storeeperson- the eperson who handle the eventitem- the item related to the event- Returns:
- true if the creation is completed with success, false otherwise
-