public interface AuditWriterApi
The AuditWriterApi allows for the creation of audit information about the processing of documents. Clients can then
access this information via the AuditReaderApi
. These interfaces work with the same data but are separated to
allow for differing security and implementation.
This is an early-access version of the API. Interfaces and classes are subject to change. Change list:
$Revision$
Modifier and Type | Method and Description |
---|---|
long |
audit(AuditDetail audit)
Writes the audit information to the store.
|
long |
audit(List<AuditDetail> audit)
Writes a batch of audit information to the store.
|
void |
clientHeartbeat(UUID clientId)
Updates the audit information to show that the client is still active so that the client will continue to be returned by
AuditReaderApi.getActiveClients() . |
void |
clientName(UUID clientId,
String name)
Sets a name to be associated with the client.
|
void |
makeInactive(UUID clientId)
Marks the clientId as inactive.
|
void |
purge(Date start,
Date end)
Purges all audit data within the time range.
|
void |
purge(UUID clientId)
Purges all audit data associated with the client ID.
|
int |
purgeInactiveClients(long lastInactiveTimeToKeep)
Purges the audit data for all clients that are inactive and went inactive before
lastInactiveTimeToKeep |
long audit(AuditDetail audit) throws AttivioException
AuditReaderApi.getActiveClients()
.audit
- AttivioException
- if the audit information could not be storedlong audit(List<AuditDetail> audit) throws AttivioException
AuditReaderApi.getActiveClients()
. Note, that if an exception is encountered while
storing the audit information, the rest of the list will still be attempted to be stored. All exceptions encountered while
persisting the list are returned with any exception after the first added as suppressed exceptions of the first.audit
- AttivioException
- if the audit information could not be storedvoid makeInactive(UUID clientId) throws AttivioException
AuditReaderApi.getActiveClients()
.clientId
- AttivioException
void clientHeartbeat(UUID clientId) throws AttivioException
AuditReaderApi.getActiveClients()
.clientId
- AttivioException
void clientName(UUID clientId, String name) throws AttivioException
AuditReaderApi.getSummary(UUID)
is
guaranteed to return a non-null
value with clientName and lastActionTime having the value of the set time.clientId
- name
- AttivioException
void purge(UUID clientId) throws AttivioException
clientId
- restricts results to clientId, null
not allowed.AttivioException
int purgeInactiveClients(long lastInactiveTimeToKeep) throws AttivioException
lastInactiveTimeToKeep
lastInactiveTimeToKeep
- AttivioException
void purge(Date start, Date end) throws AttivioException
start
and end
are both null
, deletes all records and summary records. Otherwise, summary records
are retained. If deleting individual summary records is required, use purge(UUID)
insteadstart
- the inclusive start date.end
- the exclusive end date.AttivioException
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.