public interface NarrativeService
Modifier and Type | Method and Description |
---|---|
NarrativeContract |
createSystemGeneratedNarrative(String proposalNumber,
String narrativeTypeCode,
byte[] attachmentData,
String attachmentName,
String comments)
This method creates a system generated narrative.
|
void |
deleteAutoGeneratedNarratives(List<? extends NarrativeContract> narratives)
Given a collection of narratives, each narratives that was "auto-generated" will be deleted
from the proposal development system of record.
|
void |
deleteSystemGeneratedNarratives(List<? extends NarrativeContract> narratives)
Given a collection of narratives, each narratives that was "system-generated" will be deleted
from the proposal development system of record.
|
boolean |
isAutoGeneratedNarrative(NarrativeContract narrative)
Checks if a narrative is "auto-generated".
|
boolean |
isSystemGeneratedNarrative(NarrativeContract narrative)
Checks if a narrative is "system-generated".
|
void deleteAutoGeneratedNarratives(List<? extends NarrativeContract> narratives)
narratives
- the collection of narratives. Cannot be null.IllegalArgumentException
- if narratives collection is nullboolean isAutoGeneratedNarrative(NarrativeContract narrative)
narrative
- the narrative. Cannot be null.IllegalArgumentException
- if narrative is nullNarrativeContract createSystemGeneratedNarrative(String proposalNumber, String narrativeTypeCode, byte[] attachmentData, String attachmentName, String comments)
proposalNumber
- the proposal number which the narrative is associated with. Cannot be blank.narrativeTypeCode
- the narrative type code. Cannot be blank.attachmentData
- the attachment data. Cannot be blank (null or empty array)attachmentName
- the name of the attachment. Cannot be blank.comments
- the comments on the narrative. Cannot be blank.void deleteSystemGeneratedNarratives(List<? extends NarrativeContract> narratives)
narratives
- the collection of narratives. Cannot be null.IllegalArgumentException
- if narratives collection is nullboolean isSystemGeneratedNarrative(NarrativeContract narrative)
narrative
- the narrative. Cannot be null.IllegalArgumentException
- if narrative is nullCopyright © 2014 The Kuali Foundation. All rights reserved.