public abstract class ProtocolAmendRenewServiceImplBase extends Object implements ProtocolAmendRenewService
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AMEND_ID |
protected static String |
AMEND_NEXT_VALUE |
protected static String |
AMENDMENT |
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService |
protected static String |
CREATED |
protected static int |
DIGIT_COUNT |
protected org.kuali.rice.krad.service.DocumentService |
documentService |
protected KraLookupDao |
kraLookupDao |
protected static String |
PROTOCOL_NUMBER |
protected static String |
PROTOCOL_STATUS |
protected ProtocolCopyService |
protocolCopyService |
protected ProtocolFinderDao |
protocolFinderDao |
protected QuestionnaireAnswerService |
questionnaireAnswerService |
protected static String |
RENEW_ID |
protected static String |
RENEW_NEXT_VALUE |
protected static String |
RENEWAL |
protected org.kuali.rice.krad.service.SequenceAccessorService |
sequenceAccessorService |
AMEND_RENEW_ALLOW_NEW_PROTOCOL_DOCUMENT| Constructor and Description |
|---|
ProtocolAmendRenewServiceImplBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addModules(ProtocolBase protocol,
ProtocolAmendmentBean amendmentBean) |
String |
createAmendment(ProtocolDocumentBase protocolDocument,
ProtocolAmendmentBean amendmentBean)
Create an amendment.
|
protected String |
createAmendment(ProtocolDocumentBase protocolDocument,
ProtocolDocumentBase amendProtocolDocument,
ProtocolAmendmentBean amendmentBean)
Create an Amendment.
|
protected ProtocolAmendRenewalBase |
createAmendmentRenewal(ProtocolDocumentBase protocolDocument,
ProtocolDocumentBase amendProtocolDocument,
String summary)
Create an Amendment Entry.
|
protected ProtocolActionBase |
createCreateAmendmentProtocolAction(ProtocolBase protocol,
String protocolNumber)
Create a ProtocolBase Action indicating that an amendment has been created.
|
protected ProtocolActionBase |
createCreateRenewalProtocolAction(ProtocolBase protocol,
String protocolNumber)
Create a ProtocolBase Action indicating that a renewal has been created.
|
protected ProtocolAmendRenewModuleBase |
createModule(ProtocolAmendRenewalBase amendmentEntry,
String moduleTypeCode)
Create a module entry.
|
String |
createRenewal(ProtocolDocumentBase protocolDocument,
String renewalSummary)
Create a Renewal without an Amendment.
|
String |
createRenewalWithAmendment(ProtocolDocumentBase protocolDocument,
ProtocolAmendmentBean amendmentBean)
Create a Renewal with an Amendment.
|
protected String |
generateProtocolAmendmentNumber(ProtocolDocumentBase protocolDocument)
Generate the protocol number for an amendment.
|
protected String |
generateProtocolNumber(ProtocolDocumentBase protocolDocument,
String letter,
String nextValueKey)
Generate the protocol number for an amendment or renewal.
|
protected String |
generateProtocolRenewalNumber(ProtocolDocumentBase protocolDocument)
Generate the protocol number for an renewal.
|
protected abstract List<String> |
getAllModuleTypeCodes() |
List<ProtocolBase> |
getAmendmentAndRenewals(String protocolNumber)
Get all of the Amendments and Renewals for a given protocol.
|
protected abstract String |
getAmendmentInProgressStatusHook() |
Collection<ProtocolBase> |
getAmendments(String protocolNumber)
This method returns all of the amendments associated with a protocol.
|
List<String> |
getAvailableModules(String protocolNumber)
Get the list of protocol modules that can be amended.
|
protected abstract ProtocolActionBase |
getNewAmendmentProtocolActionInstanceHook(ProtocolBase protocol) |
protected abstract ProtocolAmendRenewalBase |
getNewProtocolAmendRenewalInstanceHook() |
protected abstract ProtocolAmendRenewModuleBase |
getNewProtocolAmendRenewModuleInstanceHook() |
protected abstract ModuleQuestionnaireBean |
getNewProtocolModuleQuestionnaireBeanInstanceHook(ProtocolBase protocol) |
protected abstract ProtocolActionBase |
getNewRenewalProtocolActionInstanceHook(ProtocolBase protocol) |
protected abstract Class<? extends ProtocolBase> |
getProtocolBOClassHook() |
ProtocolCopyService<ProtocolDocumentBase> |
getProtocolCopyService() |
protected abstract String |
getRenewalInProgressStatusHook() |
Collection<ProtocolBase> |
getRenewals(String protocolNumber)
This method returns all of the renewals associated with a protocol.
|
protected org.kuali.rice.kew.api.WorkflowDocument |
getWorkflowDocument(org.kuali.rice.krad.document.Document doc)
Get the corresponding workflow document.
|
protected boolean |
isAmendmentCompleted(ProtocolBase protocol)
Has the amendment completed, e.g.
|
protected void |
markProtocolAttachmentsAsFinalized(List<ProtocolAttachmentProtocolBase> attachmentProtocols)
This method marks all protocol attachment as finalized.
|
protected void |
removeEditedQuestionaire(ProtocolBase protocol) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
Set the Document Service.
|
void |
setKraLookupDao(KraLookupDao kraLookupDao)
Set the KRA Lookup DAO.
|
void |
setProtocolCopyService(ProtocolCopyService protocolCopyService)
Set the ProtocolBase Copy Service.
|
void |
setProtocolFinderDao(ProtocolFinderDao protocolFinderDao)
Set the KRA Lookup DAO.
|
void |
setQuestionnaireAnswerService(QuestionnaireAnswerService questionnaireAnswerService) |
void |
setSequenceAccessorService(org.kuali.rice.krad.service.SequenceAccessorService sequenceAccessorService)
Set the Sequence Accessor Service.
|
void |
updateAmendmentRenewal(ProtocolDocumentBase protocolDocument,
ProtocolAmendmentBean amendmentBean)
Update the summary and amendment sections.
|
protected static final String AMEND_ID
protected static final String RENEW_ID
protected static final int DIGIT_COUNT
protected static final String AMEND_NEXT_VALUE
protected static final String RENEW_NEXT_VALUE
protected static final String AMENDMENT
protected static final String RENEWAL
protected static final String CREATED
protected static final String PROTOCOL_NUMBER
protected static final String PROTOCOL_STATUS
protected org.kuali.rice.krad.service.DocumentService documentService
protected ProtocolCopyService protocolCopyService
protected KraLookupDao kraLookupDao
protected ProtocolFinderDao protocolFinderDao
protected org.kuali.rice.krad.service.SequenceAccessorService sequenceAccessorService
protected QuestionnaireAnswerService questionnaireAnswerService
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
documentService - public void setProtocolCopyService(ProtocolCopyService protocolCopyService)
protocolCopyService - public void setSequenceAccessorService(org.kuali.rice.krad.service.SequenceAccessorService sequenceAccessorService)
sequenceAccessorService - public void setKraLookupDao(KraLookupDao kraLookupDao)
kraLookupDao - public void setProtocolFinderDao(ProtocolFinderDao protocolFinderDao)
kraLookupDao - public String createAmendment(ProtocolDocumentBase protocolDocument, ProtocolAmendmentBean amendmentBean) throws Exception
ProtocolAmendRenewServicecreateAmendment in interface ProtocolAmendRenewServiceprotocolDocument - the protocol document to create an amendment fromamendmentBean - the amendment info (which modules to be amended)ExceptionProtocolAmendRenewService.createAmendment(org.kuali.kra.protocol.ProtocolDocumentBase, org.kuali.kra.protocol.actions.amendrenew.ProtocolAmendmentBean)protected void markProtocolAttachmentsAsFinalized(List<ProtocolAttachmentProtocolBase> attachmentProtocols)
attachmentProtocols - public String createRenewal(ProtocolDocumentBase protocolDocument, String renewalSummary) throws Exception
ProtocolAmendRenewServicecreateRenewal in interface ProtocolAmendRenewServiceprotocolDocument - the protocol document to renewrenewalSummary - renewal summaryExceptionProtocolAmendRenewService.createRenewal(org.kuali.kra.protocol.ProtocolDocumentBase, java.lang.String)public String createRenewalWithAmendment(ProtocolDocumentBase protocolDocument, ProtocolAmendmentBean amendmentBean) throws Exception
ProtocolAmendRenewServicecreateRenewalWithAmendment in interface ProtocolAmendRenewServiceprotocolDocument - the protocol document to renew/amendamendmentBean - the amendment info (which modules to be amended)Exceptionorg.kuali.kra.irb.actions.amendrenew.ProtocolAmendRenewService#createRenewalWithAmendment(org.kuali.kra.irb.ProtocolDocumentBase, org.kuali.kra.irb.actions.amendrenew.ProtocolAmendmentBean)public void updateAmendmentRenewal(ProtocolDocumentBase protocolDocument, ProtocolAmendmentBean amendmentBean) throws org.kuali.rice.kew.api.exception.WorkflowException
ProtocolAmendRenewServiceupdateAmendmentRenewal in interface ProtocolAmendRenewServiceprotocolDocument - the protocol document of the amendment/renewal to be updatedamendmentBean - the amendment info (summary and which modules to be amended)org.kuali.rice.kew.api.exception.WorkflowExceptionorg.kuali.kra.irb.actions.amendrenew.ProtocolAmendRenewService#updateAmendmentRenewal(org.kuali.kra.irb.ProtocolDocumentBase, org.kuali.kra.irb.actions.amendrenew.ProtocolAmendmentBean)protected String createAmendment(ProtocolDocumentBase protocolDocument, ProtocolDocumentBase amendProtocolDocument, ProtocolAmendmentBean amendmentBean) throws org.kuali.rice.kew.api.exception.WorkflowException
protocolDocument - the original protocol document to be amendedamendProtocolDocument - the amended protocol documentamendmentBean - the amendment bean infoorg.kuali.rice.kew.api.exception.WorkflowExceptionprotected String generateProtocolAmendmentNumber(ProtocolDocumentBase protocolDocument)
protocolDocument - protected String generateProtocolRenewalNumber(ProtocolDocumentBase protocolDocument)
protocolDocument - protected String generateProtocolNumber(ProtocolDocumentBase protocolDocument, String letter, String nextValueKey)
protocolDocument - protected ProtocolAmendRenewalBase createAmendmentRenewal(ProtocolDocumentBase protocolDocument, ProtocolDocumentBase amendProtocolDocument, String summary)
protocolDocument - the original protocol documentamendProtocolDocument - the amended protocol documentamendmentBean - the user form containing the summary and modules to be amendedprotected void removeEditedQuestionaire(ProtocolBase protocol)
protected ProtocolAmendRenewModuleBase createModule(ProtocolAmendRenewalBase amendmentEntry, String moduleTypeCode)
amendmentEntry - moduleTypeCode - protected ProtocolActionBase createCreateAmendmentProtocolAction(ProtocolBase protocol, String protocolNumber)
protocol - protocolNumber - protocol number of the amendmentprotected ProtocolActionBase createCreateRenewalProtocolAction(ProtocolBase protocol, String protocolNumber)
protocol - protocolNumber - protocol number of the renewalpublic List<ProtocolBase> getAmendmentAndRenewals(String protocolNumber) throws Exception
ProtocolAmendRenewServicegetAmendmentAndRenewals in interface ProtocolAmendRenewServiceprotocolNumber - the protocol numberExceptionProtocolAmendRenewService.getAmendmentAndRenewals(java.lang.String)public Collection<ProtocolBase> getAmendments(String protocolNumber) throws Exception
ProtocolAmendRenewServicegetAmendments in interface ProtocolAmendRenewServiceExceptionpublic Collection<ProtocolBase> getRenewals(String protocolNumber) throws Exception
ProtocolAmendRenewServicegetRenewals in interface ProtocolAmendRenewServiceExceptionpublic List<String> getAvailableModules(String protocolNumber) throws Exception
ProtocolAmendRenewServicegetAvailableModules in interface ProtocolAmendRenewServiceprotocolNumber - the protocol numberExceptionProtocolAmendRenewService.getAvailableModules(java.lang.String)protected boolean isAmendmentCompleted(ProtocolBase protocol)
protocol - protected org.kuali.rice.kew.api.WorkflowDocument getWorkflowDocument(org.kuali.rice.krad.document.Document doc)
doc - the documentpublic void setQuestionnaireAnswerService(QuestionnaireAnswerService questionnaireAnswerService)
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
protected abstract ProtocolActionBase getNewAmendmentProtocolActionInstanceHook(ProtocolBase protocol)
protected abstract ProtocolActionBase getNewRenewalProtocolActionInstanceHook(ProtocolBase protocol)
protected abstract ModuleQuestionnaireBean getNewProtocolModuleQuestionnaireBeanInstanceHook(ProtocolBase protocol)
protected abstract String getAmendmentInProgressStatusHook()
protected abstract String getRenewalInProgressStatusHook()
protected abstract void addModules(ProtocolBase protocol, ProtocolAmendmentBean amendmentBean)
protected abstract Class<? extends ProtocolBase> getProtocolBOClassHook()
protected abstract ProtocolAmendRenewalBase getNewProtocolAmendRenewalInstanceHook()
protected abstract ProtocolAmendRenewModuleBase getNewProtocolAmendRenewModuleInstanceHook()
public ProtocolCopyService<ProtocolDocumentBase> getProtocolCopyService()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.