@Transactional public abstract class CommitteeScheduleServiceImplBase<CS extends CommitteeScheduleBase<CS,CMT,?,CSM>,CMT extends CommitteeBase<CMT,?,CS>,CSM extends CommitteeScheduleMinuteBase<CSM,CS>> extends Object implements CommitteeScheduleServiceBase<CS,CMT,CSM>
| Constructor and Description |
|---|
CommitteeScheduleServiceImplBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSchedule(ScheduleData scheduleData,
CMT committee)
This method implementer must add new non conflicting, non-repeating schedule dates to existing CommitteeBase.CommitteeScheduleBase list.
|
protected void |
addScheduleDatesToCommittee(List<Date> dates,
CMT committee,
String location,
List<Date> skippedDates)
Helper method to add schedule to list.
|
protected Date |
calculateAdvancedSubmissionDays(Date startDate,
Integer days)
Helper method to calculate advanced submission days.
|
void |
downloadAttachment(KraPersistableBusinessObjectBase attachmentDataSource,
javax.servlet.http.HttpServletResponse response)
This method will downloadAttachment to CommitteeScheduleAttachmentsBase.
|
CSM |
getCommitteeScheduleMinute(Long committeeScheduleId)
This method returns a specific schedule minute based on a committee id
NOTE: a null is returned if the ID doesn't exist in the DB.
|
protected abstract Class<CSM> |
getCommitteeScheduleMinuteBOClassHook() |
protected ScheduleStatus |
getDefaultScheduleStatus()
Helper method to retrieve default ScheduleStatus object.
|
List<CSM> |
getMinutesByProtocol(Long protocolId)
This method returns a list of minutes based on a protocol ID
|
List<CSM> |
getMinutesByProtocolSubmission(Long submissionID)
This method returns a list of minutes based on a protocol submission ID
|
List<CSM> |
getMinutesBySchedule(Long scheduleId)
This method returns a list of minutes based on a schedule ID
|
protected abstract CS |
getNewCommiteeScheduleInstanceHook() |
protected abstract CommitteeScheduleAttachmentsBase |
getNewCommitteeScheduleAttachmentsInstanceHook() |
protected Time24HrFmt |
getTime24hFmt(Date date,
int min)
Helper method to convert date and minutes into Time24HrFmt object.
|
Boolean |
isCommitteeScheduleDeletable(CS committeeSchedule)
This method implementer must check if passed CommitteeScheduleBase is deleteable.
|
protected Boolean |
isDateAvailable(List<CS> committeeSchedules,
Date date)
Helper method to test if date is available (non conflicting).
|
protected Boolean |
isProtocolAssignedToScheduleDate(CS committeeSchedule)
Helper method to check if ProtocolBase is assigned to CommitteeScheduleBase.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Set the Business Object Service.
|
void |
setReviewCommentsService(ReviewCommentsService<?> reviewCommentsService)
Set the ReviewComments Service.
|
void |
setScheduleService(ScheduleService scheduleService)
Set the Schedule Service.
|
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService - the Business Object Servicepublic void setScheduleService(ScheduleService scheduleService)
scheduleService - public void setReviewCommentsService(ReviewCommentsService<?> reviewCommentsService)
reviewCommentsService - public Boolean isCommitteeScheduleDeletable(CS committeeSchedule)
CommitteeScheduleServiceBaseisCommitteeScheduleDeletable in interface CommitteeScheduleServiceBase<CS extends CommitteeScheduleBase<CS,CMT,?,CSM>,CMT extends CommitteeBase<CMT,?,CS>,CSM extends CommitteeScheduleMinuteBase<CSM,CS>>CommitteeScheduleServiceBase.isCommitteeScheduleDeletable(org.kuali.kra.common.committee.bo.CommitteeScheduleBase)protected Boolean isProtocolAssignedToScheduleDate(CS committeeSchedule)
committeeSchedule - public void addSchedule(ScheduleData scheduleData, CMT committee) throws ParseException
CommitteeScheduleServiceBaseaddSchedule in interface CommitteeScheduleServiceBase<CS extends CommitteeScheduleBase<CS,CMT,?,CSM>,CMT extends CommitteeBase<CMT,?,CS>,CSM extends CommitteeScheduleMinuteBase<CSM,CS>>ParseExceptionCommitteeScheduleServiceBase.addSchedule(org.kuali.kra.common.committee.web.struts.form.schedule.ScheduleData, org.kuali.kra.common.committee.bo.CommitteeBase)protected Time24HrFmt getTime24hFmt(Date date, int min) throws ParseException
date - min - ParseExceptionprotected void addScheduleDatesToCommittee(List<Date> dates, CMT committee, String location, List<Date> skippedDates)
dates - committee - location - skippedDates - protected abstract CS getNewCommiteeScheduleInstanceHook()
protected Boolean isDateAvailable(List<CS> committeeSchedules, Date date)
committeeSchedules - date - protected Date calculateAdvancedSubmissionDays(Date startDate, Integer days)
startDate - days - protected ScheduleStatus getDefaultScheduleStatus()
public List<CSM> getMinutesByProtocol(Long protocolId)
CommitteeScheduleServiceBasegetMinutesByProtocol in interface CommitteeScheduleServiceBase<CS extends CommitteeScheduleBase<CS,CMT,?,CSM>,CMT extends CommitteeBase<CMT,?,CS>,CSM extends CommitteeScheduleMinuteBase<CSM,CS>>CommitteeScheduleServiceBase.getMinutesByProtocol(java.lang.Long)protected abstract Class<CSM> getCommitteeScheduleMinuteBOClassHook()
public List<CSM> getMinutesBySchedule(Long scheduleId)
CommitteeScheduleServiceBasegetMinutesBySchedule in interface CommitteeScheduleServiceBase<CS extends CommitteeScheduleBase<CS,CMT,?,CSM>,CMT extends CommitteeBase<CMT,?,CS>,CSM extends CommitteeScheduleMinuteBase<CSM,CS>>CommitteeScheduleServiceBase.getMinutesBySchedule(java.lang.Long)public CSM getCommitteeScheduleMinute(Long committeeScheduleId)
CommitteeScheduleServiceBasegetCommitteeScheduleMinute in interface CommitteeScheduleServiceBase<CS extends CommitteeScheduleBase<CS,CMT,?,CSM>,CMT extends CommitteeBase<CMT,?,CS>,CSM extends CommitteeScheduleMinuteBase<CSM,CS>>CommitteeScheduleServiceBase.getCommitteeScheduleMinute(java.lang.Long)public List<CSM> getMinutesByProtocolSubmission(Long submissionID)
CommitteeScheduleServiceBasegetMinutesByProtocolSubmission in interface CommitteeScheduleServiceBase<CS extends CommitteeScheduleBase<CS,CMT,?,CSM>,CMT extends CommitteeBase<CMT,?,CS>,CSM extends CommitteeScheduleMinuteBase<CSM,CS>>CommitteeScheduleServiceBase.getMinutesByProtocolSubmission(java.lang.Long)public void downloadAttachment(KraPersistableBusinessObjectBase attachmentDataSource, javax.servlet.http.HttpServletResponse response) throws Exception
downloadAttachment in interface CommitteeScheduleServiceBase<CS extends CommitteeScheduleBase<CS,CMT,?,CSM>,CMT extends CommitteeBase<CMT,?,CS>,CSM extends CommitteeScheduleMinuteBase<CSM,CS>>committeScheduleAttachments - Exceptionprotected abstract CommitteeScheduleAttachmentsBase getNewCommitteeScheduleAttachmentsInstanceHook()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.