Search in sources :

Example 1 with CustomServicesDBRESTApiPrimitive

use of com.emc.storageos.db.client.model.uimodels.CustomServicesDBRESTApiPrimitive 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

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 CustomServicesPrimitiveUpdateParam (com.emc.storageos.model.customservices.CustomServicesPrimitiveUpdateParam)1