use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.
the class ExecutionWindowUtils method getExecutionWindows.
public static List<ExecutionWindowRestRep> getExecutionWindows() {
ViPRCatalogClient2 catalog = getCatalogClient();
List<NamedRelatedResourceRep> reps = catalog.executionWindows().listByUserTenant();
return catalog.executionWindows().getByRefs(reps);
}
use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.
the class ExecutionWindowUtils method deleteExecutionWindow.
public static void deleteExecutionWindow(ExecutionWindowRestRep executionWindow) {
if (executionWindow != null) {
ViPRCatalogClient2 catalog = getCatalogClient();
catalog.executionWindows().deactivate(executionWindow.getId());
}
}
use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.
the class ExecutionWindowUtils method getExecutionWindow.
public static ExecutionWindowRestRep getExecutionWindow(String name, URI tenantId) {
ViPRCatalogClient2 catalog = getCatalogClient();
List<ExecutionWindowRestRep> executionWindows = catalog.executionWindows().getByTenant(tenantId);
for (ExecutionWindowRestRep executionWindow : executionWindows) {
if (name.equals(executionWindow.getName())) {
return executionWindow;
}
}
return null;
}
use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.
the class CatalogCategoryUtils method moveUpCategory.
public static void moveUpCategory(URI catalogCategoryId) {
ViPRCatalogClient2 catalog = getCatalogClient();
catalog.categories().moveUp(catalogCategoryId);
}
use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.
the class CatalogCategoryUtils method moveDownCategory.
public static void moveDownCategory(URI catalogCategoryId) {
ViPRCatalogClient2 catalog = getCatalogClient();
catalog.categories().moveDown(catalogCategoryId);
}
Aggregations