Examples of DbOperationFailedException


Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

      saveRoot(sessionId, root);
//      print(root, 0);
      return xStaticFolder;
    } catch (OperationFailedException e) {
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(
          userSession.translate("couldNotCreateFolder", name, e.getLocalizedMessage()), e);
    } catch (PaloIOException e) {
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(
          userSession.translate("couldNotCreateFolder", name, e.getLocalizedMessage()), e);
    }
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

        //folderService.save(folder.getRoot());
        saveRoot(sessionId, root);
      }
    } catch (OperationFailedException e) {
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(
          userSession.translate("couldNotDelete", xFolder.getName(), e.getLocalizedMessage()), e);
    } catch (PaloIOException e) {
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(
          userSession.translate("couldNotDelete", xFolder.getName(), e.getLocalizedMessage()), e);
    }
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

        saveRoot(sessionId, root);
      }
    } catch (OperationFailedException e) {
      e.printStackTrace();
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(
          userSession.translate("couldNotDelete", xFolderElement.getName(), e.getLocalizedMessage()), e);
    } catch (PaloIOException e) {
      e.printStackTrace();
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(
          userSession.translate("couldNotDelete", xFolderElement.getName(), e.getLocalizedMessage()), e);
    }
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

      try {
        userSession = getUserSession(sessionId);
      } catch (SessionExpiredException e) {
      }
      if (userSession != null) {
        throw new DbOperationFailedException(
          userSession.translate("couldNotImportView", xView.getName(), t.getLocalizedMessage()), t);
      } else {
        throw new DbOperationFailedException("Could not import view!");
      }
    }
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

     
      saveRoot(sessionId, root);
    } catch (PaloIOException ope) {
      ope.printStackTrace();
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(userSession.translate("couldNotMoveFolderElements", ope.getLocalizedMessage()), ope);
    }
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

          }         
        }
      }
    }
    if (!mayWrite) {
      throw new DbOperationFailedException("Not enough rights to rename folder '" +
          folder.getName() + "'.");
    }
    //    ExplorerTreeNode folder = folderService.getTreeNode(xFolderElement
    //        .getId());
    ExplorerTreeNode root = null;
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

    } catch (OperationFailedException e) {
      if (e.getCause() != null && e.getCause().getMessage() != null && e.getCause().getMessage().toLowerCase().indexOf("not enough rights") != -1) {
        return null;
      }
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(userSession.translate("couldNotSave", xViewModel.getName(),
          e.getLocalizedMessage()),
          e);
    } catch (Throwable t) {
      if (t.getMessage() != null && t.getMessage().toLowerCase().indexOf("not enough rights") != -1) {
        return null;
      }
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(userSession.translate("couldNotSave", xViewModel.getName(),
          t.getLocalizedMessage()),
          t);
    }       
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

    try {
     
      return saveAs(sessionId, name, xViewModel);
    } catch (OperationFailedException e) {
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(userSession.translate("couldNotSave", xViewModel.getName(),
          e.getLocalizedMessage()),
          e);
    } catch (Throwable t) {
      t.printStackTrace();
      if (t.getMessage() != null && t.getMessage().toLowerCase().indexOf("not enough rights") != -1) {
        return null;
      }
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(userSession.translate("couldNotSave", xViewModel.getName(),
          t.getLocalizedMessage()),
          t);
    }
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

      return;
    try {
      delete(sessionId, view);
    } catch (OperationFailedException e) {
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(userSession.translate("couldNotDelete", view.getName(),
          e.getLocalizedMessage()),
          e);
    }
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

    try {
      rename(sessionId, xView, newName);
      xView.setName(newName);
    } catch (OperationFailedException e) {
      UserSession userSession = getUserSession(sessionId);
      throw new DbOperationFailedException(userSession.translate("couldNotRename", xView.getName(),
          e.getLocalizedMessage()),
          e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.