use of com.emc.vipr.model.catalog.WFDirectoryParam in project coprhd-controller by CoprHD.
the class WorkflowBuilder method createWFDir.
public static void createWFDir(String name, String parent) throws URISyntaxException {
WFDirectoryParam param = new WFDirectoryParam();
param.setName(name);
// Ignoring root parent
URI parentURI = null;
if (null != parent) {
parentURI = MY_LIBRARY_ROOT.equals(parent) ? null : new URI(parent);
}
param.setParent(parentURI);
WFDirectoryRestRep wfDirectoryRestRep = getCatalogClient().wfDirectories().create(param);
renderJSON(wfDirectoryRestRep);
}
Aggregations