String message = fieldManager.getString(1157L, language_id)
+ appointment.getAppointmentName();
if (appointment.getAppointmentDescription().length() != 0) {
Fieldlanguagesvalues labelid1152 = fieldManager
.getFieldByIdAndLanguage(new Long(1152), language_id);
message += labelid1152.getValue()
+ appointment.getAppointmentDescription();
}
Fieldlanguagesvalues labelid1153 = fieldManager
.getFieldByIdAndLanguage(new Long(1153), language_id);
Fieldlanguagesvalues labelid1154 = fieldManager
.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 = fieldManager
.getFieldByIdAndLanguage(new Long(1156), language_id);
message += labelid1156.getValue() + invitorName + "<br/>";
return message;
} catch (Exception err) {
log.error("Could not format cancel message", err);
return "Error formatCancelMessage";