Class S2SAdobeFormAttachmentBaseGenerator<T extends org.apache.xmlbeans.XmlObject>
java.lang.Object
org.kuali.coeus.s2sgen.impl.generate.S2SBaseFormGenerator<T>
org.kuali.coeus.s2sgen.impl.generate.support.S2SAdobeFormAttachmentBaseGenerator<T>
- All Implemented Interfaces:
Factory<T>,Named,S2SFormGenerator<T>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
PHS398TrainingSubAwardBudgetV1_0Generator,PHS398TrainingSubAwardBudgetV2_0Generator,PHS398TrainingSubAwardBudgetV3_0Generator,RRFedNonFedSubAwardBudget_1_3_V1_3Generator,RRFedNonFedSubAwardBudget_2_0_V2_0Generator,RRFedNonFedSubAwardBudget5_30V1_2Generator,RRFedNonFedSubAwardBudget5_30V1_3Generator,RRFedNonFedSubAwardBudget5_30V2_0Generator,RRFedNonFedSubAwardBudgetV1_2Generator,RRMPSubAwardBudgetV1_1Generator,RRMPSubAwardBudgetV2_0Generator,RRSubAwardBudget1_3V1_3Generator,RRSubAwardBudget1_4V1_4Generator,RRSubAwardBudget10_10V1_2Generator,RRSubAwardBudget10_10V1_3Generator,RRSubAwardBudget10_10V1_4Generator,RRSubAwardBudget10_10V2_0Generator,RRSubAwardBudget10_10V3_0Generator,RRSubAwardBudget10_30_1_3V1_3Generator,RRSubAwardBudget10_30_1_4V1_4Generator,RRSubAwardBudget10_30_2_0V2_0Generator,RRSubAwardBudget10_30_3_0V3_0Generator,RRSubAwardBudget2_0V2_0Generator,RRSubAwardBudget3_0V3_0Generator,RRSubAwardBudget30_1_3V1_3Generator,RRSubAwardBudget30_1_4V1_4Generator,RRSubAwardBudget30_2_0V2_0Generator,RRSubAwardBudget30_3_0V3_0Generator,RRSubAwardBudget5_30V1_2Generator,RRSubAwardBudgetV1_2Generator
public abstract class S2SAdobeFormAttachmentBaseGenerator<T extends org.apache.xmlbeans.XmlObject>
extends S2SBaseFormGenerator<T>
This abstract class has methods that are common to all the versions of RRSubAwardBudget form.
- Author:
- Kuali Research Administration Team (kualidev@oncourse.iu.edu)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected S2SCommonBudgetServiceprotected S2SErrorHandlerServiceFields inherited from class org.kuali.coeus.s2sgen.impl.generate.S2SBaseFormGenerator
AREAS_AFFECTED_ABSTRACT_TYPE_CODE, CONGRESSIONAL_DISTRICT_MAX_LENGTH, DEFAULT_SORT_INDEX, DUNS_NUMBER_MAX_LENGTH, globLibV20Generator, NOT_ANSWERED, ORGANIZATION_UEI_MAX_LENGTH, ORGANIZATON_NAME_MAX_LENGTH, pdDoc, PRIMARY_TITLE_MAX_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSubAwdAttachments(org.kuali.coeus.propdev.api.budget.subaward.BudgetSubAwardsContract budgetSubAwards) Adding attachments to subawardbyte[]docToBytes(Document node) This method convert Document to a byte ArraydocToString(Document node) This method convert Document to a Stringprotected List<org.kuali.coeus.propdev.api.budget.subaward.BudgetSubAwardsContract> getBudgetSubAwards(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract proposalDevelopmentDocument, String namespace, boolean checkNull) This method is used to get BudgetSubAwrads from ProposalDevelopmentDocumentContractThis method convert node of form in to a Documentprotected StringprepareAttName(org.kuali.coeus.propdev.api.budget.subaward.BudgetSubAwardsContract budgetSubAwards) This method is used to return the attachment name which comes from BudgetSubawardsvoidsetS2SCommonBudgetService(S2SCommonBudgetService s2SCommonBudgetService) voidsetS2SErrorHandlerService(S2SErrorHandlerService s2SErrorHandlerService) stringToDom(String xmlSource) This method convert xml string in to a DocumentMethods inherited from class org.kuali.coeus.s2sgen.impl.generate.S2SBaseFormGenerator
addAttachedFileType, addAttachment, cleanFileName, createContentId, createContentId, getAnswer, getAnswerId, getAnswers, getAttachedFileDataType, getAttachedFileDataTypes, getAttachments, getAuditErrors, getBeanName, getChildQuestionAnswer, getGlobLibV20Generator, getGrantApplicationHashService, getHashValue, getNarrativeService, getPerson, getPersonnelAttachments, getPropDevQuestionAnswerService, getQuestionAnswerService, getS2sNarrativeFileName, getS2sPersonnelAttachmentFileName, getSponsorHierarchyService, getStylesheets, isSponsorNIH, saveNarrative, setAttachments, setAuditErrors, setBeanName, setGlobLibV20Generator, setGrantApplicationHashService, setNarrativeService, setPropDevQuestionAnswerService, setQuestionAnswerService, setSponsorHierarchyService, supportsPdfFilling, supportsXslTransformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.coeus.s2sgen.impl.generate.S2SFormGenerator
getFormName, getFormObject, getNamespace, getSortIndex
-
Field Details
-
RR_BUDGET_11_NAMESPACE_URI
- See Also:
-
LOCAL_NAME
- See Also:
-
attachmentList
-
budgetIdList
-
budgetSubawardNumberList
-
s2SErrorHandlerService
@Autowired @Qualifier("s2SErrorHandlerService") protected S2SErrorHandlerService s2SErrorHandlerService -
s2SCommonBudgetService
@Autowired @Qualifier("s2SCommonBudgetService") protected S2SCommonBudgetService s2SCommonBudgetService
-
-
Constructor Details
-
S2SAdobeFormAttachmentBaseGenerator
public S2SAdobeFormAttachmentBaseGenerator()
-
-
Method Details
-
nodeToDom
This method convert node of form in to a Document- Parameters:
node- n {Node} node entry.- Returns:
- Document containing doc information
- Throws:
org.kuali.coeus.s2sgen.api.core.S2SException
-
stringToDom
This method convert xml string in to a Document- Parameters:
xmlSource- {xml String} xml source entry.- Returns:
- Document containing doc information
- Throws:
org.kuali.coeus.s2sgen.api.core.S2SException
-
docToBytes
This method convert Document to a byte Array- Parameters:
node- {Document} node entry.- Returns:
- byte Array containing doc information
- Throws:
org.kuali.coeus.s2sgen.api.core.S2SException
-
docToString
This method convert Document to a String- Parameters:
node- {Document} node entry.- Returns:
- String containing doc information
- Throws:
org.kuali.coeus.s2sgen.api.core.S2SException
-
prepareAttName
protected String prepareAttName(org.kuali.coeus.propdev.api.budget.subaward.BudgetSubAwardsContract budgetSubAwards) This method is used to return the attachment name which comes from BudgetSubawards- Parameters:
budgetSubAwards- (BudgetSubAwards) budget sub award entry.- Returns:
- String attachment name for the budget sub awards.
-
checkAndReplaceInvalidCharacters
-
addSubAwdAttachments
protected void addSubAwdAttachments(org.kuali.coeus.propdev.api.budget.subaward.BudgetSubAwardsContract budgetSubAwards) Adding attachments to subaward -
getBudgetSubAwards
protected List<org.kuali.coeus.propdev.api.budget.subaward.BudgetSubAwardsContract> getBudgetSubAwards(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract proposalDevelopmentDocument, String namespace, boolean checkNull) This method is used to get BudgetSubAwrads from ProposalDevelopmentDocumentContract- Parameters:
proposalDevelopmentDocument- (ProposalDevelopmentDocumentContract)- Returns:
- List<BudgetSubAwards> list of budget sub awards.
-
getS2SErrorHandlerService
-
setS2SErrorHandlerService
-
getS2SCommonBudgetService
-
setS2SCommonBudgetService
-