mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Audit query extension: Search for audited data of any type
- Pulled out some of the query joins in favour of more cache hits git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16359 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -404,10 +404,14 @@ public abstract class AbstractAuditDAOImpl implements AuditDAO
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Resolve the application and username
|
||||
String auditAppName = (String) propertyValueDAO.getPropertyValueById(row.getAuditAppNameId()).getSecond();
|
||||
String auditUser = (String) propertyValueDAO.getPropertyValueById(row.getAuditUserId()).getSecond();
|
||||
|
||||
more = callback.handleAuditEntry(
|
||||
row.getAuditEntryId(),
|
||||
row.getAuditAppName(),
|
||||
row.getAuditUser(),
|
||||
auditAppName,
|
||||
auditUser,
|
||||
row.getAuditTime(),
|
||||
auditValues);
|
||||
}
|
||||
@@ -425,15 +429,15 @@ public abstract class AbstractAuditDAOImpl implements AuditDAO
|
||||
public void findAuditEntries(
|
||||
AuditQueryCallback callback,
|
||||
String applicationName, String user, Long from, Long to,
|
||||
String searchKey, String searchString,
|
||||
String searchKey, Serializable searchValue,
|
||||
int maxResults)
|
||||
{
|
||||
AuditQueryRowHandler rowHandler = new AuditQueryRowHandler(callback);
|
||||
findAuditEntries(rowHandler, applicationName, user, from, to, maxResults, searchKey, searchString);
|
||||
findAuditEntries(rowHandler, applicationName, user, from, to, maxResults, searchKey, searchValue);
|
||||
}
|
||||
|
||||
protected abstract void findAuditEntries(
|
||||
AuditQueryRowHandler rowHandler,
|
||||
String applicationName, String user, Long from, Long to, int maxResults,
|
||||
String searchKey, String searchString);
|
||||
String searchKey, Serializable searchValue);
|
||||
}
|
||||
|
Reference in New Issue
Block a user