Class RMAuditAPI


  • @Component
    public class RMAuditAPI
    extends BaseAPI
    The v0 REST API for rm audit logs
    Since:
    2.7
    Author:
    Rodica Sutu
    • Constructor Detail

      • RMAuditAPI

        public RMAuditAPI()
    • Method Detail

      • getRMAuditLog

        public List<AuditEntry> getRMAuditLog​(String user,
                                              String password,
                                              int size,
                                              String event)
        Returns a list of rm audit entries .
        Parameters:
        user - The username of the user to use.
        password - The password of the user.
        size - Maximum number of log entries to return
        event - The name of audit event to be retrieved
        Returns:
        return Only return log entries matching this event
      • clearAuditLog

        public void clearAuditLog​(String username,
                                  String password)
        Clear the list of audit entries.
        Parameters:
        username - The username of the user to use.
        password - The password of the user.
        Throws:
        AssertionError - If the API call didn't clear the audit log.