Interface AuditService

    • Method Detail

      • list

        @GET
        @Produces({"application/json","application/yaml","application/xml"})
        List<AuditConfTO> list()
        Returns a list of all audits.
        Returns:
        list of all audits.
      • read

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

        @PUT
        @Path("{key}")
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        void set​(@NotNull
                 @NotNull AuditConfTO auditTO)
        Set an audit setting.
        Parameters:
        auditTO - audit to be stored
      • delete

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

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

        @GET
        @Path("entries")
        @Produces({"application/json","application/yaml","application/xml"})
        PagedResult<AuditEntry> 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("entries")
        @Consumes({"application/json","application/yaml","application/xml"})
        void create​(@NotNull
                    @NotNull AuditEntry auditEntry)
        Create an audit entry.
        Parameters:
        auditEntry - audit entry to persist.