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 Details

  • Constructor Details

    • S2SAdobeFormAttachmentBaseGenerator

      public S2SAdobeFormAttachmentBaseGenerator()
  • Method Details

    • nodeToDom

      public Document nodeToDom(Node node) throws S2SException
      This method convert node of form in to a Document
      Parameters:
      node - n {Node} node entry.
      Returns:
      Document containing doc information
      Throws:
      S2SException
    • stringToDom

      public Document stringToDom(String xmlSource) throws S2SException
      This method convert xml string in to a Document
      Parameters:
      xmlSource - {xml String} xml source entry.
      Returns:
      Document containing doc information
      Throws:
      S2SException
    • docToBytes

      public byte[] docToBytes(Document node) throws S2SException
      This method convert Document to a byte Array
      Parameters:
      node - {Document} node entry.
      Returns:
      byte Array containing doc information
      Throws:
      S2SException
    • docToString

      public String docToString(Document node) throws S2SException
      This method convert Document to a String
      Parameters:
      node - {Document} node entry.
      Returns:
      String containing doc information
      Throws:
      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

      public String checkAndReplaceInvalidCharacters(String text)
    • 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

      public S2SErrorHandlerService getS2SErrorHandlerService()
    • setS2SErrorHandlerService

      public void setS2SErrorHandlerService(S2SErrorHandlerService s2SErrorHandlerService)
    • getS2SCommonBudgetService

      public S2SCommonBudgetService getS2SCommonBudgetService()
    • setS2SCommonBudgetService

      public void setS2SCommonBudgetService(S2SCommonBudgetService s2SCommonBudgetService)