Examples of EMFInternalError


Examples of it.eng.spago.error.EMFInternalError

      objTemp = toObjTemplate(hibObjTemp);
      tx.commit();
    }catch(HibernateException he){
      logException(he);
      if (tx != null) tx.rollback()
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "100")
    }finally{
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
      }
    }
View Full Code Here

Examples of it.eng.spago.error.EMFInternalError

      }
      tx.commit();
    }catch(HibernateException he){
      logException(he);
      if (tx != null) tx.rollback()
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "100")
    }finally{
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
      }
    }
View Full Code Here

Examples of it.eng.spago.error.EMFInternalError

      }
      tx.commit();
    }catch(HibernateException he){
      logException(he);
      if (tx != null) tx.rollback()
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "100")
    }finally{
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
      }
    }
View Full Code Here

Examples of it.eng.spago.error.EMFInternalError

      }
      tx.commit();
    }catch(HibernateException he){
      logException(he);
      if (tx != null) tx.rollback()
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "100")
    }finally{
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
      }
    }
View Full Code Here

Examples of it.eng.spago.error.EMFInternalError

      }
      tx.commit();
    }catch(HibernateException he){
      logException(he);
      if (tx != null) tx.rollback()
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "100")
    }finally{
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
      }
    }
View Full Code Here

Examples of it.eng.spago.error.EMFInternalError

      aSession.delete(hibObjTemp);
      tx.commit();
    }catch(HibernateException he){
      logException(he);
      if (tx != null) tx.rollback()
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "100")
    }finally{
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
      }
    }   
View Full Code Here

Examples of it.eng.spago.error.EMFInternalError

    Monitor monitor =MonitorFactory.start("spagobi.core.ObjectAccessVerifier.canSee(BIObject obj, IEngUserProfile profile)");
    boolean canSee = false;
    if (obj == null){
      logger.warn("BIObject in input is null!!");
      monitor.stop();
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "BIObject in input is null!!");
    }
    if (profile == null){
      logger.warn("User profile in input is null!!");
      monitor.stop();
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "User profile in input is null!!");
    }
    String state = obj.getStateCode();
    if ("SUSP".equalsIgnoreCase(state)) {
      monitor.stop();
      return false;
    }


    List foldersId = obj.getFunctionalities();
    if (foldersId == null || foldersId.size() == 0){
      logger.warn("BIObject does not belong to any functionality!!");
      monitor.stop();
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "BIObject does not belong to any functionality!!");
    }
    Iterator foldersIdIt = foldersId.iterator();
    while (foldersIdIt.hasNext()) {
      Integer folderId = (Integer) foldersIdIt.next();
      boolean canDev = canDev(state, folderId, profile);
View Full Code Here

Examples of it.eng.spago.error.EMFInternalError

      }
    } catch (EMFUserError eex) {
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      EMFInternalError internalError = new EMFInternalError(EMFErrorSeverity.ERROR, ex);
      errorHandler.addError(internalError);
      return;
    }
  }
View Full Code Here

Examples of it.eng.spago.error.EMFInternalError

   
  }
 
  private BIObjectParameter reloadBIObjectParameter(Integer objId, String objParUrlName) throws EMFInternalError, EMFUserError {
    if (objId == null || objId.intValue() < 0 || objParUrlName == null || objParUrlName.trim().equals(""))
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "Invalid input data for method reloadBIObjectParameter in DetailBIObjectModule");
    BIObjectParameter objPar = null;
    try {
      IBIObjectParameterDAO objParDAO = DAOFactory.getBIObjectParameterDAO();
      List paruses = objParDAO.loadBIObjectParametersById(objId);
      Iterator it = paruses.iterator();
View Full Code Here

Examples of it.eng.spago.error.EMFInternalError

      }
    } catch (EMFUserError eex) {
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      EMFInternalError internalError = new EMFInternalError(EMFErrorSeverity.ERROR, ex);
      errorHandler.addError(internalError);
      return;
    }
  }
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.