Search in sources :

Example 1 with WFDirectoryParam

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);
}
Also used : WFDirectoryRestRep(com.emc.vipr.model.catalog.WFDirectoryRestRep) URI(java.net.URI) WFDirectoryParam(com.emc.vipr.model.catalog.WFDirectoryParam)

Aggregations

WFDirectoryParam (com.emc.vipr.model.catalog.WFDirectoryParam)1 WFDirectoryRestRep (com.emc.vipr.model.catalog.WFDirectoryRestRep)1 URI (java.net.URI)1