@POST @Path("RSAComposedNode.Assemble") public Response assemble() { try { service.assembleComposedNode(getCurrentContext()); } catch (EntityNotFoundException e) { throw PodmExceptions.notFound(); } catch (EntityOperationException e) { throw new ClientErrorException("Assembly action could not be completed!", METHOD_NOT_ALLOWED); } return Response.accepted().build(); }
@POST @Consumes(APPLICATION_JSON) @Path("RSAComposedNode.Reset") public Response reset(ResetTypeJson resetTypeJson) { try { service.reset(getCurrentContext(), resetTypeJson.resetType); } catch (EntityNotFoundException e) { throw PodmExceptions.notFound(); } catch (EntityOperationException e) { throw new ClientErrorException("Reset action could not be completed!", METHOD_NOT_ALLOWED); } return Response.noContent().build(); }
@Override public Object get() { // Single actions are only available, no collection is provided throw PodmExceptions.notFound(); }