|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AuditDAO
DAO services for alf_audit_XXX tables.
The older methods are supported by a different implementation and will eventually be deprecated and phased out.
| Nested Class Summary | |
|---|---|
static class |
AuditDAO.AuditApplicationInfo
Information about the audit application to be passed in an out of the interface. |
| Method Summary | |
|---|---|
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.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. |
| Method Detail |
|---|
org.alfresco.util.Pair getOrCreateAuditModel(java.net.URL url)
the - URL of the configuration
AuditDAO.AuditApplicationInfo getAuditApplication(java.lang.String applicationName)
applicationName - the name of the application
AuditDAO.AuditApplicationInfo createAuditApplication(java.lang.String application,
java.lang.Long modelId)
application - the name of the applicationmodelId - the ID of the model configuration
void updateAuditApplicationModel(java.lang.Long id,
java.lang.Long modelId)
id - the ID of the audit applicationmodelId - the ID of the new model
void updateAuditApplicationDisabledPaths(java.lang.Long id,
java.util.Set disabledPaths)
id - the ID of the audit applicationdisabledPaths - the new disabled paths
int 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)
java.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 record
void 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||