public abstract class S2SBaseFormGenerator extends Object implements S2SFormGenerator, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AREAS_AFFECTED_ABSTRACT_TYPE_CODE |
protected static int |
CONGRESSIONAL_DISTRICT_MAX_LENGTH |
protected static String |
DEFAULT_SORT_INDEX |
protected static int |
DUNS_NUMBER_MAX_LENGTH |
protected GlobalLibraryV1_0Generator |
globLibV10Generator |
protected GlobalLibraryV2_0Generator |
globLibV20Generator |
protected static String |
KEY_VALUE_SEPARATOR |
protected static String |
NOT_ANSWERED |
protected static int |
ORGANIZATON_NAME_MAX_LENGTH |
protected org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract |
pdDoc |
protected static int |
PRIMARY_TITLE_MAX_LENGTH |
| Constructor and Description |
|---|
S2SBaseFormGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttachment(AttachmentData attachment)
This is for adding attachment for the forms during form generation.
|
void |
afterPropertiesSet() |
protected String |
cleanFileName(String fileName) |
protected static byte[] |
computeAttachmentHash(byte[] attachment)
This method is used to encode the hash value based on Message Digest
|
String |
createContentId(org.kuali.coeus.propdev.api.attachment.NarrativeContract narrative)
Generates the contentId or href for narrative attachments in S2S
|
String |
createContentId(org.kuali.coeus.propdev.api.person.attachment.ProposalPersonBiographyContract biography) |
protected String |
getAnswer(Integer questionSeqId,
List<? extends org.kuali.coeus.common.questionnaire.api.answer.AnswerHeaderContract> answerHeaders)
This method is used to get the answer for a particular Questionnaire question
question based on the question id.
|
protected Long |
getAnswerId(Integer questionSeqId,
List<? extends org.kuali.coeus.common.questionnaire.api.answer.AnswerHeaderContract> answerHeaders)
This method is used to get the answerId for a particular Questionnaire question
question based on the question id.
|
protected String |
getAnswers(Integer questionSeqId,
List<? extends org.kuali.coeus.common.questionnaire.api.answer.AnswerHeaderContract> answerHeaders) |
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType |
getAttachedFileDataType(String narrativeTypeCode)
This method is used to get List of Other attachments from NarrativeAttachment
|
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType[] |
getAttachedFileDataTypes(String narrativeTypeCode)
This method is used to get List of Other attachments from NarrativeAttachment
|
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType |
getAttachedFileType(org.kuali.coeus.propdev.api.attachment.NarrativeContract narrative) |
List<AttachmentData> |
getAttachments()
Gets the list of attachments associated with a form.
|
List<AuditError> |
getAuditErrors()
Gets the auditErrors attribute.
|
protected String |
getChildQuestionAnswer(Integer parentQuestionSeqId,
Integer questionSeqId,
List<? extends org.kuali.coeus.common.questionnaire.api.answer.AnswerHeaderContract> answerHeaders)
This method is used to get the child question answer for a particular Questionnaire question
question based on the question id.
|
FormMappingService |
getFormMappingService() |
abstract String |
getFormName() |
String |
getGeneratorName() |
GlobalLibraryV1_0Generator |
getGlobLibV10Generator() |
GlobalLibraryV2_0Generator |
getGlobLibV20Generator() |
protected gov.grants.apply.system.globalV10.HashValueDocument.HashValue |
getHashValue(byte[] fileData)
This method is used to generate the HashValue for a particular file stream.
|
abstract String |
getNamespace() |
org.kuali.coeus.propdev.api.attachment.NarrativeService |
getNarrativeService() |
abstract String |
getPackageName() |
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType |
getPernonnelAttachments(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc,
String personId,
Integer rolodexId,
String documentType)
This method fetches the attachments for
ProposalPersonContract. |
protected org.kuali.coeus.propdev.api.person.ProposalPersonContract |
getPerson(org.kuali.coeus.propdev.api.core.DevelopmentProposalContract developmentProposal,
Integer proposalPersonNumber) |
org.kuali.coeus.propdev.api.questionnaire.PropDevQuestionAnswerService |
getPropDevQuestionAnswerService() |
org.kuali.coeus.common.questionnaire.api.core.QuestionAnswerService |
getQuestionAnswerService() |
protected String |
getS2sNarrativeFileName(org.kuali.coeus.propdev.api.attachment.NarrativeContract narrative) |
protected String |
getS2sPersonnelAttachmentFileName(org.kuali.coeus.propdev.api.core.DevelopmentProposalContract developmentProposal,
org.kuali.coeus.propdev.api.person.attachment.ProposalPersonBiographyContract biography) |
abstract int |
getSortIndex() |
org.kuali.coeus.common.api.sponsor.hierarchy.SponsorHierarchyService |
getSponsorHierarchyService() |
abstract org.springframework.core.io.Resource |
getStylesheet() |
protected boolean |
isSponsorNIH(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract document) |
protected org.kuali.coeus.propdev.api.attachment.NarrativeContract |
saveNarrative(byte[] attachment,
String narrativeTypeCode,
String fileName,
String comment) |
void |
setAttachments(List<AttachmentData> attachments)
Sets the attachments attribute value.
|
void |
setAuditErrors(List<AuditError> auditErrors)
Sets the auditErrors attribute value.
|
void |
setBeanName(String beanName) |
void |
setFormMappingService(FormMappingService formMappingService) |
void |
setGlobLibV10Generator(GlobalLibraryV1_0Generator globLibV10Generator) |
void |
setGlobLibV20Generator(GlobalLibraryV2_0Generator globLibV20Generator) |
void |
setNarrativeService(org.kuali.coeus.propdev.api.attachment.NarrativeService narrativeService) |
void |
setPropDevQuestionAnswerService(org.kuali.coeus.propdev.api.questionnaire.PropDevQuestionAnswerService propDevQuestionAnswerService) |
void |
setQuestionAnswerService(org.kuali.coeus.common.questionnaire.api.core.QuestionAnswerService questionAnswerService) |
void |
setSponsorHierarchyService(org.kuali.coeus.common.api.sponsor.hierarchy.SponsorHierarchyService sponsorHierarchyService) |
void |
sortAttachments(ByteArrayInputStream byteArrayInputStream)
Sort the attachments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormObjectprotected static final String NOT_ANSWERED
protected static final String KEY_VALUE_SEPARATOR
protected static final String AREAS_AFFECTED_ABSTRACT_TYPE_CODE
protected static final int ORGANIZATON_NAME_MAX_LENGTH
protected static final int DUNS_NUMBER_MAX_LENGTH
protected static final int PRIMARY_TITLE_MAX_LENGTH
protected static final int CONGRESSIONAL_DISTRICT_MAX_LENGTH
protected static final String DEFAULT_SORT_INDEX
protected org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc
@Autowired @Qualifier(value="GlobalLibraryV1_0Generator") protected GlobalLibraryV1_0Generator globLibV10Generator
@Autowired @Qualifier(value="GlobalLibraryV2_0Generator") protected GlobalLibraryV2_0Generator globLibV20Generator
public S2SBaseFormGenerator()
public List<AttachmentData> getAttachments()
getAttachments in interface S2SFormGeneratorprotected void addAttachment(AttachmentData attachment)
attachment - - The attachment data to add.protected gov.grants.apply.system.globalV10.HashValueDocument.HashValue getHashValue(byte[] fileData)
fileData - - They byte[] containing the file data.public String createContentId(org.kuali.coeus.propdev.api.attachment.NarrativeContract narrative)
public String createContentId(org.kuali.coeus.propdev.api.person.attachment.ProposalPersonBiographyContract biography)
protected static final byte[] computeAttachmentHash(byte[] attachment)
attachment - protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType getAttachedFileType(org.kuali.coeus.propdev.api.attachment.NarrativeContract narrative)
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType[] getAttachedFileDataTypes(String narrativeTypeCode)
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType getAttachedFileDataType(String narrativeTypeCode)
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType getPernonnelAttachments(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc, String personId, Integer rolodexId, String documentType)
ProposalPersonContract. For a given person or rolodex ID, it will fetch the document
of required type, also passed alongside as documentTypepdDoc - ProposalDevelopmentDocumentContract from which the attachments are to be fetchedpersonId - ID of the proposal personrolodexId - Rolodex ID of the persondocumentType - type of document thats to be fetchedAttachedFileDataType containing the required documentprotected String getS2sNarrativeFileName(org.kuali.coeus.propdev.api.attachment.NarrativeContract narrative)
protected String getS2sPersonnelAttachmentFileName(org.kuali.coeus.propdev.api.core.DevelopmentProposalContract developmentProposal, org.kuali.coeus.propdev.api.person.attachment.ProposalPersonBiographyContract biography)
protected String cleanFileName(String fileName)
protected org.kuali.coeus.propdev.api.person.ProposalPersonContract getPerson(org.kuali.coeus.propdev.api.core.DevelopmentProposalContract developmentProposal, Integer proposalPersonNumber)
public List<AuditError> getAuditErrors()
getAuditErrors in interface S2SFormGeneratorpublic void setAuditErrors(List<AuditError> auditErrors)
auditErrors - The auditErrors to set.protected boolean isSponsorNIH(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract document)
protected org.kuali.coeus.propdev.api.attachment.NarrativeContract saveNarrative(byte[] attachment, String narrativeTypeCode, String fileName, String comment)
public void setAttachments(List<AttachmentData> attachments)
attachments - The attachments to set.public void sortAttachments(ByteArrayInputStream byteArrayInputStream)
byteArrayInputStream - protected String getAnswer(Integer questionSeqId, List<? extends org.kuali.coeus.common.questionnaire.api.answer.AnswerHeaderContract> answerHeaders)
questionSeqId - the question seq id to be passed.protected Long getAnswerId(Integer questionSeqId, List<? extends org.kuali.coeus.common.questionnaire.api.answer.AnswerHeaderContract> answerHeaders)
questionSeqId - the question seq id to be passed.protected String getChildQuestionAnswer(Integer parentQuestionSeqId, Integer questionSeqId, List<? extends org.kuali.coeus.common.questionnaire.api.answer.AnswerHeaderContract> answerHeaders)
parentQuestionSeqId - the parentQuestion id to be passed.questionSeqId - the question id to be passed.protected String getAnswers(Integer questionSeqId, List<? extends org.kuali.coeus.common.questionnaire.api.answer.AnswerHeaderContract> answerHeaders)
public void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic abstract String getNamespace()
public String getGeneratorName()
public abstract String getFormName()
public abstract org.springframework.core.io.Resource getStylesheet()
public abstract String getPackageName()
public abstract int getSortIndex()
public org.kuali.coeus.propdev.api.attachment.NarrativeService getNarrativeService()
public org.kuali.coeus.propdev.api.questionnaire.PropDevQuestionAnswerService getPropDevQuestionAnswerService()
public org.kuali.coeus.common.questionnaire.api.core.QuestionAnswerService getQuestionAnswerService()
public void setNarrativeService(org.kuali.coeus.propdev.api.attachment.NarrativeService narrativeService)
public void setPropDevQuestionAnswerService(org.kuali.coeus.propdev.api.questionnaire.PropDevQuestionAnswerService propDevQuestionAnswerService)
public void setQuestionAnswerService(org.kuali.coeus.common.questionnaire.api.core.QuestionAnswerService questionAnswerService)
public org.kuali.coeus.common.api.sponsor.hierarchy.SponsorHierarchyService getSponsorHierarchyService()
public void setSponsorHierarchyService(org.kuali.coeus.common.api.sponsor.hierarchy.SponsorHierarchyService sponsorHierarchyService)
public FormMappingService getFormMappingService()
public void setFormMappingService(FormMappingService formMappingService)
public GlobalLibraryV1_0Generator getGlobLibV10Generator()
public void setGlobLibV10Generator(GlobalLibraryV1_0Generator globLibV10Generator)
public GlobalLibraryV2_0Generator getGlobLibV20Generator()
public void setGlobLibV20Generator(GlobalLibraryV2_0Generator globLibV20Generator)
public void afterPropertiesSet() throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionCopyright © 2014–2015 The Kuali Foundation. All rights reserved.