@Loggable(prepend=true, value=1, trim=false) @Path(value="/v1/catalog") @Singleton public class AttributeServlet extends AbstractValidationsServlet
componentsUtils
servletRequest
gson
Constructor and Description |
---|
AttributeServlet() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createAttribute(String resourceId,
String data,
javax.servlet.http.HttpServletRequest request,
String userId)
Creates new Attribute on a resource with given resource ID
|
javax.ws.rs.core.Response |
deleteAttribute(String resourceId,
String attributeId,
javax.servlet.http.HttpServletRequest request,
String userId)
Deletes existing Attribute with given attributeID on a resource with given resourceID
|
javax.ws.rs.core.Response |
updateAttribute(String resourceId,
String attributeId,
String data,
javax.servlet.http.HttpServletRequest request,
String userId)
Updates existing Attribute with given attributeID on a resource with given resourceID
|
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
@POST @Path(value="resources/{resourceId}/attributes") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createAttribute(@PathParam(value="resourceId") String resourceId, String data, @Context javax.servlet.http.HttpServletRequest request, @HeaderParam(value="USER_ID") String userId)
resourceId
- data
- request
- userId
- @PUT @Path(value="resources/{resourceId}/attributes/{attributeId}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response updateAttribute(@PathParam(value="resourceId") String resourceId, @PathParam(value="attributeId") String attributeId, String data, @Context javax.servlet.http.HttpServletRequest request, @HeaderParam(value="USER_ID") String userId)
resourceId
- attributeId
- data
- request
- userId
- @DELETE @Path(value="resources/{resourceId}/attributes/{attributeId}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response deleteAttribute(@PathParam(value="resourceId") String resourceId, @PathParam(value="attributeId") String attributeId, @Context javax.servlet.http.HttpServletRequest request, @HeaderParam(value="USER_ID") String userId)
resourceId
- attributeId
- request
- userId
- Copyright © 2017. All rights reserved.