Added audit entry ID (from and to) as search parameters (requ. for CMIS)

- This change will be needed when fixing ETHREEOH-3487: Searching on Events does not restrict the audit result.
 - Moved parameters from method arguments into AuditQueryParameters
 - Deprecated old auditQuery APIs and fixed up Alfresco usage


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17714 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2009-12-04 09:06:46 +00:00
parent 48df5a03ac
commit 8e08b13852
13 changed files with 390 additions and 164 deletions

View File

@@ -37,6 +37,8 @@ public class AuditQueryParameters
private boolean forward;
private Long auditAppNameId;
private Long auditUserId;
private Long auditFromId;
private Long auditToId;
private Long auditFromTime;
private Long auditToTime;
private Long searchKeyId;
@@ -54,6 +56,8 @@ public class AuditQueryParameters
.append("[ forward=").append(forward)
.append(", auditAppNameId=").append(auditAppNameId)
.append(", auditUserId=").append(auditUserId)
.append(", auditFromId=").append(auditFromId == null ? null : auditFromId)
.append(", auditToId=").append(auditToId == null ? null : auditToId)
.append(", auditFromTime=").append(auditFromTime == null ? null : new Date(auditFromTime))
.append(", auditToTime=").append(auditToTime == null ? null : new Date(auditToTime))
.append(", searchKeyId=").append(searchKeyId)
@@ -102,6 +106,26 @@ public class AuditQueryParameters
return auditFromTime;
}
public Long getAuditFromId()
{
return auditFromId;
}
public void setAuditFromId(Long auditFromId)
{
this.auditFromId = auditFromId;
}
public Long getAuditToId()
{
return auditToId;
}
public void setAuditToId(Long auditToId)
{
this.auditToId = auditToId;
}
public void setAuditFromTime(Long from)
{
this.auditFromTime = from;