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;
}
Aggregations