public final class AtomicOperationUtils extends Object
public static fj.data.Either<Resource,RestResponse> importResource(String filePath, String fileName)
filePath
- fileName
- IOException
JSONException
public static fj.data.Either<Resource,RestResponse> createResourceByType(ResourceTypeEnum resourceType, UserRoleEnum userRole, Boolean validateState)
public static fj.data.Either<Resource,RestResponse> createResourcesByTypeNormTypeAndCatregory(ResourceTypeEnum resourceType, NormativeTypesEnum normativeTypes, ResourceCategoryEnum resourceCategory, UserRoleEnum userRole, Boolean validateState) throws Exception
Exception
public static fj.data.Either<Resource,RestResponse> createResourcesByCustomNormativeTypeAndCatregory(ResourceTypeEnum resourceType, Resource resourceNormativeType, ResourceCategoryEnum resourceCategory, UserRoleEnum userRole, Boolean validateState) throws Exception
Exception
public static fj.data.Either<Service,RestResponse> createDefaultService(UserRoleEnum userRole, Boolean validateState) throws Exception
Exception
public static fj.data.Either<Service,RestResponse> createServiceByCategory(ServiceCategoriesEnum category, UserRoleEnum userRole, Boolean validateState) throws Exception
Exception
public static fj.data.Either<Product,RestResponse> createDefaultProduct(UserRoleEnum userRole, Boolean validateState) throws Exception
Exception
public static org.apache.commons.lang3.tuple.Pair<Component,RestResponse> changeComponentState(Component component, UserRoleEnum userRole, LifeCycleStatesEnum targetState, Boolean validateState) throws Exception
Exception
public static RestResponse distributeService(Component component, Boolean validateState) throws Exception
Exception
public static fj.data.Either<ArtifactDefinition,RestResponse> uploadArtifactByType(ArtifactTypeEnum artifactType, Component component, UserRoleEnum userRole, Boolean deploymentTrue, Boolean validateState) throws Exception
Exception
public static fj.data.Either<ComponentInstance,RestResponse> addComponentInstanceToComponentContainer(Component compInstParent, Component compContainer)
compInstParent
- compContainer
- public static fj.data.Either<ComponentInstance,RestResponse> addComponentInstanceToComponentContainer(Component compInstParent, Component compContainer, UserRoleEnum userRole, Boolean validateState)
public static Resource getResourceObject(Component containerDetails, UserRoleEnum userRole) throws Exception
Exception
public static Service getServiceObject(Component containerDetails, UserRoleEnum userRole) throws Exception
Exception
public static Product getProductObject(Component containerDetails, UserRoleEnum userRole) throws Exception
Exception
public static Component getCompoenntObject(Component containerDetails, UserRoleEnum userRole) throws Exception
Exception
public static Component convertReposnseToComponentObject(Component containerDetails, RestResponse restresponse) throws Exception
Exception
public static RestResponse associate2ResourceInstances(Component containerDetails, ComponentInstance fromNode, ComponentInstance toNode, String assocType, UserRoleEnum userRole, Boolean validateState) throws Exception
Exception
public static fj.data.Either<org.apache.commons.lang3.tuple.Pair<Component,ComponentInstance>,RestResponse> changeComponentInstanceVersion(Component containerDetails, ComponentInstance componentInstanceToReplace, Component newInstance, UserRoleEnum userRole, Boolean validateState) throws Exception
Exception
public static fj.data.Either<ComponentInstanceProperty,RestResponse> addCustomPropertyToResource(PropertyReqDetails propDetails, Resource resourceDetails, UserRoleEnum userRole, Boolean validateState) throws Exception
Exception
public static fj.data.Either<ComponentInstanceProperty,RestResponse> updatePropertyOfResource(PropertyReqDetails propDetails, Resource resourceDetails, String propertyUniqueId, UserRoleEnum userRole, Boolean validateState) throws Exception
Exception
public static RestResponse deletePropertyOfResource(String resourceId, String propertyId, UserRoleEnum userRole) throws Exception
Exception
public static fj.data.Either<ComponentInstanceProperty,RestResponse> addDefaultPropertyToResource(PropertyTypeEnum propertyType, Resource resourceDetails, UserRoleEnum userRole, Boolean validateState) throws Exception
Exception
public static RestResponse createDefaultConsumer(Boolean validateState)
public static fj.data.Either<Resource,RestResponse> buildResourceFromResponse(RestResponse resourceResp)
resourceResp
- public static Resource importResourceFromCSAR(ResourceTypeEnum resourceType, UserRoleEnum userRole, String fileName, String... filePath) throws Exception
resourceType
- userRole
- fileName
- filePath
- Exception
public static fj.data.Either<Resource,RestResponse> importResourceByFileName(ResourceTypeEnum resourceType, UserRoleEnum userRole, String fileName, Boolean validateState, String... filePath) throws IOException
IOException
Copyright © 2017. All rights reserved.