public interface TransmitContractsAndGrantsInvoicesService
| Modifier and Type | Method and Description |
|---|---|
Collection<ContractsGrantsInvoiceDocument> |
getInvoicesByParametersFromRequest(Map fieldValues)
This seems to collect Contracts & Grants Invoices by the given lookup parameters.
|
boolean |
isInvoiceValidToEmail(ContractsGrantsInvoiceDocument contractsGrantsInvoiceDocument)
Is the invoice valid to email (has Email transmission method and hasn't been marked for processing)?
|
boolean |
isInvoiceValidToMail(ContractsGrantsInvoiceDocument contractsGrantsInvoiceDocument)
Is the invoice valid to mail (has Mail transmission method and hasn't been processed)?
|
boolean |
printInvoicesAndEnvelopesZip(Collection<ContractsGrantsInvoiceDocument> list,
ByteArrayOutputStream baos)
This method generates the actual pdf files to print.
|
boolean |
sendEmailForListofInvoicesToAgency(Collection<ContractsGrantsInvoiceDocument> list)
This method emails invoices and then sets the report delivery flag.
|
void |
validateSearchParameters(Map<String,String> fieldValues)
Validate search parameters for the Transmit Contracts & Grants Invoices lookup.
|
Collection<ContractsGrantsInvoiceDocument> getInvoicesByParametersFromRequest(Map fieldValues) throws org.kuali.rice.kew.api.exception.WorkflowException, ParseException
userId - the user carrying out this operationdocumentNumber - if present, searches by document numberproposalNumber - if present, searches by the proposal numberinvoiceAmount - if present, searches by the invoice amountchartOfAccountsCode - if present, searches on the chart of accounts codeorganizationCode - if present, searches on the organizationunformattedToDate - if present, searches on the to dateunformattedFromDate - if present, searches on the from dateinvoiceTransmissionMethodCode - searches for invoice transmission method of EMAIL, MAIL, or BOTH (all invoices)org.kuali.rice.kew.api.exception.WorkflowException - thrown if document could not be retrievedParseException - thrown if dates could not be parsedboolean isInvoiceValidToEmail(ContractsGrantsInvoiceDocument contractsGrantsInvoiceDocument)
contractsGrantsInvoiceDocument - boolean isInvoiceValidToMail(ContractsGrantsInvoiceDocument contractsGrantsInvoiceDocument)
contractsGrantsInvoiceDocument - boolean printInvoicesAndEnvelopesZip(Collection<ContractsGrantsInvoiceDocument> list, ByteArrayOutputStream baos) throws com.lowagie.text.DocumentException, IOException
list - the list of invoice documents to printa - ByteArrayOutputStream to write out tocom.lowagie.text.DocumentException - if PDF cannot be writtenIOException - if there is some other IO problemvoid validateSearchParameters(Map<String,String> fieldValues)
fieldValues - search parameters to validateboolean sendEmailForListofInvoicesToAgency(Collection<ContractsGrantsInvoiceDocument> list) throws org.kuali.rice.krad.exception.InvalidAddressException, javax.mail.MessagingException
list - org.kuali.rice.krad.exception.InvalidAddressExceptionjavax.mail.MessagingExceptionCopyright © 2004–2015 The Kuali Foundation. All rights reserved.