Package org.alfresco.rest.v0.service
Class RMAuditService
- java.lang.Object
-
- org.alfresco.rest.v0.service.RMAuditService
-
@Service public class RMAuditService extends Object
Produces processed results from RM Audit REST API calls- Since:
- 3.3
- Author:
- Claudia Agache
-
-
Constructor Summary
Constructors Constructor Description RMAuditService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAuditLogForEvent(org.alfresco.utility.model.UserModel user, AuditEvents auditEvent, org.alfresco.utility.model.UserModel auditUser, String nodeName, String nodePath, List<Object> changedValues)Checks the rm audit log contains the entry for the given event.voidcheckAuditLogForEvent(org.alfresco.utility.model.UserModel user, AuditEvents auditEvent, org.alfresco.utility.model.UserModel auditUser, String nodeName, List<Object> changedValues)Checks the rm audit log contains the entry for the given event.voidclearAuditLog()Clear the list of audit entries as admin user.List<AuditEntry>getAuditEntriesFilteredByEvent(org.alfresco.utility.model.UserModel user, AuditEvents auditEvent)Returns a list of rm audit entries filtered by given event
-
-
-
Method Detail
-
clearAuditLog
public void clearAuditLog()
Clear the list of audit entries as admin user.
-
getAuditEntriesFilteredByEvent
public List<AuditEntry> getAuditEntriesFilteredByEvent(org.alfresco.utility.model.UserModel user, AuditEvents auditEvent)
Returns a list of rm audit entries filtered by given event- Parameters:
user- the user who requests the list of rm audit entriesauditEvent- the event- Returns:
- the list of audit entries matching the event
-
checkAuditLogForEvent
public void checkAuditLogForEvent(org.alfresco.utility.model.UserModel user, AuditEvents auditEvent, org.alfresco.utility.model.UserModel auditUser, String nodeName, List<Object> changedValues)Checks the rm audit log contains the entry for the given event.- Parameters:
user- the user who checks the audit logauditEvent- the audited eventauditUser- the user who did the audited eventnodeName- the audited node name if exists or empty stringchangedValues- the values changed by event if exist or empty list
-
checkAuditLogForEvent
public void checkAuditLogForEvent(org.alfresco.utility.model.UserModel user, AuditEvents auditEvent, org.alfresco.utility.model.UserModel auditUser, String nodeName, String nodePath, List<Object> changedValues)Checks the rm audit log contains the entry for the given event.- Parameters:
user- the user who checks the audit logauditEvent- the audited eventauditUser- the user who did the audited eventnodeName- the audited node name if exists or empty stringnodePath- the path of the audited node if exists or empty stringchangedValues- the values changed by event if exist or empty list
-
-