public class PropertyRestUtils extends BaseRestUtils
acceptHeaderData, acceptJsonHeader, acceptOctetHeader, acceptOctetStream, authorizationHeader, authorizationPrefixString, contentTypeHeaderData, 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 |
---|
PropertyRestUtils() |
addAuthorizeHeader, encodeUrlForDownload, prepareHeadersMap, prepareHeadersMap, sendDelete, sendGet, sendGet, sendGetAndRemoveHeaders, sendPost, sendPost, sendPost, sendPut
checkCreateResponse, checkDeleteResponse, checkErrorCode, checkErrorMessageResponse, checkErrorResponse, checkStatusCode, checkSuccess
public static RestResponse createProperty(String resourceId, String body, User user) throws Exception
Exception
public static RestResponse updateProperty(String resourceId, String propertyId, String body, User user) throws Exception
Exception
public static RestResponse getProperty(String resourceId, String propertyId, User user) throws Exception
Exception
public static RestResponse deleteProperty(String resourceId, String propertyId, User user) throws Exception
Exception
public static ComponentInstanceProperty getPropFromListByPropNameAndType(List<ComponentInstanceProperty> propList, String propNameToUpdate, String propTypeToUpdate)
public static ComponentInstanceProperty getPropFromListByPropNameTypeAndPath(List<ComponentInstanceProperty> propList, String propNameToUpdate, String propTypeToUpdate, List<String> path)
public static ComponentInstanceProperty getPropFromListByPropIdAndPath(List<ComponentInstanceProperty> propList, String propId, List<String> path)
public static void comparePropertyLists(List<ComponentInstanceProperty> expectedList, List<ComponentInstanceProperty> actualList, Boolean isUpdate)
public static Boolean comparePropertyObjects(ComponentInstanceProperty expectedCompInstProp, ComponentInstanceProperty actualCompInstProp, Boolean isUpdate)
public static List<ComponentInstanceProperty> addResourcePropertiesToList(Resource resource, List<ComponentInstanceProperty> listToFill)
public static List<ComponentInstanceProperty> addComponentInstPropertiesToList(Component component, List<ComponentInstanceProperty> listToFill, String componentId)
public static ComponentInstanceProperty getCompPropInstListByInstIdAndPropName(Component component, ComponentInstance componentInstanceDetails, String name, String type)
public static void updatePropertyListWithPathOnResource(ComponentInstance componentInstDetails, Resource resource, List<ComponentInstanceProperty> list, Component container)
public static void updatePropertyListWithPathOnComponentInstance(ComponentInstance componentInstDetails, Service service, List<ComponentInstanceProperty> list)
Copyright © 2017. All rights reserved.