public class InputsRestUtils 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 |
---|
InputsRestUtils() |
Modifier and Type | Method and Description |
---|---|
static RestResponse |
addInput(Component component,
ComponentInstInputsMap inputs,
UserRoleEnum userRole)
Add inputs to service
|
static RestResponse |
deleteInputFromComponent(Component parentComponent,
String inputId)
Delete input from component
|
static RestResponse |
deleteInputFromComponent(String componentType,
String componentId,
String inputUniqueId)
Delete input from component
|
static RestResponse |
getComponentInputs(Component component)
Get all Component inputs
|
static RestResponse |
getComponentInstanceInputs(Component parentComponent,
ComponentInstance componentInstance)
Get all inputs of component instance
|
addAuthorizeHeader, encodeUrlForDownload, prepareHeadersMap, prepareHeadersMap, sendDelete, sendGet, sendGet, sendGetAndRemoveHeaders, sendPost, sendPost, sendPost, sendPut
checkCreateResponse, checkDeleteResponse, checkErrorCode, checkErrorMessageResponse, checkErrorResponse, checkStatusCode, checkSuccess
public static RestResponse addInput(Component component, ComponentInstInputsMap inputs, UserRoleEnum userRole) throws Exception
component
- inputs
- userRole
- RestResponse
Exception
public static RestResponse getComponentInputs(Component component) throws Exception
component
- RestResponse
Exception
public static RestResponse getComponentInstanceInputs(Component parentComponent, ComponentInstance componentInstance) throws Exception
parentComponent
- componentInstance
- RestResponse
Exception
public static RestResponse deleteInputFromComponent(Component parentComponent, String inputId) throws Exception
parentComponent
- inputId
- RestResponse
Exception
public static RestResponse deleteInputFromComponent(String componentType, String componentId, String inputUniqueId) throws Exception
componentType
- componentId
- inputUniqueId
- RestResponse
Exception
Copyright © 2017. All rights reserved.