Esempio n. 1
0
 @FlashException("list")
 public static void detachStorage(@As(",") String[] ids) {
   for (URI id : ResourceUtils.uris(ids)) {
     VCenterUtils.detachStorage(id);
   }
   flash.success(MessagesUtils.get(DETACH_STORAGE));
   list();
 }
Esempio n. 2
0
 @FlashException("list")
 public static void delete(@As(",") String[] ids, boolean detachStorage) {
   for (URI id : ResourceUtils.uris(ids)) {
     VCenterUtils.deactivateVCenter(id, detachStorage);
   }
   flash.success(MessagesUtils.get(DELETED));
   list();
 }