@Service(value="auditManager#default") public class DefaultAuditManager extends Object implements AuditManager
| Constructor and Description |
|---|
DefaultAuditManager() |
| Modifier and Type | Method and Description |
|---|---|
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 resource,
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) |
RepositorySessionFactory |
getRepositorySessionFactory() |
void |
setRepositorySessionFactory(RepositorySessionFactory repositorySessionFactory) |
public DefaultAuditManager()
public List<AuditEvent> getMostRecentAuditEvents(MetadataRepository metadataRepository, List<String> repositoryIds) throws MetadataRepositoryException
getMostRecentAuditEvents in interface AuditManagerMetadataRepositoryExceptionpublic void addAuditEvent(MetadataRepository repository, AuditEvent event) throws MetadataRepositoryException
addAuditEvent in interface AuditManagerMetadataRepositoryExceptionpublic void deleteAuditEvents(MetadataRepository metadataRepository, String repositoryId) throws MetadataRepositoryException
deleteAuditEvents in interface AuditManagerMetadataRepositoryExceptionpublic List<AuditEvent> getAuditEventsInRange(MetadataRepository metadataRepository, Collection<String> repositoryIds, Date startTime, Date endTime) throws MetadataRepositoryException
AuditManagergetAuditEventsInRange in interface AuditManagerrepositoryIds - the repositories to retrieve events forstartTime - find events only after this timeendTime - find events only before this timeMetadataRepositoryExceptionpublic List<AuditEvent> getAuditEventsInRange(MetadataRepository metadataRepository, Collection<String> repositoryIds, String resource, Date startTime, Date endTime) throws MetadataRepositoryException
AuditManagergetAuditEventsInRange in interface AuditManagerrepositoryIds - the repositories to retrieve events forresource - find all events whose resources start with this stringstartTime - find events only after this timeendTime - find events only before this timeMetadataRepositoryExceptionpublic RepositorySessionFactory getRepositorySessionFactory()
public void setRepositorySessionFactory(RepositorySessionFactory repositorySessionFactory)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.