@Loggable(prepend=true, value=1, trim=false) @Path(value="/v1/catalog/upload") @Singleton public class ResourceUploadServlet extends AbstractValidationsServlet
Modifier and Type | Class and Description |
---|---|
static class |
ResourceUploadServlet.ResourceAuthorityTypeEnum |
Modifier and Type | Field and Description |
---|---|
static String |
NORMATIVE_TYPE_RESOURCE |
static String |
USER_TYPE_RESOURCE |
static String |
USER_TYPE_RESOURCE_UI_IMPORT |
componentsUtils
servletRequest
gson
Constructor and Description |
---|
ResourceUploadServlet() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
uploadMultipart(String resourceAuthority,
File file,
org.glassfish.jersey.media.multipart.FormDataContentDisposition contentDispositionHeader,
String resourceInfoJsonString,
javax.servlet.http.HttpServletRequest request,
String userId,
boolean createNewVersion) |
buildResponseFromElement, commonGeneralValidations, commonPayloadValidations, fillPayload, fillToscaTemplateFromJson, fillToscaTemplateFromZip, fillZipContents, getComponentsUtils, getGson, getServletUtils, handleImport, importUIValidations, init, returnMissingInformation, specificResourceAuthorityValidations, topologyTemplatePayloadValidations, validateAndFillResourceJson, validateAuthorityType, validateClassParse, validateComponentInstanceBusinessLogic, validateComponentType, validateDataNotNull, validateInputStream, validateMD5, validatePayloadIsNotService, validatePayloadIsSingleResource, validatePayloadIsTopologyTemplate, validatePayloadIsTosca, validatePayloadIsYml, validatePayloadNameSpace, validateResourceDoesNotExist, validateToscaTemplatePayloadName, validateUserExist, validateUserRole, validateUserRole, validateZip
buildErrorResponse, buildOkResponse, buildOkResponse, getArtifactBL, getBusinessLogic, getComponentBL, getComponentCleanerBL, getComponentInstanceBL, getContentDispositionValue, getElementBL, getElementDao, getGroupBL, getMonitoringBL, getProductBL, getResourceBL, getServiceBL, getUserAdminManager, initHeaderParam
public static final String NORMATIVE_TYPE_RESOURCE
public static final String USER_TYPE_RESOURCE
public static final String USER_TYPE_RESOURCE_UI_IMPORT
@POST @Path(value="/{resourceAuthority}") @Consumes(value="multipart/form-data") @Produces(value="application/json") public javax.ws.rs.core.Response uploadMultipart(@PathParam(value="resourceAuthority") String resourceAuthority, File file, org.glassfish.jersey.media.multipart.FormDataContentDisposition contentDispositionHeader, String resourceInfoJsonString, @Context javax.servlet.http.HttpServletRequest request, @HeaderParam(value="USER_ID") String userId, @DefaultValue(value="true") @QueryParam(value="createNewVersion") boolean createNewVersion)
Copyright © 2017. All rights reserved.