public abstract class ProtocolCopyServiceImplBase<GenericProtocolDocument extends ProtocolDocumentBase> extends Object implements ProtocolCopyService<GenericProtocolDocument>
| Constructor and Description |
|---|
ProtocolCopyServiceImplBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyAdditionalProperties(GenericProtocolDocument srcDoc,
GenericProtocolDocument destDoc)
Copy over the additional properties.
|
protected void |
copyCustomDataAttributeValues(GenericProtocolDocument srcProtocolDocument,
GenericProtocolDocument destProtocolDocument)
Copy the custom attribute values to the new protocol document.
|
protected void |
copyOverviewProperties(GenericProtocolDocument src,
GenericProtocolDocument dest)
Copies the document overview properties.
|
GenericProtocolDocument |
copyProtocol(GenericProtocolDocument srcDoc)
Copy a protocol document.
|
GenericProtocolDocument |
copyProtocol(GenericProtocolDocument srcDoc,
String protocolNumber,
boolean isAmendmentRenewal)
Copy a protocol document with a given protocol number.
|
protected void |
copyProtocolLists(GenericProtocolDocument srcDoc,
GenericProtocolDocument destDoc)
Copy the BO lists from the original protocol to the new protocol.
|
protected void |
copyRequiredProperties(GenericProtocolDocument srcDoc,
GenericProtocolDocument destDoc)
Copy over the required properties so we can do an initial save of the document
in order to obtain a ProtocolId and ProtocolNumber.
|
protected GenericProtocolDocument |
createNewProtocol(GenericProtocolDocument srcDoc,
String protocolNumber,
boolean isAmendmentRenewal)
Create a new protocol based upon a source protocol.
|
protected Object |
deepCopy(Object obj) |
protected abstract Class<? extends ProtocolActionBase> |
getProtocolActionBOClassHook() |
protected abstract ProtocolActionBase |
getProtocolActionNewInstanceHook(ProtocolBase protocol,
ProtocolSubmissionBase protocolSubmission,
String protocolActionTypeCode) |
protected abstract String |
getProtocolActionProtocolCreatedCodeHook() |
protected abstract String |
getProtocolAggregatorHook() |
protected abstract String |
getProtocolApproverHook() |
protected abstract ProtocolNumberServiceBase |
getProtocolNumberServiceHook() |
protected abstract String |
getProtocolRoleTypeHook() |
protected abstract String |
getSequenceNumberNameHook() |
protected void |
initializeAuthorization(GenericProtocolDocument srcDoc,
GenericProtocolDocument destDoc)
Initialize the Authorizations for a new protocol.
|
protected void |
refreshAttachmentsPersonnels(ProtocolBase protocol) |
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
Set the Document Service.
|
void |
setKraAuthorizationService(KraAuthorizationService kraAuthorizationService)
Set the Kra Authorization Service.
|
void |
setSequenceAccessorService(org.kuali.rice.krad.service.SequenceAccessorService sequenceAccessorService) |
void |
setSystemAuthorizationService(SystemAuthorizationService systemAuthorizationService)
Set the System Authorization Service.
|
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
documentService - public void setSystemAuthorizationService(SystemAuthorizationService systemAuthorizationService)
systemAuthorizationService - public void setKraAuthorizationService(KraAuthorizationService kraAuthorizationService)
kralAuthorizationService - public GenericProtocolDocument copyProtocol(GenericProtocolDocument srcDoc) throws Exception
ProtocolCopyServicecopyProtocol in interface ProtocolCopyService<GenericProtocolDocument extends ProtocolDocumentBase>srcDoc - the protocol document to copy.Exception - if anything really bad happensProtocolCopyService.copyProtocol(org.kuali.kra.protocol.ProtocolDocumentBase)public GenericProtocolDocument copyProtocol(GenericProtocolDocument srcDoc, String protocolNumber, boolean isAmendmentRenewal) throws Exception
ProtocolCopyServicecopyProtocol in interface ProtocolCopyService<GenericProtocolDocument extends ProtocolDocumentBase>srcDoc - the protocol document to copy.protocolNumber - the protocol number to assign to the protocolException - if anything really bad happensorg.kuali.kra.protocol.actions.copy.ProtocolCopyService#copyProtocol(org.kuali.kra.protocol.ProtocolDocumentBase, java.lang.String)protected GenericProtocolDocument createNewProtocol(GenericProtocolDocument srcDoc, String protocolNumber, boolean isAmendmentRenewal) throws Exception
srcDoc - Exceptionprotected void refreshAttachmentsPersonnels(ProtocolBase protocol)
protected void copyOverviewProperties(GenericProtocolDocument src, GenericProtocolDocument dest)
src - the source protocol document, i.e. the original.dest - the destination protocol document, i.e. the new document.protected void copyRequiredProperties(GenericProtocolDocument srcDoc, GenericProtocolDocument destDoc)
srcDoc - destDoc - protected void copyAdditionalProperties(GenericProtocolDocument srcDoc, GenericProtocolDocument destDoc)
srcDoc - destDoc - protected void initializeAuthorization(GenericProtocolDocument srcDoc, GenericProtocolDocument destDoc)
doc - the protocol documentprotected void copyProtocolLists(GenericProtocolDocument srcDoc, GenericProtocolDocument destDoc)
srcDoc - destDoc - protected void copyCustomDataAttributeValues(GenericProtocolDocument srcProtocolDocument, GenericProtocolDocument destProtocolDocument)
srcProtocolDocument - destProtocolDocument - public void setSequenceAccessorService(org.kuali.rice.krad.service.SequenceAccessorService sequenceAccessorService)
protected abstract Class<? extends ProtocolActionBase> getProtocolActionBOClassHook()
protected abstract String getProtocolActionProtocolCreatedCodeHook()
protected abstract String getSequenceNumberNameHook()
protected abstract ProtocolNumberServiceBase getProtocolNumberServiceHook()
protected abstract ProtocolActionBase getProtocolActionNewInstanceHook(ProtocolBase protocol, ProtocolSubmissionBase protocolSubmission, String protocolActionTypeCode)
protected abstract String getProtocolAggregatorHook()
protected abstract String getProtocolApproverHook()
protected abstract String getProtocolRoleTypeHook()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.