Search in sources :

Example 1 with MeetingRecurrenceEntity

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;
}
Also used : MeetingBO(org.mifos.application.meeting.business.MeetingBO) MeetingDetailsEntity(org.mifos.application.meeting.business.MeetingDetailsEntity) MeetingRecurrenceEntity(org.mifos.application.meeting.business.MeetingRecurrenceEntity) LocalDate(org.joda.time.LocalDate)

Aggregations

LocalDate (org.joda.time.LocalDate)1 MeetingBO (org.mifos.application.meeting.business.MeetingBO)1 MeetingDetailsEntity (org.mifos.application.meeting.business.MeetingDetailsEntity)1 MeetingRecurrenceEntity (org.mifos.application.meeting.business.MeetingRecurrenceEntity)1