use of org.mifos.application.meeting.business.MeetingRecurrenceEntity in project head by mifos.
the class MeetingBuilder method build.
public MeetingBO build() {
LocalDate localStartDate = new LocalDate(startDate);
final MeetingBO meeting = new MeetingBO(meetingType, localStartDate.toDateTimeAtStartOfDay().toDate(), meetingLocation);
final MeetingDetailsEntity meetingDetailsEntity = new MeetingDetailsEntity(meeting, recurrenceType, recurAfter);
final MeetingRecurrenceEntity meetingRecurrenceEntity = new MeetingRecurrenceEntity(weekDay, meetingDetailsEntity);
meetingRecurrenceEntity.setDayNumber(dayNumber);
if (weekRank != null) {
meetingRecurrenceEntity.setRankOfDays(weekRank);
}
meetingDetailsEntity.setMeetingRecurrence(meetingRecurrenceEntity);
meeting.setMeetingDetails(meetingDetailsEntity);
return meeting;
}
Aggregations