@Test public void updateResourceEntry() { }
@PUT @Path("/{resourceEntryId}") @Consumes(MediaType.APPLICATION_JSON) public Response updateResourceEntry(@PathParam("resourceId") String resourceId, @PathParam("resourceEntryId") String resourceEntryId, ResourceEntry resourceEntry) { String userId = (String) SecurityUtils.getSubject().getPrincipal(); resourceEntryService.updateResourceEntry(resourceEntryId, resourceEntry, userId); return Response.ok().build(); }
ResourceEntryResource { @PUT @Path("/{resourceEntryId}") @Consumes(MediaType.APPLICATION_JSON) public Response updateResourceEntry(@PathParam("resourceId") String resourceId, @PathParam("resourceEntryId") String resourceEntryId, ResourceEntry resourceEntry) { String userId = (String) SecurityUtils.getSubject().getPrincipal(); resourceEntryService.updateResourceEntry(resourceEntryId, resourceEntry, userId); return Response.ok().build(); } }
ResourceEntryResource { @PUT @Path("/{resourceEntryId}") @Consumes(MediaType.APPLICATION_JSON) public Response updateResourceEntry(@PathParam("resourceId") String resourceId, @PathParam("resourceEntryId") String resourceEntryId, ResourceEntry resourceEntry) { String userId = (String) SecurityUtils.getSubject().getPrincipal(); resourceEntryService.updateResourceEntry(resourceEntryId, resourceEntry, userId); return Response.ok().build(); } @Inject  ResourceEntryResource(ResourceEntryService resourceEntryService); }
ResourceEntryResource { @PUT @Path("/{resourceEntryId}") @Consumes(MediaType.APPLICATION_JSON) public Response updateResourceEntry(@PathParam("resourceId") String resourceId, @PathParam("resourceEntryId") String resourceEntryId, ResourceEntry resourceEntry) { String userId = (String) SecurityUtils.getSubject().getPrincipal(); resourceEntryService.updateResourceEntry(resourceEntryId, resourceEntry, userId); return Response.ok().build(); } @Inject  ResourceEntryResource(ResourceEntryService resourceEntryService); @GET @Produces(MediaType.APPLICATION_JSON) List<ResourceEntry> listResourceEntries(@PathParam("resourceId") String resourceId); @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) ResourceEntry createResourceEntry(@PathParam("resourceId") String resourceId,
            ResourceEntry resourceEntry); @GET @Path("/{resourceEntryId}") @Produces(MediaType.APPLICATION_JSON) ResourceEntry getResourceEntry(@PathParam("resourceId") String resourceId,
            @PathParam("resourceEntryId") String resourceEntryId); @DELETE @Path("/{resourceEntryId}") Response deleteResourceEntry(@PathParam("resourceId") String resourceId,
            @PathParam("resourceEntryId") String resourceEntryId); @PUT @Path("/{resourceEntryId}") @Consumes(MediaType.APPLICATION_JSON) Response updateResourceEntry(@PathParam("resourceId") String resourceId,
            @PathParam("resourceEntryId") String resourceEntryId, ResourceEntry resourceEntry); @GET @Path("/{resourceEntryId}/config") @Produces(MediaType.APPLICATION_JSON) ResourceEntryConfig getResourceEntryConfig(@PathParam("resourceId") String resourceId,
            @PathParam("resourceEntryId") String resourceEntryId); @PUT @Path("/{resourceEntryId}/config") @Consumes(MediaType.APPLICATION_JSON) Response updateResourceEntryConfig(@PathParam("resourceId") String resourceId,
            @PathParam("resourceEntryId") String resourceEntryId, ResourceEntryConfig resourceEntryConfig); }
ResourceEntryResource { @PUT @Path("/{resourceEntryId}") @Consumes(MediaType.APPLICATION_JSON) public Response updateResourceEntry(@PathParam("resourceId") String resourceId, @PathParam("resourceEntryId") String resourceEntryId, ResourceEntry resourceEntry) { String userId = (String) SecurityUtils.getSubject().getPrincipal(); resourceEntryService.updateResourceEntry(resourceEntryId, resourceEntry, userId); return Response.ok().build(); } @Inject  ResourceEntryResource(ResourceEntryService resourceEntryService); @GET @Produces(MediaType.APPLICATION_JSON) List<ResourceEntry> listResourceEntries(@PathParam("resourceId") String resourceId); @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) ResourceEntry createResourceEntry(@PathParam("resourceId") String resourceId,
            ResourceEntry resourceEntry); @GET @Path("/{resourceEntryId}") @Produces(MediaType.APPLICATION_JSON) ResourceEntry getResourceEntry(@PathParam("resourceId") String resourceId,
            @PathParam("resourceEntryId") String resourceEntryId); @DELETE @Path("/{resourceEntryId}") Response deleteResourceEntry(@PathParam("resourceId") String resourceId,
            @PathParam("resourceEntryId") String resourceEntryId); @PUT @Path("/{resourceEntryId}") @Consumes(MediaType.APPLICATION_JSON) Response updateResourceEntry(@PathParam("resourceId") String resourceId,
            @PathParam("resourceEntryId") String resourceEntryId, ResourceEntry resourceEntry); @GET @Path("/{resourceEntryId}/config") @Produces(MediaType.APPLICATION_JSON) ResourceEntryConfig getResourceEntryConfig(@PathParam("resourceId") String resourceId,
            @PathParam("resourceEntryId") String resourceEntryId); @PUT @Path("/{resourceEntryId}/config") @Consumes(MediaType.APPLICATION_JSON) Response updateResourceEntryConfig(@PathParam("resourceId") String resourceId,
            @PathParam("resourceEntryId") String resourceEntryId, ResourceEntryConfig resourceEntryConfig);  }