@Component(value="formPrintService") public class FormPrintServiceImpl extends Object implements FormPrintService
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
FormPrintServiceImpl.PrintableResult  | 
| Constructor and Description | 
|---|
FormPrintServiceImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addFileToZip(String path,
                        String sourceFile,
                        ZipOutputStream zipOutputStream)  | 
protected void | 
addFolderToZip(String path,
                            String sourceFolder,
                            ZipOutputStream zipOutputStream)  | 
protected String | 
findSubmittedXml(org.kuali.coeus.propdev.api.s2s.S2sAppSubmissionContract appSubmission)  | 
protected byte[] | 
getAttContent(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc,
                          String contentId)
This method gets attachment contents from narrative based on content ID 
 | 
protected org.kuali.coeus.sys.api.model.KcFile | 
getAttributeContent(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc,
                                      String contentId)  | 
protected String | 
getFileNameForFormPrinting(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc)  | 
FormMappingService | 
getFormMappingService()  | 
protected org.apache.xmlbeans.XmlObject | 
getFormObject(gov.grants.apply.system.metaGrantApplication.GrantApplicationDocument submittedXml,
                          FormMappingInfo info)
This method gets formObject from submitted Application 
 | 
protected org.kuali.coeus.propdev.api.s2s.S2sAppSubmissionContract | 
getLatestS2SAppSubmission(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc)
This method gets the latest S2SAppSubmission record from the list of
 S2SAppSubmissions. 
 | 
org.kuali.coeus.propdev.api.attachment.NarrativeService | 
getNarrativeService()  | 
protected FormPrintServiceImpl.PrintableResult | 
getPDFStream(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc)
This method is used to generate byte stream of forms 
 | 
org.kuali.coeus.propdev.api.s2s.S2sApplicationService | 
getS2sApplicationService()  | 
org.kuali.coeus.propdev.api.s2s.S2SConfigurationService | 
getS2SConfigurationService()  | 
S2SDateTimeService | 
getS2SDateTimeService()  | 
S2SFormGeneratorRetrievalService | 
getS2SFormGeneratorService()  | 
S2SPrintingService | 
getS2SPrintingService()  | 
S2SValidatorService | 
getS2SValidatorService()  | 
protected List<String> | 
getSortedNameSpaces(String proposalNumber,
                                      List<? extends org.kuali.coeus.propdev.api.s2s.S2sOppFormsContract> s2sOppForms)
This method sorts all the forms in order as specified in
 S2sFormBinding.xml and returns the list of namespaces in sorted order. 
 | 
protected FormPrintServiceImpl.PrintableResult | 
getSubmittedPDFStream(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc)
This method is to write the submitted application data to a pdfStream 
 | 
org.kuali.coeus.propdev.api.s2s.UserAttachedFormService | 
getUserAttachedFormService()  | 
protected boolean | 
isPdfType(byte[] data)  | 
FormPrintResult | 
printForm(Object pdDoc)
This method is used for the printing of forms in PDF format. 
 | 
protected void | 
saveGrantsGovXml(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc,
                                boolean formEntryFlag,
                                org.apache.xmlbeans.XmlObject formObject,
                                List<AttachmentData> attachmentList,
                                List<? extends org.kuali.coeus.propdev.api.s2s.S2sAppAttachmentsContract> attachmentLists)  | 
void | 
setFormMappingService(FormMappingService formMappingService)  | 
protected void | 
setFormObject(gov.grants.apply.system.metaGrantApplication.GrantApplicationDocument.GrantApplication.Forms forms,
                          org.apache.xmlbeans.XmlObject formObject)  | 
void | 
setNarrativeService(org.kuali.coeus.propdev.api.attachment.NarrativeService narrativeService)  | 
void | 
setS2sApplicationService(org.kuali.coeus.propdev.api.s2s.S2sApplicationService s2sApplicationService)  | 
void | 
setS2SConfigurationService(org.kuali.coeus.propdev.api.s2s.S2SConfigurationService s2SConfigurationService)  | 
void | 
setS2SDateTimeService(S2SDateTimeService s2SDateTimeService)  | 
void | 
setS2SFormGeneratorService(S2SFormGeneratorRetrievalService s2SFormGeneratorService)
Setter for  
S2SFormGeneratorRetrievalService | 
void | 
setS2SPrintingService(S2SPrintingService s2SPrintingService)  | 
void | 
setS2SValidatorService(S2SValidatorService s2SValidatorService)
Setter for  
S2SFormGeneratorRetrievalService | 
void | 
setUserAttachedFormService(org.kuali.coeus.propdev.api.s2s.UserAttachedFormService userAttachedFormService)  | 
protected static byte | 
toUnsignedByte(int intVal)
convert int to unsigned byte 
 | 
