示例#1
0
 @PUT
 @Path("compile")
 @Consumes(MediaType.APPLICATION_JSON)
 public JsonObject compileCustomTask(JsonObject jsonCode) {
   accessControl(Group.managers());
   return getClassBean(jsonCode).compile();
 }
示例#2
0
 @PUT
 @Consumes(MediaType.APPLICATION_JSON)
 public Response addCustomTask(JsonObject jsonCode) {
   accessControl(Group.managers());
   getClassBean(jsonCode).run();
   return ok();
 }