Package com.tensegrity.palo.gwt.core.server.services

Examples of com.tensegrity.palo.gwt.core.server.services.UserSession.translate()


//      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


      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);
    }
  }

  public void deleteFolder(String sessionId, XStaticFolder xFolder)
      throws DbOperationFailedException, SessionExpiredException {
View Full Code Here

        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

      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);
    }
  }

  private final void deleteFolder(String sessionId, FolderService folderService, StaticFolder folder) throws OperationFailedException, SessionExpiredException {
    if (folder != null) {
View Full Code Here

      }
    } 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

          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);
    }
  }

  public XFolderElement createFolderElement(String sessionId, XView xView,
      XStaticFolder xParentFolder, boolean isPublic, boolean isEditable) throws DbOperationFailedException,
View Full Code Here

        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

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

//  private final ExplorerTreeNode getTreeNode(String sessionId, XFolderElement xf) throws
//    OperationFailedException, SessionExpiredException {
View Full Code Here

    } 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;
View Full Code Here

    } 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

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.