@Loggable(prepend=true, value=1, trim=false) @Path(value="/v1/catalog") @Singleton public class GroupServlet extends AbstractValidationsServlet
componentsUtils
servletRequest
Constructor and Description |
---|
GroupServlet() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getGroupArtifactById(String containerComponentType,
String componentId,
String groupId,
javax.servlet.http.HttpServletRequest request,
String userId) |
fj.data.Either<GroupDefinition,ResponseFormat> |
parseToGroup(String groupJson)
Convert data to GroupDefinition object
|
javax.ws.rs.core.Response |
updateGroupMetadata(String containerComponentType,
String componentId,
String groupUniqueId,
String data,
javax.servlet.http.HttpServletRequest request,
String userId) |
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
@GET @Path(value="/{containerComponentType}/{componentId}/groups/{groupId}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getGroupArtifactById(@PathParam(value="containerComponentType") String containerComponentType, @PathParam(value="componentId") String componentId, @PathParam(value="groupId") String groupId, @Context javax.servlet.http.HttpServletRequest request, @HeaderParam(value="USER_ID") String userId)
@PUT @Path(value="/{containerComponentType}/{componentId}/groups/{groupUniqueId}/metadata") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response updateGroupMetadata(@PathParam(value="containerComponentType") String containerComponentType, @PathParam(value="componentId") String componentId, @PathParam(value="groupUniqueId") String groupUniqueId, String data, @Context javax.servlet.http.HttpServletRequest request, @HeaderParam(value="USER_ID") String userId)
public fj.data.Either<GroupDefinition,ResponseFormat> parseToGroup(String groupJson)
groupJson
- Copyright © 2017. All rights reserved.