Package org.openmeetings.app.persistence.beans.lang

Examples of org.openmeetings.app.persistence.beans.lang.Fieldlanguagesvalues


    try {
      if (errorid < 0) {
        ErrorValues eValues = errorManagement
            .getErrorValuesById(errorid * (-1));
        if (eValues != null) {
          Fieldlanguagesvalues errorValue = fieldmanagment
              .getFieldByIdAndLanguage(
                  eValues.getFieldvalues_id(), language_id);
          Fieldlanguagesvalues typeValue = fieldmanagment
              .getFieldByIdAndLanguage(errorManagement
                  .getErrorType(eValues.getErrortype_id())
                  .getFieldvalues_id(), language_id);
          if (errorValue != null) {
            return new ErrorResult(errorid, errorValue.getValue(),
                typeValue.getValue());
          }
        }
      } else {
        return new ErrorResult(errorid,
            "Error ... please check your input", "Error");
View Full Code Here


        // log.debug(eValues.getFieldvalues().getFieldvalues_id());
        log.debug("eValues.getErrorType() = " + errorManagement.getErrorType(eValues.getErrortype_id()));
        // log.debug(eValues.getErrorType().getErrortype_id());
        // log.debug(eValues.getErrorType().getFieldvalues());
        // log.debug(eValues.getErrorType().getFieldvalues().getFieldvalues_id());
        Fieldlanguagesvalues errorValue = fieldmanagment
            .getFieldByIdAndLanguage(eValues.getFieldvalues_id(),
                language_id);
        Fieldlanguagesvalues typeValue = fieldmanagment
            .getFieldByIdAndLanguage(errorManagement.getErrorType(eValues.getErrortype_id())
                .getFieldvalues_id(), language_id);
        if (errorValue != null) {
          return new ErrorResult(errorid, errorValue.getValue(),
              typeValue.getValue());
        }
      }
    } else {
      return new ErrorResult(errorid,
          "Error ... please check your input", "Error");
View Full Code Here

      String message = fieldmanagment.getString(1157L, language_id)
          + appointment.getAppointmentName();

      if (appointment.getAppointmentDescription().length() != 0) {

        Fieldlanguagesvalues labelid1152 = fieldmanagment
            .getFieldByIdAndLanguage(new Long(1152), language_id);
        message += labelid1152.getValue()
            + appointment.getAppointmentDescription();

      }

      Fieldlanguagesvalues labelid1153 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(1153), language_id);
      Fieldlanguagesvalues labelid1154 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(1154), language_id);

      message += "<br/>"
          + labelid1153.getValue()
          + ' '
          + CalendarPatterns.getDateWithTimeByMiliSecondsAndTimeZone(
              appointment.getAppointmentStarttime(), timezone)
          + "<br/>";

      message += labelid1154.getValue()
          + ' '
          + CalendarPatterns.getDateWithTimeByMiliSecondsAndTimeZone(
              appointment.getAppointmentEndtime(), timezone)
          + "<br/>";

      String invitorName = user.getFirstname() + " " + user.getLastname()
          + " [" + user.getAdresses().getEmail() + "]";

      Fieldlanguagesvalues labelid1156 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(1156), language_id);
      message += labelid1156.getValue() + invitorName + "<br/>";

      return message;
    } catch (Exception err) {
      log.error("Could not format cancel message");
      return "Error formatCancelMessage";
View Full Code Here

      String message = fieldmanagment.getString(1155L, language_id) + " "
          + appointment.getAppointmentName();

      if (appointment.getAppointmentDescription().length() != 0) {

        Fieldlanguagesvalues labelid1152 = fieldmanagment
            .getFieldByIdAndLanguage(new Long(1152), language_id);
        message += labelid1152.getValue()
            + appointment.getAppointmentDescription();

      }

      message += " "
View Full Code Here

      String message = fieldmanagment.getString(1155L, language_id) + " "
          + appointment.getAppointmentName();

      if (appointment.getAppointmentDescription().length() != 0) {

        Fieldlanguagesvalues labelid1152 = fieldmanagment
            .getFieldByIdAndLanguage(new Long(1152), language_id);
        message += labelid1152.getValue()
            + appointment.getAppointmentDescription();

      }

      Fieldlanguagesvalues labelid1153 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(1153), language_id);
      Fieldlanguagesvalues labelid1154 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(1154), language_id);

      message += "<br/>"
          + labelid1153.getValue()
          + ' '
          + CalendarPatterns.getDateWithTimeByMiliSecondsAndTimeZone(
              appointment.getAppointmentStarttime(), timezone)
          + "<br/>";

      message += labelid1154.getValue()
          + ' '
          + CalendarPatterns.getDateWithTimeByMiliSecondsAndTimeZone(
              appointment.getAppointmentEndtime(), timezone)
          + "<br/>";

      Fieldlanguagesvalues labelid1156 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(1156), language_id);
      message += labelid1156.getValue() + invitorName + "<br/>";

      return message;

    } catch (Exception err) {
      log.error("Could not format update message");
View Full Code Here

    if (fv == null) {
      fv = fieldmanagment.addFieldById(fieldName, fieldvalues_id);
    }

    Fieldlanguagesvalues flv = fieldmanagment.getFieldByIdAndLanguage(
        fieldvalues_id, language_id);

    if (flv == null) {
      fieldmanagment.addFieldValueByFieldAndLanguage(fv,
          language_id, value);
    } else {
      flv.setValue(value);
      flv.setUpdatetime(new java.util.Date());
      fieldmanagment.updateFieldValueByFieldAndLanguage(flv);
    }
  }
