Merged 5.2.N-AUDIT-API (5.2.2) to 5.2.N (5.2.2)

137897 anechifor: REPO-2619 - adding implementation of listAuditEntries


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137962 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2017-07-12 12:09:36 +00:00
parent bbfd3a75a6
commit 72ca042f3b
4 changed files with 405 additions and 2 deletions

View File

@@ -26,10 +26,13 @@
package org.alfresco.rest.api;
import org.alfresco.rest.api.model.AuditApp;
import org.alfresco.rest.api.model.AuditEntry;
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
import org.alfresco.rest.framework.resource.parameters.Paging;
import org.alfresco.rest.framework.resource.parameters.Parameters;
import com.sun.star.auth.InvalidArgumentException;
/**
* Handles audit (applications & entries)
*
@@ -37,6 +40,13 @@ import org.alfresco.rest.framework.resource.parameters.Parameters;
*/
public interface Audit
{
String PARAM_ID = "id";
String PARAM_AUDIT_APP_ID = "auditApplicationId";
String VALUES_VALUE = "valuesValue";
String VALUES_KEY = "valuesKey";
String CREATED_BY_USER = "createdByUser";
String CREATED_AT = "createdAt";
/**
* Gets a single audit application by id
*
@@ -80,9 +90,9 @@ public interface Audit
* if null then across all audit apps
* @param parameters
* @return Collection of audit entries
* @throws InvalidArgumentException
*/
// CollectionWithPagingInfo<AuditEntry> listAuditEntries(String auditAppId,
// Parameters parameters);
CollectionWithPagingInfo<AuditEntry> listAuditEntries(String auditAppId, Parameters parameters);
/**
* Deletes a set of audit entries