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 Details

    • RMAuditService

      public RMAuditService()
  • Method Details

    • 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 entries
      auditEvent - 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 log
      auditEvent - the audited event
      auditUser - the user who did the audited event
      nodeName - the audited node name if exists or empty string
      changedValues - 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 log
      auditEvent - the audited event
      auditUser - the user who did the audited event
      nodeName - the audited node name if exists or empty string
      nodePath - the path of the audited node if exists or empty string
      changedValues - the values changed by event if exist or empty list