use of jetbrains.buildServer.server.rest.model.audit.AuditEvents in project teamcity-rest by JetBrains.
the class AuditRequest method get.
@GET
@Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Get all audit events.", nickname = "getAllAuditEvents")
public AuditEvents get(@ApiParam(format = LocatorName.AUDIT) @QueryParam("locator") String locator, @QueryParam("fields") String fields, @Context UriInfo uriInfo, @Context HttpServletRequest request) {
AuthorityHelper.checkGlobalPermission(myBeanContext, Permission.VIEW_AUDIT_LOG);
PagedSearchResult<AuditLogAction> items = myAuditEventFinder.getItems(locator);
final PagerData pagerData = new PagerData(uriInfo.getRequestUriBuilder(), request.getContextPath(), items, locator, "locator");
return new AuditEvents(items.myEntries, pagerData, new Fields(fields), myBeanContext);
}
Aggregations