use of controllers.util.FlashException in project coprhd-controller by CoprHD.
the class Orders method rollbackTask.
@FlashException(referrer = { "receiptContent" })
public static void rollbackTask(String orderId, String taskId) {
if (StringUtils.isNotBlank(taskId)) {
ViPRCoreClient client = BourneUtil.getViprClient();
client.tasks().rollback(uri(taskId));
flash.put("info", MessagesUtils.get("resources.tasks.rollbackMessage", taskId));
}
receipt(orderId);
}
use of controllers.util.FlashException in project coprhd-controller by CoprHD.
the class ScheduledOrders method edit.
@FlashException("list")
public static void edit(String id) {
OrderDetails details = new OrderDetails(id);
details.catalogService = CatalogServiceUtils.getCatalogService(details.order.getCatalogService());
ScheduleEventForm scheduleEventForm = new ScheduleEventForm(details);
angularRenderArgs().put("scheduler", scheduleEventForm);
render(scheduleEventForm, details);
}
use of controllers.util.FlashException in project coprhd-controller by CoprHD.
the class BlockVolumes method deleteContinuousCopy.
@FlashException(referrer = { "volume" })
public static void deleteContinuousCopy(String volumeId, String continuousCopyId) {
if (StringUtils.isNotBlank(volumeId) && StringUtils.isNotBlank(continuousCopyId)) {
ViPRCoreClient client = BourneUtil.getViprClient();
CopiesParam input = createCopiesParam(continuousCopyId);
Tasks<VolumeRestRep> tasks = client.blockVolumes().deactivateContinuousCopies(uri(volumeId), input, VolumeDeleteTypeEnum.FULL);
flash.put("info", MessagesUtils.get("resources.continuouscopy.deactivate"));
}
volume(volumeId, continuousCopyId);
}
use of controllers.util.FlashException in project coprhd-controller by CoprHD.
the class BlockVolumes method pauseMigration.
@FlashException(referrer = { "volume" })
public static void pauseMigration(String volumeId, String migrationId) {
if (StringUtils.isNotBlank(volumeId) && StringUtils.isNotBlank(migrationId)) {
ViPRCoreClient client = BourneUtil.getViprClient();
client.blockMigrations().pause(uri(migrationId));
flash.put("info", MessagesUtils.get("resources.migrations.pause"));
}
volume(volumeId, null);
}
use of controllers.util.FlashException in project coprhd-controller by CoprHD.
the class BlockVolumes method pauseContinuousCopy.
@FlashException(referrer = { "volume" })
public static void pauseContinuousCopy(String volumeId, String continuousCopyId) {
if (StringUtils.isNotBlank(volumeId) && StringUtils.isNotBlank(continuousCopyId)) {
ViPRCoreClient client = BourneUtil.getViprClient();
CopiesParam input = createCopiesParam(continuousCopyId);
Tasks<VolumeRestRep> tasks = client.blockVolumes().pauseContinuousCopies(uri(volumeId), input);
flash.put("info", MessagesUtils.get("resources.continuouscopy.pause"));
}
volume(volumeId, null);
}
Aggregations