View Full Code Here

      String invitation_link, Long default_lang_id, Date dStart, Date dEnd) {
    try {

      super.init();

      Fieldlanguagesvalues labelid501 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(501), default_lang_id);
      Fieldlanguagesvalues labelid502 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(502), default_lang_id);
      Fieldlanguagesvalues labelid503 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(503), default_lang_id);
      Fieldlanguagesvalues labelid504 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(504), default_lang_id);
      Fieldlanguagesvalues labelid505 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(505), default_lang_id);
      // Fieldlanguagesvalues labelid570 =
      // fieldmanagment.getFieldByIdAndLanguage(new Long(570),
      // default_lang_id);
      // Fieldlanguagesvalues labelid571 =
      // fieldmanagment.getFieldByIdAndLanguage(new Long(571),
      // default_lang_id);

      /* lets make a Context and put data into it */
      VelocityContext context = new VelocityContext();

      context.put("user", user);
      context.put("message", message);
      context.put("invitation_link", invitation_link);
      context.put("invitation_link2", invitation_link);

      context.put("labelid500", fieldmanagment.getString(500L, default_lang_id));
      context.put("labelid501", labelid501.getValue());
      context.put("labelid502", labelid502.getValue());
      context.put("labelid503", labelid503.getValue());
      context.put("labelid504", labelid504.getValue());
      context.put("labelid505", labelid505.getValue());
      context.put("APP_NAME", configurationmanagement.getAppName());


      /* lets render a template */
      StringWriter w = new StringWriter();
View Full Code Here

    try {

      super.init();

      Fieldlanguagesvalues labelid623 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(623), default_lang_id);
      Fieldlanguagesvalues labelid624 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(624), default_lang_id);
      Fieldlanguagesvalues labelid625 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(625), default_lang_id);
      Fieldlanguagesvalues labelid626 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(626), default_lang_id);
      Fieldlanguagesvalues labelid627 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(627), default_lang_id);

      /* lets make a Context and put data into it */
      VelocityContext context = new VelocityContext();

      context.put("user", user);
      context.put("message", message);
      context.put("invitation_link", invitation_link);
      context.put("invitation_link2", invitation_link);
      context.put("labelid500", fieldmanagment.getString(622L, default_lang_id));
      context.put("labelid501", labelid623.getValue());
      context.put("labelid502", labelid624.getValue());
      context.put("labelid503", labelid625.getValue());
      context.put("labelid504", labelid626.getValue());
      context.put("labelid505", labelid627.getValue());
      context.put("APP_NAME", configurationmanagement.getAppName());

      /* lets render a template */
      StringWriter w = new StringWriter();
      Velocity.mergeTemplate(templateName, "UTF-8", context, w);
View Full Code Here

      Long default_lang_id) {
    try {

      super.init();

      Fieldlanguagesvalues labelid514 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(514), default_lang_id);
      Fieldlanguagesvalues labelid515 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(515), default_lang_id);
      Fieldlanguagesvalues labelid516 = fieldmanagment
          .getFieldByIdAndLanguage(new Long(516), default_lang_id);

      /* lets make a Context and put data into it */
      VelocityContext context = new VelocityContext();
      context.put("reset_link", reset_link);
      context.put("reset_link2", reset_link);
      context.put("labelid513", fieldmanagment.getString(513L, default_lang_id));
      context.put("labelid514", labelid514.getValue());
      context.put("labelid515", labelid515.getValue());
      context.put("labelid516", labelid516.getValue());

      /* lets render a template */
      StringWriter w = new StringWriter();
      Velocity.mergeTemplate(templateName, "UTF-8", context, w);

View Full Code Here

                  .getConf_value()).longValue();
        }

        String message = "";

        Fieldlanguagesvalues fValue1192 = fieldmanagment
            .getFieldByIdAndLanguage(1192L, language_id);
        Fieldlanguagesvalues fValue1193 = fieldmanagment
            .getFieldByIdAndLanguage(1193L, language_id);
        Fieldlanguagesvalues fValue1190 = fieldmanagment
            .getFieldByIdAndLanguage(1190L, language_id);
        Fieldlanguagesvalues fValue1191 = fieldmanagment
            .getFieldByIdAndLanguage(1191L, language_id);
        Fieldlanguagesvalues fValue1196 = fieldmanagment
            .getFieldByIdAndLanguage(1196L, language_id);

        message += fValue1192.getValue() + " "
            + userToAdd.getFirstname() + " "
            + userToAdd.getLastname() + "<br/><br/>";
        message += user.getFirstname() + " " + user.getLastname() + " "
            + fValue1193.getValue() + "<br/>";
        message += fieldmanagment.getString(1194L, language_id) + "<br/>";

        String baseURL = "http://" + domain + ":" + port + webapp;
        if (port.equals("80")) {
          baseURL = "http://" + domain + webapp;
        } else if (port.equals("443")) {
          baseURL = "https://" + domain + webapp;
        }

        privateMessagesDao.addPrivateMessage(user.getFirstname() + " "
            + user.getLastname() + " " + fValue1193.getValue(),
            message, 0L, user, userToAdd, userToAdd, false, null,
            true, userContactId, userToAdd.getAdresses().getEmail());

        String link = baseURL + "?cuser=" + hash;

        String accept_link = link + "&tAccept=yes";
        String deny_link = link + "&tAccept=no";

        String aLinkHTML = "<a href='" + accept_link + "'>"
            + fValue1190.getValue() + "</a><br/>";
        String denyLinkHTML = "<a href='" + deny_link + "'>"
            + fValue1191.getValue() + "</a><br/>";
        String profileLinkHTML = "<a href='" + link + "'>"
            + fValue1196.getValue() + "</a><br/>";

        String template = requestContactTemplate
            .getRequestContactTemplate(message, aLinkHTML,
                denyLinkHTML, profileLinkHTML);
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.lang.Fieldlanguagesvalues

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.