Package org.apache.openmeetings.db.entity.basic

Examples of org.apache.openmeetings.db.entity.basic.ErrorValue


   * @return - error with the code given
   */
  public ErrorResult getErrorByCode(String SID, long errorid, long langId) {
    try {
      if (errorid < 0) {
        ErrorValue eValues = errorDao.get(-1 * errorid);
        if (eValues != null) {
          ErrorType eType = errorDao.getErrorType(eValues.getErrortype_id());
          log.debug("eValues.getFieldvalues_id() = " + eValues.getFieldvalues_id());
          log.debug("eValues.getErrorType() = " + eType);
          String eValue = labelDao.getString(eValues.getFieldvalues_id(), langId);
          String tValue = labelDao.getString(eType.getFieldvalues_id(), langId);
          if (eValue != null) {
            return new ErrorResult(errorid, eValue, tValue);
          }
        }
View Full Code Here


        strategy.remove();
      }
    } else {
      strategy.remove();
      if (ws.getLoginError() != null) {
        ErrorValue eValue = getBean(ErrorDao.class).get(-1 * ws.getLoginError());
        if (eValue != null) {
          error(WebSession.getString(eValue.getFieldvalues_id()));
          target.add(feedback);
        }
      }
      shake(target);
    }
View Full Code Here

   * @return - error with the code given
   */
  public ErrorResult getErrorByCode(String SID, long errorid, long langId) {
    try {
      if (errorid < 0) {
        ErrorValue eValues = errorDao.get(-1 * errorid);
        if (eValues != null) {
          ErrorType eType = errorDao.getErrorType(eValues.getErrortype_id());
          log.debug("eValues.getFieldvalues_id() = " + eValues.getFieldvalues_id());
          log.debug("eValues.getErrorType() = " + eType);
          String eValue = labelDao.getString(eValues.getFieldvalues_id(), langId);
          String tValue = labelDao.getString(eType.getFieldvalues_id(), langId);
          if (eValue != null) {
            return new ErrorResult(errorid, eValue, tValue);
          }
        }
View Full Code Here

   * @return - ErrorResult object with the id given
   */
  public ErrorResult getErrorByCode(String SID, Long errorid, Long langId) {
    if (errorid < 0) {
      log.debug("errorid, language_id: " + errorid + "|" + langId);
      ErrorValue eValues = errorDao.get(-1 * errorid);
      if (eValues != null) {
        ErrorType eType = errorDao.getErrorType(eValues.getErrortype_id());
        log.debug("eValues.getFieldvalues_id() = " + eValues.getFieldvalues_id());
        log.debug("eValues.getErrorType() = " + eType);
        String eValue = labelDao.getString(eValues.getFieldvalues_id(), langId);
        String tValue = labelDao.getString(eType.getFieldvalues_id(), langId);
        if (eValue != null) {
          return new ErrorResult(errorid, eValue, tValue);
        }
      }
View Full Code Here

   * @return - error with the code given
   */
  public ErrorResult getErrorByCode(String SID, long errorid, long langId) {
    try {
      if (errorid < 0) {
        ErrorValue eValues = errorDao.get(-1 * errorid);
        if (eValues != null) {
          ErrorType eType = errorDao.getErrorType(eValues.getErrortype_id());
          log.debug("eValues.getFieldvalues_id() = " + eValues.getFieldvalues_id());
          log.debug("eValues.getErrorType() = " + eType);
          String eValue = labelDao.getString(eValues.getFieldvalues_id(), langId);
          String tValue = labelDao.getString(eType.getFieldvalues_id(), langId);
          if (eValue != null) {
            return new ErrorResult(errorid, eValue, tValue);
          }
        }
View Full Code Here

        strategy.remove();
      }
    } else {
      strategy.remove();
      if (ws.getLoginError() != null) {
        ErrorValue eValue = getBean(ErrorDao.class).get(-1 * ws.getLoginError());
        if (eValue != null) {
          error(WebSession.getString(eValue.getFieldvalues_id()));
          target.add(feedback);
        }
      }
      shake(target);
    }
View Full Code Here

  }

  public Long addErrorValues(Long errorvalues_id, Long errortype_id,
      Long fieldvalues_id) {
    try {
      ErrorValue eValue = new ErrorValue();
      eValue.setErrorvalues_id(errorvalues_id);
      eValue.setErrortype_id(errortype_id);
      eValue.setDeleted(false);
      eValue.setStarttime(new Date());
      eValue.setFieldvalues_id(fieldvalues_id);
      eValue = em.merge(eValue);
      return eValue.getErrorvalues_id();
    } catch (Exception ex2) {
      log.error("[addErrorValues]: ", ex2);
    }
    return null;
  }
View Full Code Here

    return null;
  }

  public Long getErrorValueById(Long errortype_id, Long fieldvalues_id) {
    try {
      ErrorValue eValue = new ErrorValue();
      eValue.setErrortype_id(errortype_id);
      eValue.setStarttime(new Date());
      eValue.setFieldvalues_id(fieldvalues_id);
      eValue = em.merge(eValue);
      Long newerrorvalues_id = eValue.getErrorvalues_id();
      return newerrorvalues_id;
    } catch (Exception ex2) {
      log.error("[getErrorValueById]: ", ex2);
    }
    return null;
View Full Code Here

    return null;
  }

  public Long updateErrorValues(Long errortype_id, Long fieldvalues_id) {
    try {
      ErrorValue eValue = new ErrorValue();
      eValue.setErrortype_id(errortype_id);
      eValue.setStarttime(new Date());
      eValue.setFieldvalues_id(fieldvalues_id);
      eValue = em.merge(eValue);
      Long newerrorvalues_id = eValue.getErrorvalues_id();
      return newerrorvalues_id;
    } catch (Exception ex2) {
      log.error("[addErrorType]: ", ex2);
    }
    return null;
View Full Code Here

  public ErrorValue get(Long id) {
    try {
      TypedQuery<ErrorValue> query = em.createNamedQuery("getErrorValueById", ErrorValue.class);
      query.setParameter("id", id);
      ErrorValue e = null;
      try {
        e = query.getSingleResult();
      } catch (NoResultException ex) {
      }
      return e;
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.entity.basic.ErrorValue

Copyright © 2018 www.massapicom. 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.