Пример #1
0
 private Response deleteTenantKey(
     final TenantKey key,
     @Nullable final String keyPostfix,
     final String createdBy,
     final String reason,
     final String comment,
     final HttpServletRequest request)
     throws TenantApiException {
   final CallContext callContext = context.createContext(createdBy, reason, comment, request);
   final String tenantKey = keyPostfix != null ? key.toString() + keyPostfix : key.toString();
   tenantApi.deleteTenantKey(tenantKey, callContext);
   return Response.status(Status.OK).build();
 }
Пример #2
0
 @TimedResource
 @DELETE
 @Path("/" + USER_KEY_VALUE + "/{keyName:" + ANYTHING_PATTERN + "}")
 @ApiOperation(value = "Delete  a per tenant user key/value")
 @ApiResponses(value = {@ApiResponse(code = 400, message = "Invalid tenantId supplied")})
 public Response deleteUserKeyValue(
     @PathParam("keyName") final String key,
     @HeaderParam(HDR_CREATED_BY) final String createdBy,
     @HeaderParam(HDR_REASON) final String reason,
     @HeaderParam(HDR_COMMENT) final String comment,
     @javax.ws.rs.core.Context final HttpServletRequest request)
     throws TenantApiException {
   final CallContext callContext = context.createContext(createdBy, reason, comment, request);
   tenantApi.deleteTenantKey(key, callContext);
   return Response.status(Status.OK).build();
 }