public class AssetRestUtils extends BaseRestUtils
acceptHeaderData, acceptJsonHeader, acceptOctetHeader, acceptOctetStream, authorizationHeader, authorizationPrefixString, ecomp, PRODUCT_COMPONENT_TYPE, RESOURCE_COMPONENT_TYPE, RESTRICTED_OPERATION, SERVICE_COMPONENT_TYPE, STATUS_CODE_ALREADY_EXISTS, STATUS_CODE_COMPONENT_NAME_EXCEEDS_LIMIT, STATUS_CODE_CREATED, STATUS_CODE_DELETE, STATUS_CODE_GET_SUCCESS, STATUS_CODE_IMPORT_SUCCESS, STATUS_CODE_INVALID_CONTENT, STATUS_CODE_MISSING_COMPONENT_NAME, STATUS_CODE_MISSING_DATA, STATUS_CODE_MISSING_INFORMATION, STATUS_CODE_NOT_FOUND, STATUS_CODE_RESTRICTED_ACCESS, STATUS_CODE_RESTRICTED_OPERATION, STATUS_CODE_SUCCESS, STATUS_CODE_SUCCESS_DELETE, STATUS_CODE_SUCCESS_NO_CONTENT, STATUS_CODE_UNSUPPORTED_ERROR, STATUS_CODE_UPDATE_SUCCESS, SUCCESS_MESSAGE
Constructor and Description |
---|
AssetRestUtils() |
addAuthorizeHeader, encodeUrlForDownload, prepareHeadersMap, prepareHeadersMap, sendDelete, sendGet, sendGet, sendGetAndRemoveHeaders, sendPost, sendPost, sendPost, sendPut
checkCreateResponse, checkDeleteResponse, checkErrorCode, checkErrorMessageResponse, checkErrorResponse, checkStatusCode, checkSuccess
public static org.apache.http.HttpResponse getComponentToscaModel(AssetTypeEnum assetType, String uuid) throws IOException
IOException
public static RestResponse getComponentListByAssetType(boolean isBasicAuthentication, AssetTypeEnum assetType, String... filterArrayString) throws IOException
IOException
public static RestResponse getFilteredComponentList(AssetTypeEnum assetType, String query) throws IOException
IOException
public static RestResponse getAssetMetadataByAssetTypeAndUuid(boolean isBasicAuthentication, AssetTypeEnum assetType, String uuid) throws IOException
IOException
public static List<ResourceAssetStructure> getResourceAssetList(RestResponse assetResponse)
public static ResourceDetailedAssetStructure getResourceAssetMetadata(RestResponse assetResponse)
public static void generalMetadataFieldsValidatior(AssetStructure assetMetadata, Component component)
public static void resourceMetadataValidatior(ResourceDetailedAssetStructure resourceAssetMetadata, Resource resource, AssetTypeEnum assetType)
public static void serviceMetadataValidatior(ServiceDetailedAssetStructure serviceAssetMetadata, Service service, AssetTypeEnum assetType)
public static ServiceDetailedAssetStructure getServiceAssetMetadata(RestResponse assetResponse)
public static void setArtifactAssetList(List<ArtifactAssetStructure> artifactsList, com.google.gson.JsonObject jObject)
public static void setResourceInstanceAssetList(List<ResourceInstanceAssetStructure> resourcesList, com.google.gson.JsonObject jObject)
public static List<ServiceAssetStructure> getServiceAssetList(RestResponse assetResponse)
public static List<String> getResourceNamesList(List<ResourceAssetStructure> resourceAssetList)
public static List<String> getServiceNamesList(List<ServiceAssetStructure> serviceAssetList)
public static void checkResourceTypeInObjectList(List<ResourceAssetStructure> resourceAssetList, ResourceTypeEnum resourceType)
Copyright © 2017. All rights reserved.