Class ResourceServices

java.lang.Object
step.framework.server.AbstractServices<User>
step.core.deployment.AbstractStepServices
step.resources.ResourceServices

@Path("/resources") public class ResourceServices extends AbstractStepServices
  • Field Details

  • Constructor Details

    • ResourceServices

      public ResourceServices()
  • Method Details

    • init

      @PostConstruct public void init() throws Exception
      Overrides:
      init in class AbstractStepServices
      Throws:
      Exception
    • createResource

      @POST @Path("/content") @Consumes("multipart/form-data") @Produces("application/json") public ResourceUploadResponse createResource(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, @QueryParam("type") String resourceType, @QueryParam("duplicateCheck") Boolean checkForDuplicate, @QueryParam("directory") Boolean isDirectory, @QueryParam("trackingAttribute") String trackingAttribute) throws IOException
      Throws:
      IOException
    • saveResource

      @POST @Consumes("application/json") @Produces("application/json") public Resource saveResource(Resource resource) throws IOException
      Throws:
      IOException
    • saveResourceContent

      @POST @Path("/{id}/content") @Consumes("multipart/form-data") @Produces("application/json") public ResourceUploadResponse saveResourceContent(@PathParam("id") String resourceId, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail) throws Exception
      Throws:
      Exception
    • getResource

      @GET @Path("/{id}") @Produces("application/json") public Resource getResource(@PathParam("id") String resourceId) throws IOException
      Throws:
      IOException
    • getResourceContent

      @GET @Path("/{id}/content") @Produces("application/json") public jakarta.ws.rs.core.Response getResourceContent(@PathParam("id") String resourceId, @QueryParam("inline") boolean inline) throws IOException
      Throws:
      IOException
    • deleteResource

      @DELETE @Path("/{id}") public void deleteResource(@PathParam("id") String resourceId)
    • getResourceRevisionContent

      @GET @Produces("application/json") @Path("/revision/{id}/content") public jakarta.ws.rs.core.Response getResourceRevisionContent(@PathParam("id") String resourceRevisionId, @QueryParam("inline") boolean inline) throws IOException
      Throws:
      IOException
    • findManyByCriteria

      @POST @Path("/find") @Produces("application/json") @Consumes("application/json") public List<Resource> findManyByCriteria(Map<String,String> criteria)
    • getResponseForResourceRevisionContent

      protected jakarta.ws.rs.core.Response getResponseForResourceRevisionContent(ResourceRevisionContent resourceContent, boolean inline)