Search in sources :

Example 6 with DataObjectRestRep

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));
    }
}
Also used : DataObjectRestRep(com.emc.storageos.model.DataObjectRestRep) CatalogServiceRestRep(com.emc.vipr.model.catalog.CatalogServiceRestRep) CatalogCategoryRestRep(com.emc.vipr.model.catalog.CatalogCategoryRestRep)

Aggregations

DataObjectRestRep (com.emc.storageos.model.DataObjectRestRep)6 AssetOption (com.emc.vipr.model.catalog.AssetOption)2 CatalogCategoryRestRep (com.emc.vipr.model.catalog.CatalogCategoryRestRep)2 CatalogServiceRestRep (com.emc.vipr.model.catalog.CatalogServiceRestRep)2 ResourceType (com.emc.sa.util.ResourceType)1 URIUtil (com.emc.storageos.db.client.URIUtil)1 BucketRestRep (com.emc.storageos.model.object.BucketRestRep)1 WorkflowStepRestRep (com.emc.storageos.model.workflow.WorkflowStepRestRep)1 URI (java.net.URI)1 Util (play.mvc.Util)1 StringOption (util.StringOption)1