Search in sources :

Example 6 with CustomServicesPrimitiveUpdateParam

use of com.emc.storageos.model.customservices.CustomServicesPrimitiveUpdateParam in project coprhd-controller by CoprHD.

the class CustomServicesRESTApiPrimitiveDAO method updateInput.

private static StringSetMap updateInput(final UpdatePrimitive<CustomServicesDBRESTApiPrimitive> update) {
    final CustomServicesPrimitiveUpdateParam param = update.param();
    final CustomServicesDBRESTApiPrimitive primitive = update.primitive();
    final StringSetMap input = CustomServicesDBHelper.updateInput(REQUEST_INPUT_TYPES, param.getInput(), primitive);
    if (null != param.getAttributes() && (null != param.getAttributes().get(CustomServicesConstants.BODY) || null != param.getAttributes().get(CustomServicesConstants.PATH))) {
        final StringSet updateParams = updateInputParams(param.getAttributes(), primitive);
        input.put(CustomServicesConstants.INPUT_PARAMS.toString(), updateParams);
    }
    primitive.setInput(input);
    return input;
}
Also used : StringSetMap(com.emc.storageos.db.client.model.StringSetMap) CustomServicesPrimitiveUpdateParam(com.emc.storageos.model.customservices.CustomServicesPrimitiveUpdateParam) StringSet(com.emc.storageos.db.client.model.StringSet) CustomServicesDBRESTApiPrimitive(com.emc.storageos.db.client.model.uimodels.CustomServicesDBRESTApiPrimitive)

Aggregations

CustomServicesPrimitiveUpdateParam (com.emc.storageos.model.customservices.CustomServicesPrimitiveUpdateParam)6 CustomServicesPrimitiveRestRep (com.emc.storageos.model.customservices.CustomServicesPrimitiveRestRep)5 InputUpdateParam (com.emc.storageos.model.customservices.InputUpdateParam)4 OutputUpdateParam (com.emc.storageos.model.customservices.OutputUpdateParam)4 URI (java.net.URI)4 URISyntaxException (java.net.URISyntaxException)4 CustomServicesPrimitiveResourceRestRep (com.emc.storageos.model.customservices.CustomServicesPrimitiveResourceRestRep)2 CustomServicesWorkflowList (com.emc.storageos.model.customservices.CustomServicesWorkflowList)2 StringSet (com.emc.storageos.db.client.model.StringSet)1 StringSetMap (com.emc.storageos.db.client.model.StringSetMap)1 CustomServicesDBRESTApiPrimitive (com.emc.storageos.db.client.model.uimodels.CustomServicesDBRESTApiPrimitive)1 InputUpdateList (com.emc.storageos.model.customservices.InputUpdateParam.InputUpdateList)1