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

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


    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) {
View Full Code Here


      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

      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

    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

      throws SessionExpiredException {
    try {
      return cancelUpdateView(sessionId, getLoggedInUser(sessionId), xViewModel);
    } catch (PaloGwtCoreException e) {
      UserSession userSession = getUserSession(sessionId);
      throw new SessionExpiredException(userSession.translate("noAccount"), e);
    }
  }

  public synchronized XViewModel proceedReload(String sessionId, XViewModel xViewModel)
      throws SessionExpiredException {
View Full Code Here

      removeLocalFilter(model);
      model.setNeedsRestore(true);
      return model;
    } catch (PaloGwtCoreException e) {     
      UserSession userSession = getUserSession(sessionId);
      throw new SessionExpiredException(userSession.translate("noAccount"), e);
    }
  }
 
  public XViewModel proceedUpdateViewWithoutTable(String sessionId, XViewModel xViewModel)
      throws SessionExpiredException {
View Full Code Here

      throws SessionExpiredException {
    try {
      return proceedUpdateViewWithoutTable(sessionId, getLoggedInUser(sessionId), xViewModel);
    } catch (PaloGwtCoreException e) {
      UserSession userSession = getUserSession(sessionId);
      throw new SessionExpiredException(userSession.translate("noAccount"), e);
    }
  }

  public boolean containsElement(String sessionId, String axisHierarchyId, String viewId, String axisId, XElement element, XSubset subset)
      throws SessionExpiredException, PaloGwtCoreException {
View Full Code Here

  public XPrintResult generatePDF(String sessionId, XViewModel xViewModel, XPrintConfiguration config) throws SessionExpiredException {
    try {
      return generatePdf(sessionId, getLoggedInUser(sessionId), xViewModel, config);
    } catch (PaloGwtCoreException e) {
      UserSession userSession = getUserSession(sessionId);
      throw new SessionExpiredException(userSession.translate("noAccount"), e);
    }   
  }

  public void deleteFile(String fileName) {
    new File(fileName).delete();
View Full Code Here

    } catch (OperationFailedException e) {
      e.printStackTrace();
      UserSession usrSession = getUserSession(sessionId);
     
      throw new DbOperationFailedException(
          usrSession.translate("couldNotSave", obj.getName(), e.getLocalizedMessage()), e);
    }
    return null;
  }

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

              CubeViewReader.CHECK_RIGHTS = true;
            }
          }                       
        } catch (SQLException e) {
          UserSession userSession = getUserSession(sessionId);         
          throw new OperationFailedException(userSession.translate("deletionFailed"));
        }
        delete(sessionId, getNative(sessionId, (XUser) xObj));
      }

    } catch (OperationFailedException 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.