@Loggable(prepend=true, value=1, trim=false) @Path(value="/v1/catalog") @Singleton public class ArtifactExternalServlet extends BeGenericServlet
servletRequest
gson
Constructor and Description |
---|
ArtifactExternalServlet() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteArtifact(String assetType,
String uuid,
String artifactUUID)
deletes an artifact of a resource or service
|
javax.ws.rs.core.Response |
deleteArtifactOnResourceInstance(String assetType,
String uuid,
String resourceInstanceName,
String artifactUUID)
deletes an artifact of a resource instance
|
javax.ws.rs.core.Response |
downloadComponentArtifact(String assetType,
String uuid,
String artifactUUID)
downloads an artifact of a component (either a service or a resource) by artifactUUID
|
javax.ws.rs.core.Response |
downloadResourceInstanceArtifact(String assetType,
String uuid,
String resourceInstanceName,
String artifactUUID)
downloads an artifact of a resource instance of a component (either a service or a resource) by artifactUUID
|
javax.ws.rs.core.Response |
updateArtifact(String assetType,
String uuid,
String artifactUUID,
String data)
updates an artifact on a resource or service
|
javax.ws.rs.core.Response |
updateArtifactOnResourceInstance(String assetType,
String uuid,
String resourceInstanceName,
String artifactUUID,
String data)
updates an artifact on a resource instance
|
javax.ws.rs.core.Response |
uploadArtifact(String assetType,
String uuid,
String data)
Uploads an artifact to resource or service
|
javax.ws.rs.core.Response |
uploadArtifactToInstance(String assetType,
String uuid,
String resourceInstanceName,
String data)
Uploads an artifact to resource instance
|
buildErrorResponse, buildOkResponse, buildOkResponse, getArtifactBL, getBusinessLogic, getComponentBL, getComponentCleanerBL, getComponentInstanceBL, getComponentsUtils, getContentDispositionValue, getElementBL, getElementDao, getGroupBL, getMonitoringBL, getProductBL, getResourceBL, getServiceBL, getUserAdminManager, initHeaderParam
@POST @Path(value="/{assetType}/{uuid}/artifacts") @Produces(value="application/json") public javax.ws.rs.core.Response uploadArtifact(@PathParam(value="assetType") String assetType, @PathParam(value="uuid") String uuid, String data)
assetType
- uuid
- @POST @Path(value="/{assetType}/{uuid}/resourceInstances/{resourceInstanceName}/artifacts") @Produces(value="application/json") public javax.ws.rs.core.Response uploadArtifactToInstance(@PathParam(value="assetType") String assetType, @PathParam(value="uuid") String uuid, @PathParam(value="resourceInstanceName") String resourceInstanceName, String data)
assetType
- uuid
- resourceInstanceName
- @POST @Path(value="/{assetType}/{uuid}/artifacts/{artifactUUID}") @Produces(value="application/json") public javax.ws.rs.core.Response updateArtifact(@PathParam(value="assetType") String assetType, @PathParam(value="uuid") String uuid, @PathParam(value="artifactUUID") String artifactUUID, String data)
assetType
- uuid
- artifactUUID
- @POST @Path(value="/{assetType}/{uuid}/resourceInstances/{resourceInstanceName}/artifacts/{artifactUUID}") @Produces(value="application/json") public javax.ws.rs.core.Response updateArtifactOnResourceInstance(@PathParam(value="assetType") String assetType, @PathParam(value="uuid") String uuid, @PathParam(value="resourceInstanceName") String resourceInstanceName, @PathParam(value="artifactUUID") String artifactUUID, String data)
assetType
- uuid
- resourceInstanceName
- artifactUUID
- @DELETE @Path(value="/{assetType}/{uuid}/artifacts/{artifactUUID}") @Produces(value="application/json") public javax.ws.rs.core.Response deleteArtifact(@PathParam(value="assetType") String assetType, @PathParam(value="uuid") String uuid, @PathParam(value="artifactUUID") String artifactUUID)
assetType
- uuid
- artifactUUID
- @DELETE @Path(value="{assetType}/{uuid}/resourceInstances/{resourceInstanceName}/artifacts/{artifactUUID}") @Produces(value="application/json") public javax.ws.rs.core.Response deleteArtifactOnResourceInstance(@PathParam(value="assetType") String assetType, @PathParam(value="uuid") String uuid, @PathParam(value="resourceInstanceName") String resourceInstanceName, @PathParam(value="artifactUUID") String artifactUUID)
assetType
- uuid
- resourceInstanceName
- @GET @Path(value="/{assetType}/{uuid}/artifacts/{artifactUUID}") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response downloadComponentArtifact(@PathParam(value="assetType") String assetType, @PathParam(value="uuid") String uuid, @PathParam(value="artifactUUID") String artifactUUID)
assetType
- uuid
- artifactUUID
- @GET @Path(value="/{assetType}/{uuid}/resourceInstances/{resourceInstanceName}/artifacts/{artifactUUID}") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response downloadResourceInstanceArtifact(@PathParam(value="assetType") String assetType, @PathParam(value="uuid") String uuid, @PathParam(value="resourceInstanceName") String resourceInstanceName, @PathParam(value="artifactUUID") String artifactUUID)
assetType
- uuid
- resourceInstanceName
- artifactUUID
- Copyright © 2017. All rights reserved.