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(java.lang.String application,
java.lang.Long modelId)
Creates a new audit application.
|
java.lang.Long |
createAuditEntry(java.lang.Long applicationId,
long time,
java.lang.String username,
java.util.Map values)
Create a new audit entry with the given map of values.
|
int |
deleteAuditEntries(java.util.List auditEntryIds)
Delete a discrete list of audit entries.
|
int |
deleteAuditEntries(java.lang.Long applicationId,
java.lang.Long from,
java.lang.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(java.lang.String applicationName)
Get the audit application details.
|
org.alfresco.util.Pair |
getOrCreateAuditModel(java.net.URL url)
Creates a new audit model entry or finds an existing one
|
void |
updateAuditApplicationDisabledPaths(java.lang.Long id,
java.util.Set disabledPaths)
Update the audit application to hold a new set of disabled paths.
|
void |
updateAuditApplicationModel(java.lang.Long id,
java.lang.Long modelId)
Update the audit application to refer to a new model.
|
org.alfresco.util.Pair getOrCreateAuditModel(java.net.URL url)
the - URL of the configurationAuditDAO.AuditApplicationInfo getAuditApplication(java.lang.String applicationName)
applicationName - the name of the applicationAuditDAO.AuditApplicationInfo createAuditApplication(java.lang.String application, java.lang.Long modelId)
application - the name of the applicationmodelId - the ID of the model configurationvoid updateAuditApplicationModel(java.lang.Long id,
java.lang.Long modelId)
id - the ID of the audit applicationmodelId - the ID of the new modelvoid updateAuditApplicationDisabledPaths(java.lang.Long id,
java.util.Set disabledPaths)
id - the ID of the audit applicationdisabledPaths - the new disabled pathsint deleteAuditEntries(java.lang.Long applicationId,
java.lang.Long from,
java.lang.Long to)
applicationId - and existing audit application IDfrom - the minimum entry time (inclusive, optional)to - the maximum entry time (exclusive, optional)int deleteAuditEntries(java.util.List auditEntryIds)
auditEntryIds - the IDs of all audit entries to deletejava.lang.Long createAuditEntry(java.lang.Long applicationId,
long time,
java.lang.String username,
java.util.Map 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 retrieveCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.