Search in sources :

Example 1 with OrderTextCreator

use of com.emc.storageos.db.client.util.OrderTextCreator in project coprhd-controller by CoprHD.

the class SupportPackageCreator method getOrderTextCreator.

private OrderTextCreator getOrderTextCreator(OrderRestRep order) {
    ViPRCatalogClient2 client = catalogApi();
    OrderTextCreator creator = new OrderTextCreator();
    creator.setOrder(order);
    creator.setService(client.services().get(order.getCatalogService()));
    creator.setState(client.orders().getExecutionState(order.getId()));
    creator.setLogs(client.orders().getLogs(order.getId()));
    creator.setExeLogs(client.orders().getExecutionLogs(order.getId()));
    return creator;
}
Also used : OrderTextCreator(com.emc.storageos.db.client.util.OrderTextCreator) ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Aggregations

OrderTextCreator (com.emc.storageos.db.client.util.OrderTextCreator)1 ViPRCatalogClient2 (com.emc.vipr.client.ViPRCatalogClient2)1