Пример #1
0
 @Delete("/function/:function")
 @SecuredAction("profile.delete.function")
 public void deleteFunction(final HttpServerRequest request) {
   final String function = request.params().get("function");
   profileService.deleteFunction(function, defaultResponseHandler(request, 204));
 }
Пример #2
0
 @Delete("/functiongroup/:groupId")
 @SecuredAction("profile.delete.function.group")
 public void deleteFunctionGroup(final HttpServerRequest request) {
   final String groupId = request.params().get("groupId");
   profileService.deleteFunctionGroup(groupId, defaultResponseHandler(request, 204));
 }
Пример #3
0
 @Get("/functions")
 @SecuredAction(value = "", type = ActionType.RESOURCE)
 public void listFunctions(final HttpServerRequest request) {
   profileService.listFunctions(arrayResponseHandler(request));
 }