Audit changes and fixes

- Removed notion of audit session
 - Removed 'scope' attribute for DataGenerator elements
 - Removed alf_audit_session table and replaced with alf_audit_app (see script)
 - DataGenerators are working properly


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16053 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2009-09-02 14:45:23 +00:00
parent 381d7730c5
commit 2cdc1777f9
30 changed files with 448 additions and 515 deletions

View File

@@ -75,22 +75,22 @@ public interface AuditDAO
Pair<Long, ContentData> getOrCreateAuditModel(URL url);
/**
* Creates a new audit session entry - there is no session re-use.
* Creates a new audit application or finds an existing one
*
* @param modelId an existing audit model ID
* @param application the name of the application
* @return Returns the unique session ID
* @param modelId the ID of the model configuration
* @param applicationName the name of the application
* @return Returns the ID of the application entry
*/
Long createAuditSession(Long modelId, String application);
Long getOrCreateAuditApplication(Long modelId, String applicationName);
/**
* Create a new audit entry with the given map of values.
*
* @param sessionId an existing audit session ID
* @param applicationId an existing audit application ID
* @param time the time (ms since epoch) to log the entry against
* @param username the authenticated user (<tt>null</tt> if not present)
* @param values the values to record
* @return Returns the unique entry ID
*/
Long createAuditEntry(Long sessionId, long time, String username, Map<String, Serializable> values);
}
Long createAuditEntry(Long applicationId, long time, String username, Map<String, Serializable> values);
}