Package step.resources
Class ResourceServices
java.lang.Object
step.framework.server.AbstractServices<User>
step.core.deployment.AbstractStepServices
step.resources.ResourceServices
-
Field Summary
FieldsFields inherited from class step.core.deployment.AbstractStepServices
configuration, SESSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateResource
(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String resourceType, Boolean checkForDuplicate, Boolean isDirectory) void
deleteResource
(String resourceId) getResource
(String resourceId) jakarta.ws.rs.core.Response
getResourceContent
(String resourceId, boolean inline) jakarta.ws.rs.core.Response
getResourceRevisionContent
(String resourceRevisionId, boolean inline) protected jakarta.ws.rs.core.Response
getResponseForResourceRevisionContent
(ResourceRevisionContent resourceContent, boolean inline) void
init()
saveResource
(Resource resource) saveResourceContent
(String resourceId, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail) Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
Methods inherited from class step.framework.server.AbstractServices
getAbstractContext, getHttpSession, getSession, getSession, invalidateSession, setHttpServletRequest, setSession
-
Field Details
-
resourceManager
-
resourceAccessor
-
-
Constructor Details
-
ResourceServices
public ResourceServices()
-
-
Method Details
-
init
- Overrides:
init
in classAbstractStepServices
- 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) 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
-
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
-
getResponseForResourceRevisionContent
protected jakarta.ws.rs.core.Response getResponseForResourceRevisionContent(ResourceRevisionContent resourceContent, boolean inline)
-