org.apache.archiva.audit
Interface AuditManager

All Known Implementing Classes:
DefaultAuditManager

public interface AuditManager


Method Summary
 void addAuditEvent(MetadataRepository repository, AuditEvent event)
           
 void deleteAuditEvents(MetadataRepository metadataRepository, String repositoryId)
           
 List<AuditEvent> getAuditEventsInRange(MetadataRepository metadataRepository, Collection<String> repositoryIds, Date startTime, Date endTime)
          Get all audit events from the given repositories that match a certain range
 List<AuditEvent> getAuditEventsInRange(MetadataRepository metadataRepository, Collection<String> repositoryIds, String resourcePattern, Date startTime, Date endTime)
          Get all audit events from the given repositories that match a certain range and resource pattern
 List<AuditEvent> getMostRecentAuditEvents(MetadataRepository metadataRepository, List<String> repositoryIds)
           
 

Method Detail

getMostRecentAuditEvents

List<AuditEvent> getMostRecentAuditEvents(MetadataRepository metadataRepository,
                                          List<String> repositoryIds)
                                          throws MetadataRepositoryException
Throws:
MetadataRepositoryException

addAuditEvent

void addAuditEvent(MetadataRepository repository,
                   AuditEvent event)
                   throws MetadataRepositoryException
Throws:
MetadataRepositoryException

deleteAuditEvents

void deleteAuditEvents(MetadataRepository metadataRepository,
                       String repositoryId)
                       throws MetadataRepositoryException
Throws:
MetadataRepositoryException

getAuditEventsInRange

List<AuditEvent> getAuditEventsInRange(MetadataRepository metadataRepository,
                                       Collection<String> repositoryIds,
                                       Date startTime,
                                       Date endTime)
                                       throws MetadataRepositoryException
Get all audit events from the given repositories that match a certain range

Parameters:
metadataRepository -
repositoryIds - the repositories to retrieve events for
startTime - find events only after this time
endTime - find events only before this time
Returns:
the list of events found
Throws:
MetadataRepositoryException

getAuditEventsInRange

List<AuditEvent> getAuditEventsInRange(MetadataRepository metadataRepository,
                                       Collection<String> repositoryIds,
                                       String resourcePattern,
                                       Date startTime,
                                       Date endTime)
                                       throws MetadataRepositoryException
Get all audit events from the given repositories that match a certain range and resource pattern

Parameters:
metadataRepository -
repositoryIds - the repositories to retrieve events for
resourcePattern - find all events whose resources start with this string
startTime - find events only after this time
endTime - find events only before this time
Returns:
the list of events found
Throws:
MetadataRepositoryException


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.