public FormPrintServiceImpl()
public FormPrintResult printForm(Object pdDoc) throws S2SException
KcFileprintForm in interface FormPrintServicepdDoc - (ProposalDevelopmentDocumentContract)KcFile which contains all information
         related to the generated PDFS2SExceptionprotected void saveGrantsGovXml(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc, boolean formEntryFlag, org.apache.xmlbeans.XmlObject formObject, List<AttachmentData> attachmentList, List<? extends org.kuali.coeus.propdev.api.s2s.S2sAppAttachmentsContract> attachmentLists) throws Exception
Exceptionprotected void addFolderToZip(String path, String sourceFolder, ZipOutputStream zipOutputStream) throws Exception
Exceptionprotected void addFileToZip(String path, String sourceFile, ZipOutputStream zipOutputStream) throws Exception
Exceptionprotected String getFileNameForFormPrinting(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc)
protected FormPrintServiceImpl.PrintableResult getSubmittedPDFStream(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc) throws S2SException
pdDoc - Proposal Development Document.S2SExceptionprotected String findSubmittedXml(org.kuali.coeus.propdev.api.s2s.S2sAppSubmissionContract appSubmission)
protected FormPrintServiceImpl.PrintableResult getPDFStream(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc) throws S2SException
pdDoc - ProposalDevelopmentDocumentContractS2SExceptionprotected org.apache.xmlbeans.XmlObject getFormObject(gov.grants.apply.system.metaGrantApplication.GrantApplicationDocument submittedXml, FormMappingInfo info)
submittedXml - GrantApplicationDocument object of the submitted form.info - form mapping information of the form.S2SExceptionprotected byte[] getAttContent(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc, String contentId)
pdDoc - Proposal Development Document.contentId - for the particular attachment in the Narrative.protected org.kuali.coeus.sys.api.model.KcFile getAttributeContent(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc, String contentId)
protected org.kuali.coeus.propdev.api.s2s.S2sAppSubmissionContract getLatestS2SAppSubmission(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc)
pdDoc - ProposalDevelopmentDocumentContractS2sAppSubmissionContractprotected List<String> getSortedNameSpaces(String proposalNumber, List<? extends org.kuali.coeus.propdev.api.s2s.S2sOppFormsContract> s2sOppForms)
s2sOppForms - list of S2sOppForms.public void setS2SFormGeneratorService(S2SFormGeneratorRetrievalService s2SFormGeneratorService)
S2SFormGeneratorRetrievalServices2SFormGeneratorService - public void setS2SValidatorService(S2SValidatorService s2SValidatorService)
S2SFormGeneratorRetrievalServices2SValidatorService - protected boolean isPdfType(byte[] data)
protected static byte toUnsignedByte(int intVal)
public org.kuali.coeus.propdev.api.attachment.NarrativeService getNarrativeService()
public void setNarrativeService(org.kuali.coeus.propdev.api.attachment.NarrativeService narrativeService)
public S2SPrintingService getS2SPrintingService()
public void setS2SPrintingService(S2SPrintingService s2SPrintingService)
protected void setFormObject(gov.grants.apply.system.metaGrantApplication.GrantApplicationDocument.GrantApplication.Forms forms, org.apache.xmlbeans.XmlObject formObject)
public org.kuali.coeus.propdev.api.s2s.S2SConfigurationService getS2SConfigurationService()
public void setS2SConfigurationService(org.kuali.coeus.propdev.api.s2s.S2SConfigurationService s2SConfigurationService)
public org.kuali.coeus.propdev.api.s2s.S2sApplicationService getS2sApplicationService()
public void setS2sApplicationService(org.kuali.coeus.propdev.api.s2s.S2sApplicationService s2sApplicationService)
public S2SFormGeneratorRetrievalService getS2SFormGeneratorService()
public S2SValidatorService getS2SValidatorService()
public FormMappingService getFormMappingService()
public void setFormMappingService(FormMappingService formMappingService)
public org.kuali.coeus.propdev.api.s2s.UserAttachedFormService getUserAttachedFormService()
public void setUserAttachedFormService(org.kuali.coeus.propdev.api.s2s.UserAttachedFormService userAttachedFormService)
public S2SDateTimeService getS2SDateTimeService()
public void setS2SDateTimeService(S2SDateTimeService s2SDateTimeService)
Copyright © 2014 The Kuali Foundation. All rights reserved.