public interface AuditDAO
The older methods are supported by a different implementation and will eventually be deprecated and phased out.
Modifier and Type | Interface and Description |
---|---|
static class |
AuditDAO.AuditApplicationInfo
Information about the audit application to be passed in an out of the interface.
|
Modifier and Type | Method and Description |
---|---|
AuditDAO.AuditApplicationInfo |
createAuditApplication(String application,
Long modelId)
Creates a new audit application.
|
Long |
createAuditEntry(Long applicationId,
long time,
String username,
Map<String,Serializable> values)
Create a new audit entry with the given map of values.
|
int |
deleteAuditEntries(List<Long> auditEntryIds)
Delete a discrete list of audit entries.
|
int |
deleteAuditEntries(Long applicationId,
Long from,
Long to)
Delete audit entries for the application, possibly limiting the time range.
|
void |
findAuditEntries(AuditService.AuditQueryCallback callback,
AuditQueryParameters parameters,
int maxResults)
Find audit entries using the given parameters, any of which may be null
|
AuditDAO.AuditApplicationInfo |
getAuditApplication(String applicationName)
Get the audit application details.
|
org.alfresco.util.Pair<Long,org.alfresco.service.cmr.repository.ContentData> |
getOrCreateAuditModel(URL url)
Creates a new audit model entry or finds an existing one
|
void |
updateAuditApplicationDisabledPaths(Long id,
Set<String> disabledPaths)
Update the audit application to hold a new set of disabled paths.
|
void |
updateAuditApplicationModel(Long id,
Long modelId)
Update the audit application to refer to a new model.
|
org.alfresco.util.Pair<Long,org.alfresco.service.cmr.repository.ContentData> getOrCreateAuditModel(URL url)
url
- the URL of the configurationAuditDAO.AuditApplicationInfo getAuditApplication(String applicationName)
applicationName
- the name of the applicationAuditDAO.AuditApplicationInfo createAuditApplication(String application, Long modelId)
application
- the name of the applicationmodelId
- the ID of the model configurationvoid updateAuditApplicationModel(Long id, Long modelId)
id
- the ID of the audit applicationmodelId
- the ID of the new modelvoid updateAuditApplicationDisabledPaths(Long id, Set<String> disabledPaths)
id
- the ID of the audit applicationdisabledPaths
- the new disabled pathsint deleteAuditEntries(Long applicationId, Long from, Long to)
applicationId
- and existing audit application IDfrom
- the minimum entry time (inclusive, optional)to
- the maximum entry time (exclusive, optional)int deleteAuditEntries(List<Long> auditEntryIds)
auditEntryIds
- the IDs of all audit entries to deleteLong createAuditEntry(Long applicationId, long time, String username, Map<String,Serializable> values)
applicationId
- an existing audit application IDtime
- the time (ms since epoch) to log the entry againstusername
- the authenticated user (null if not present)values
- the values to recordvoid findAuditEntries(AuditService.AuditQueryCallback callback, AuditQueryParameters parameters, int maxResults)
callback
- the data callback per entryparameters
- the parameters for the query (may not be null)maxResults
- the maximum number of results to retrieve (must be greater than 0)IllegalArgumentException
- if maxResults less or equal to zeroCopyright © 2005–2017 Alfresco Software. All rights reserved.