Search in sources :

Example 11 with ViPRCatalogClient2

use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.

the class CatalogCategoryUtils method resetCatalogCategory.

public static void resetCatalogCategory(URI tenantId) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    catalog.categories().resetCatalog(tenantId);
}
Also used : ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Example 12 with ViPRCatalogClient2

use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.

the class OrderUtils method deleteOrders.

public static void deleteOrders(Date startDate, Date endDate, URI tenantId) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    catalog.orders().deleteOrders(dateToLongStr(startDate), dateToLongStr(endDate), tenantId, null);
}
Also used : ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Example 13 with ViPRCatalogClient2

use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.

the class OrderUtils method cancelOrder.

public static void cancelOrder(URI orderId) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    catalog.orders().cancelOrder(orderId);
}
Also used : ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Example 14 with ViPRCatalogClient2

use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.

the class CatalogServiceUtils method moveDownServiceField.

public static void moveDownServiceField(URI catalogServiceId, String fieldName) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    catalog.services().moveDownField(catalogServiceId, fieldName);
}
Also used : ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Example 15 with ViPRCatalogClient2

use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.

the class CatalogServiceUtils method moveDownService.

public static void moveDownService(URI catalogServiceId) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    catalog.services().moveDown(catalogServiceId);
}
Also used : ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Aggregations

ViPRCatalogClient2 (com.emc.vipr.client.ViPRCatalogClient2)32 OrderRestRep (com.emc.vipr.model.catalog.OrderRestRep)7 ApprovalRestRep (com.emc.vipr.model.catalog.ApprovalRestRep)4 CatalogServiceRestRep (com.emc.vipr.model.catalog.CatalogServiceRestRep)4 NamedRelatedResourceRep (com.emc.storageos.model.NamedRelatedResourceRep)2 ViPRHttpException (com.emc.vipr.client.exceptions.ViPRHttpException)2 URI (java.net.URI)2 Date (java.util.Date)2 OrderTextCreator (com.emc.storageos.db.client.util.OrderTextCreator)1 AssetDependencyRequest (com.emc.vipr.model.catalog.AssetDependencyRequest)1 AssetOptionsRequest (com.emc.vipr.model.catalog.AssetOptionsRequest)1 ExecutionLogRestRep (com.emc.vipr.model.catalog.ExecutionLogRestRep)1 ExecutionStateRestRep (com.emc.vipr.model.catalog.ExecutionStateRestRep)1 ExecutionWindowRestRep (com.emc.vipr.model.catalog.ExecutionWindowRestRep)1 OrderLogRestRep (com.emc.vipr.model.catalog.OrderLogRestRep)1 Reference (com.emc.vipr.model.catalog.Reference)1 ScheduledEventRestRep (com.emc.vipr.model.catalog.ScheduledEventRestRep)1 ApprovalRequestInfo (models.datatable.ApprovalsDataTable.ApprovalRequestInfo)1 DateTime (org.joda.time.DateTime)1 Util (play.mvc.Util)1