use of com.emc.storageos.model.DataObjectRestRep in project coprhd-controller by CoprHD.
the class CatalogApi method browseCatalog.
public static void browseCatalog(String sp1, String sp2, String sp3, String sp4, String sp5) {
CatalogCategoryRestRep catalogCategory = CatalogCategoryUtils.getRootCategory();
DataObjectRestRep result = findCategoryOrService(catalogCategory, sp1, sp2, sp3, sp4, sp5);
if (result instanceof CatalogCategoryRestRep) {
renderApi(newCategoryInfo((CatalogCategoryRestRep) result));
} else if (result instanceof CatalogServiceRestRep) {
renderApi(newServiceInfo((CatalogServiceRestRep) result));
}
}
Aggregations