Class AuditLogResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigBaseResource
-
- io.jans.configapi.rest.resource.auth.AuditLogResource
-
@Path("/audit") @Consumes("application/json") @Produces("application/json") public class AuditLogResource extends ConfigBaseResource
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUDIT_FILE_ISO_OFFSET_DATE_TIMEstatic StringAUDIT_FILE_NAMEstatic StringAUDIT_FILE_PATHstatic StringDEFAULT_DATE_FORMATstatic StringPARAM_DATE_ISO_OFFSET_DATE_TIME
-
Constructor Summary
Constructors Constructor Description AuditLogResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.ResponsegetLogsEnteries(String pattern, int startIndex, int limit, String startDate, String endDate)Searches and returns paginated audit log entries filtered by an optional pattern and date range.-
Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCount
-
Methods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getRegexPattern, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
-
-
-
-
Field Detail
-
AUDIT_FILE_PATH
public static final String AUDIT_FILE_PATH
- See Also:
- Constant Field Values
-
AUDIT_FILE_NAME
public static final String AUDIT_FILE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_DATE_FORMAT
public static final String DEFAULT_DATE_FORMAT
- See Also:
- Constant Field Values
-
AUDIT_FILE_ISO_OFFSET_DATE_TIME
public static final String AUDIT_FILE_ISO_OFFSET_DATE_TIME
- See Also:
- Constant Field Values
-
PARAM_DATE_ISO_OFFSET_DATE_TIME
public static final String PARAM_DATE_ISO_OFFSET_DATE_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLogsEnteries
@GET public jakarta.ws.rs.core.Response getLogsEnteries(@QueryParam("pattern") String pattern, @DefaultValue("0") @QueryParam("startIndex") int startIndex, @DefaultValue("50") @QueryParam("limit") int limit, @QueryParam("start_date") String startDate, @QueryParam("end_date") String endDate)Searches and returns paginated audit log entries filtered by an optional pattern and date range.- Parameters:
pattern- a substring to filter log lines; blank returns all entriesstartIndex- index of the first result to returnlimit- maximum number of results to returnstartDate- optional start date (dd-MM-yyyy or ISO-8601 date-time) to include entries on or after this dateendDate- optional end date (dd-MM-yyyy or ISO-8601 date-time) to include entries on or before this date- Returns:
- a HTTP 200 Response containing a LogPagedResult with the matching log lines and pagination metadata
-
-