|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bitrepository.audittrails.store.AuditTrailServiceDAO
public class AuditTrailServiceDAO
Audit trail storages backed by a database for preserving
Constructor Summary | |
---|---|
AuditTrailServiceDAO(DatabaseManager databaseManager)
Constructor. |
Method Summary | |
---|---|
void |
addAuditTrails(AuditTrailEvents newAuditTrails,
String collectionId)
ingest audit trails into the store. |
void |
close()
Closes the store. |
AuditEventIterator |
getAuditTrailsByIterator(String fileId,
String collectionID,
String contributorId,
Long minSeqNumber,
Long maxSeqNumber,
String actorName,
FileAction operation,
Date startDate,
Date endDate,
String fingerprint,
String operationID)
Obtain AuditEventIterator for extracting audit trails from the store. |
long |
getPreservationSequenceNumber(String contributorId,
String collectionId)
Retrieves the preservation sequence number for the given contributor, which tells how far the preservation of the audit trails has gotten. |
boolean |
havePreservationKey(String contributorID,
String collectionID)
Check to see if the database knows a contributor |
int |
largestSequenceNumber(String contributorId,
String collectionId)
Retrieves the largest sequence number for a given contributor. |
void |
setPreservationSequenceNumber(String contributorId,
String collectionId,
long seqNumber)
Set the preservation sequence number for the given contributor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuditTrailServiceDAO(DatabaseManager databaseManager)
databaseManager
- The database managerMethod Detail |
---|
public AuditEventIterator getAuditTrailsByIterator(String fileId, String collectionID, String contributorId, Long minSeqNumber, Long maxSeqNumber, String actorName, FileAction operation, Date startDate, Date endDate, String fingerprint, String operationID)
AuditTrailStore
getAuditTrailsByIterator
in interface AuditTrailStore
fileId
- [OPTIONAL] The id of the file for restricting the extraction.collectionID
- [OPTIONAL] The id of the collection from which to retrieve audit trails.contributorId
- [OPTIONAL] The id of the contributor for restricting the extraction.minSeqNumber
- [OPTIONAL] The minimum sequence number for restricting the extraction.maxSeqNumber
- [OPTIONAL] The maximum sequence number for restricting the extraction.actorName
- [OPTIONAL] The name of the actor for restricting the extraction.operation
- [OPTIONAL] The FileAction operation for restricting the extraction.startDate
- [OPTIONAL] The earliest date for the audits for restricting the extraction.endDate
- [OPTIONAL] The latest date for the audits for restricting the extraction.fingerprint
- [OPTIONAL] The fingerprint of the certificate for the auditsoperationID
- [OPTIONAL] The ID of the operation (conversationID) for the audits
public void addAuditTrails(AuditTrailEvents newAuditTrails, String collectionId)
AuditTrailStore
addAuditTrails
in interface AuditTrailStore
newAuditTrails
- The audit trails to be ingested into the store.collectionId
- The id of the collection, where the audit trail events belong.public int largestSequenceNumber(String contributorId, String collectionId)
AuditTrailStore
largestSequenceNumber
in interface AuditTrailStore
contributorId
- The id of the contributor to retrieve the largest sequence number from.collectionId
- The id of the collection for the sequence number of the contributor.
public long getPreservationSequenceNumber(String contributorId, String collectionId)
AuditTrailStore
getPreservationSequenceNumber
in interface AuditTrailStore
contributorId
- The id of the contributor.collectionId
- The id of the collection for the sequence number of the contributor.
public void setPreservationSequenceNumber(String contributorId, String collectionId, long seqNumber)
AuditTrailStore
setPreservationSequenceNumber
in interface AuditTrailStore
contributorId
- The id of the contributor.collectionId
- The id of the collection for the sequence number of the contributor.seqNumber
- The new preservation sequence number for the given contributor.public boolean havePreservationKey(String contributorID, String collectionID)
AuditTrailStore
havePreservationKey
in interface AuditTrailStore
contributorID
- The ID of the contributorcollectionID
- The ID of the collection;
public void close()
AuditTrailStore
close
in interface AuditTrailStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |