mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Final fix for MOB-1609: Incorrect number of results returned from audit log
- When the query size is limited, the DB query returns only the audit entries - The audited properties are pulled back in batches git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16567 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,8 +24,10 @@
|
||||
*/
|
||||
package org.alfresco.repo.domain.audit;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.repo.domain.propval.PropertyIdSearchRow;
|
||||
|
||||
@@ -42,7 +44,8 @@ public class AuditQueryResult
|
||||
private Long auditUserId;
|
||||
private long auditTime;
|
||||
private Long auditValuesId;
|
||||
private List<PropertyIdSearchRow> auditValues;
|
||||
private List<PropertyIdSearchRow> auditValueRows;
|
||||
private Map<String, Serializable> auditValue;
|
||||
|
||||
public AuditQueryResult()
|
||||
{
|
||||
@@ -58,7 +61,8 @@ public class AuditQueryResult
|
||||
.append(", auditUserId=").append(auditUserId)
|
||||
.append(", auditTime").append(new Date(auditTime))
|
||||
.append(", auditValuesId=").append(auditValuesId)
|
||||
.append(", auditValues=").append(auditValues.size())
|
||||
.append(", auditValueRows=").append(auditValueRows == null ? null : auditValueRows.size())
|
||||
.append(", auditValue=").append(auditValue)
|
||||
.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
@@ -113,13 +117,23 @@ public class AuditQueryResult
|
||||
this.auditValuesId = auditValuesId;
|
||||
}
|
||||
|
||||
public List<PropertyIdSearchRow> getAuditValues()
|
||||
public List<PropertyIdSearchRow> getAuditValueRows()
|
||||
{
|
||||
return auditValues;
|
||||
return auditValueRows;
|
||||
}
|
||||
|
||||
public void setAuditValues(List<PropertyIdSearchRow> auditValues)
|
||||
public void setAuditValueRows(List<PropertyIdSearchRow> auditValueRows)
|
||||
{
|
||||
this.auditValues = auditValues;
|
||||
this.auditValueRows = auditValueRows;
|
||||
}
|
||||
|
||||
public Map<String, Serializable> getAuditValue()
|
||||
{
|
||||
return auditValue;
|
||||
}
|
||||
|
||||
public void setAuditValue(Map<String, Serializable> auditValue)
|
||||
{
|
||||
this.auditValue = auditValue;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user