public abstract class S2SBaseFormGenerator extends Object implements S2SFormGenerator
| Modifier and Type | Field and Description |
|---|---|
static String |
AREAS_AFFECTED_ABSTRACT_TYPE_CODE |
protected static int |
CONGRESSIONAL_DISTRICT_MAX_LENGTH |
static String |
DESCRIPTION |
protected static int |
DUNS_NUMBER_MAX_LENGTH |
protected GlobalLibraryV1_0Generator |
globLibV10Generator |
protected GlobalLibraryV2_0Generator |
globLibV20Generator |
static String |
KEY_VALUE_SEPARATOR |
static String |
MODULE_NUMBER |
protected static int |
ORGANIZATON_NAME_MAX_LENGTH |
protected ProposalDevelopmentDocument |
pdDoc |
protected static int |
PRIMARY_TITLE_MAX_LENGTH |
static String |
TITLE |
static String |
TYPE_SEPARATOR |
| 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.
|
protected static String |
computeAttachmentHash(byte[] attachment)
This method is used to encode the hash value based on Message Digest
|
String |
createContentId(Narrative narrative)
Generates the contentId or href for narrative attachments in S2S
|
String |
createContentId(ProposalPersonBiography biography) |
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType |
getAttachedFileDataType(String narrativeTypeCode)
This method is used to get List of Other attachments from NarrativeAttachmentList
|
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType[] |
getAttachedFileDataTypes(String narrativeTypeCode)
This method is used to get List of Other attachments from NarrativeAttachmentList
|
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType |
getAttachedFileType(Narrative narrative) |
List<AttachmentData> |
getAttachments()
Gets the list of attachments associated with a form.
|
List<org.kuali.rice.kns.util.AuditError> |
getAuditErrors()
Gets the auditErrors attribute.
|
protected gov.grants.apply.system.globalV10.HashValueDocument.HashValue |
getHashValue(byte[] fileData)
This method is used to generate the HashValue for a particular file stream.
|
protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType |
getPernonnelAttachments(ProposalDevelopmentDocument pdDoc,
String personId,
Integer rolodexId,
String documentType)
This method fetches the attachments for
ProposalPerson. |
List<AnswerHeader> |
getQuestionnaireAnswers(DevelopmentProposal proposal,
boolean finalDoc) |
protected boolean |
isSponsorNIH(ProposalDevelopmentDocument document) |
protected Narrative |
saveNarrative(byte[] attachment,
String narrativeTypeCode,
String fileName,
String comment) |
void |
setAttachments(List<AttachmentData> attachments)
Sets the attachments attribute value.
|
void |
setAuditErrors(List<org.kuali.rice.kns.util.AuditError> auditErrors)
Sets the auditErrors attribute value.
|
void |
sortAttachments(ByteArrayInputStream byteArrayInputStream)
Sort the attachments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormObjectpublic static final String TYPE_SEPARATOR
public static final String KEY_VALUE_SEPARATOR
public static final String DESCRIPTION
public static final String TITLE
public static final String MODULE_NUMBER
public 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 ProposalDevelopmentDocument pdDoc
protected GlobalLibraryV1_0Generator globLibV10Generator
protected GlobalLibraryV2_0Generator globLibV20Generator
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(Narrative narrative)
type - moduleNumber - desc - public String createContentId(ProposalPersonBiography biography)
protected static final String computeAttachmentHash(byte[] attachment)
attachment - protected gov.grants.apply.system.attachmentsV10.AttachedFileDataType getAttachedFileType(Narrative 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(ProposalDevelopmentDocument pdDoc, String personId, Integer rolodexId, String documentType)
ProposalPerson. For a given person or rolodex ID, it will fetch the document
of required type, also passed alongside as documentTypepdDoc - ProposalDevelopmentDocument 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 documentpublic List<org.kuali.rice.kns.util.AuditError> getAuditErrors()
getAuditErrors in interface S2SFormGeneratorpublic void setAuditErrors(List<org.kuali.rice.kns.util.AuditError> auditErrors)
auditErrors - The auditErrors to set.protected boolean isSponsorNIH(ProposalDevelopmentDocument document)
protected Narrative saveNarrative(byte[] attachment, String narrativeTypeCode, String fileName, String comment)
public void setAttachments(List<AttachmentData> attachments)
attachments - The attachments to set.public List<AnswerHeader> getQuestionnaireAnswers(DevelopmentProposal proposal, boolean finalDoc)
public void sortAttachments(ByteArrayInputStream byteArrayInputStream)
byteArrayInputStream. - Copyright © 2013 The Kuali Foundation. All Rights Reserved.