Interface AuditService

All Superinterfaces:
JAXRSService
All Known Implementing Classes:
AuditServiceImpl

@Path("audit") public interface AuditService extends JAXRSService
REST operations for audit.
  • Method Details

    • confs

      @GET @Path("conf") @Produces({"application/json","application/yaml","application/xml"}) List<AuditConfTO> confs()
      Returns a list of all audit configurations.
      Returns:
      list of all audit configurations.
    • getConf

      @GET @Path("conf/{key}") @Produces({"application/json","application/yaml","application/xml"}) AuditConfTO getConf(@NotNull @PathParam("key") @NotNull String key)
      Returns the audit configuration with matching key.
      Parameters:
      key - audit key to be read
      Returns:
      audit configuration with matching key
    • setConf

      @PUT @Path("conf/{key}") @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) void setConf(@NotNull @NotNull AuditConfTO auditTO)
      Sets an audit configuration
      Parameters:
      auditTO - audit configuration to be stored
    • deleteConf

      @DELETE @Path("conf/{key}") @Produces({"application/json","application/yaml","application/xml"}) void deleteConf(@NotNull @PathParam("key") @NotNull String key)
      Deletes the audit configuration matching the provided key.
      Parameters:
      key - audit configuration key to be deleted
    • events

      @GET @Path("opEvents") @Produces({"application/json","application/yaml","application/xml"}) List<OpEvent> events()
      Returns the list of all managed events in audit.
      Returns:
      list of all managed events in audit
    • search

      @GET @Path("auditEvents") @Produces({"application/json","application/yaml","application/xml"}) PagedResult<AuditEventTO> search(@BeanParam AuditQuery auditQuery)
      Returns a paged list of audit entries matching the given query.
      Parameters:
      auditQuery - query conditions
      Returns:
      paged list of audit entries matching the given query
    • create

      @POST @Path("auditEvents") @Consumes({"application/json","application/yaml","application/xml"}) void create(@NotNull @NotNull AuditEventTO auditEvent)
      Persist an audit event.
      Parameters:
      auditEvent - audit event to persist.