public interface CorrectionDocumentService extends InitiateDirectory
Modifier and Type | Field and Description |
---|---|
static String |
CORRECTION_TYPE_CRITERIA |
static String |
CORRECTION_TYPE_MANUAL |
static String |
CORRECTION_TYPE_REMOVE_GROUP_FROM_PROCESSING |
static String |
SYSTEM_DATABASE |
static String |
SYSTEM_UPLOAD |
static int |
UNLIMITED_ABORT_THRESHOLD
When passed into
#retrievePersistedInputOriginEntries(CorrectionDocument, int) and
#retrievePersistedOutputOriginEntries(CorrectionDocument, int) as the int parameter, this will signify that there is
no abort threshold (i.e. |
Modifier and Type | Method and Description |
---|---|
void |
aggregateCorrectionDocumentReports(GeneralLedgerCorrectionProcessDocument document) |
boolean |
areInputOriginEntriesPersisted(GeneralLedgerCorrectionProcessDocument document)
Returns true if the system is storing input origin entries for this class.
|
boolean |
areOutputOriginEntriesPersisted(GeneralLedgerCorrectionProcessDocument document)
Returns true if the system is storing output origin entries for this class.
|
String |
createOutputFileForProcessing(String docId,
Date today) |
GeneralLedgerCorrectionProcessDocument |
findByCorrectionDocumentHeaderId(String docId)
Retrieves a correction document by the document id
|
List |
findByDocumentHeaderIdAndCorrectionGroupNumber(String docId,
int i)
Finds CollectionChange records associated with a given document id and correction change group
|
CorrectionChangeGroup |
findByDocumentNumberAndCorrectionChangeGroupNumber(String docId,
int i)
Returns a specific correction change group for a GLCP document
|
List |
findByDocumentNumberAndCorrectionGroupNumber(String docId,
int i)
Finds Collection Criteria associated with the given GLCP document and group
|
String[] |
findExistingCorrectionOutputFilesForDocument(String documentNumber)
Finds any existing output files for the given document.
|
void |
generateCorrectionReport(GeneralLedgerCorrectionProcessDocument document)
Generate a text report for the given correction document
|
String |
generateOutputOriginEntryFileName(String docId) |
String |
getBatchFileDirectoryName() |
Collection<GeneralLedgerCorrectionProcessDocument> |
getCorrectionDocumentsFinalizedOn(Date date)
Retrieves all of the documents that were finalized on a certain date
|
String |
getGlcpDirectoryName() |
List<org.kuali.rice.kns.web.ui.Column> |
getTableRenderColumnMetadata(String docId)
Returns metadata to help render columns in the GLCP.
|
void |
persistInputOriginEntriesForInitiatedOrSavedDocument(GeneralLedgerCorrectionProcessDocument document,
Iterator<OriginEntryFull> entries)
This method persists an Iterator of input origin entries for a document that is in the initiated or saved state
|
void |
persistOriginEntryGroupsForDocumentSave(GeneralLedgerCorrectionProcessDocument document,
CorrectionDocumentEntryMetadata correctionDocumentEntryMetadata)
Saves the input and output origin entry groups for a document prior to saving the document
|
void |
persistOutputOriginEntriesForInitiatedOrSavedDocument(GeneralLedgerCorrectionProcessDocument document,
Iterator<OriginEntryFull> entries)
This method persists an Iterator of input origin entries for a document that is in the initiated or saved state
|
void |
removePersistedInputOriginEntries(GeneralLedgerCorrectionProcessDocument document)
Removes input origin entries that were saved to the database associated with the given document
|
void |
removePersistedInputOriginEntries(String docId)
Removes input origin entries that were saved to the database associated with the given document
|
void |
removePersistedOutputOriginEntries(GeneralLedgerCorrectionProcessDocument document)
Removes all output origin entries persisted in the database created by the given document
|
void |
removePersistedOutputOriginEntries(String docId)
Removes all output origin entries persisted in the database created by the given document
|
List<OriginEntryFull> |
retrievePersistedInputOriginEntries(GeneralLedgerCorrectionProcessDocument document,
int abortThreshold)
Retrieves input origin entries that have been persisted for this document
|
Iterator<OriginEntryFull> |
retrievePersistedInputOriginEntriesAsIterator(GeneralLedgerCorrectionProcessDocument document)
Retrieves input origin entries that have been persisted for this document in an iterator.
|
List<OriginEntryFull> |
retrievePersistedOutputOriginEntries(GeneralLedgerCorrectionProcessDocument document,
int abortThreshold)
Retrieves output origin entries that have been persisted for this document
|
Iterator<OriginEntryFull> |
retrievePersistedOutputOriginEntriesAsIterator(GeneralLedgerCorrectionProcessDocument document)
Retrieves output origin entries that have been persisted for this document in an iterator.
|
void |
writePersistedInputOriginEntriesToStream(GeneralLedgerCorrectionProcessDocument document,
OutputStream out)
Writes out the persisted input origin entries in an
OutputStream in a flat file format |
void |
writePersistedOutputOriginEntriesToStream(GeneralLedgerCorrectionProcessDocument document,
OutputStream out)
Writes out the persisted output origin entries in an
OutputStream in a flat file format\ |
getRequiredDirectoryNames, prepareDirectories
static final String CORRECTION_TYPE_MANUAL
static final String CORRECTION_TYPE_CRITERIA
static final String CORRECTION_TYPE_REMOVE_GROUP_FROM_PROCESSING
static final String SYSTEM_DATABASE
static final String SYSTEM_UPLOAD
static final int UNLIMITED_ABORT_THRESHOLD
#retrievePersistedInputOriginEntries(CorrectionDocument, int)
and
#retrievePersistedOutputOriginEntries(CorrectionDocument, int)
as the int parameter, this will signify that there is
no abort threshold (i.e. the methods should return all of the persisted rows, regardless of number of rows.CorrectionChangeGroup findByDocumentNumberAndCorrectionChangeGroupNumber(String docId, int i)
docId
- the document id of a GLCP documenti
- the number of the correction group within the documentList findByDocumentHeaderIdAndCorrectionGroupNumber(String docId, int i)
docId
- the document id of a GLCP documenti
- the number of the correction group within the documentList findByDocumentNumberAndCorrectionGroupNumber(String docId, int i)
docId
- the document id of a GLCP documenti
- the number of the correction group within the documentGeneralLedgerCorrectionProcessDocument findByCorrectionDocumentHeaderId(String docId)
docId
- the document id of the GLCP to findList<org.kuali.rice.kns.web.ui.Column> getTableRenderColumnMetadata(String docId)
docId
- the document id of a GLCP documentvoid persistInputOriginEntriesForInitiatedOrSavedDocument(GeneralLedgerCorrectionProcessDocument document, Iterator<OriginEntryFull> entries)
document
- an initiated or saved documententries
- an Iterator of origin entriesvoid removePersistedInputOriginEntries(GeneralLedgerCorrectionProcessDocument document)
document
- a GLCP documentvoid removePersistedInputOriginEntries(String docId)
docId
- the document id of a GLCP documentList<OriginEntryFull> retrievePersistedInputOriginEntries(GeneralLedgerCorrectionProcessDocument document, int abortThreshold)
document
- the documentabortThreshold
- if the file exceeds this number of rows, then null is returned. UNLIMITED_ABORT_THRESHOLD
signifies that there is no limitRuntimeException
- several reasons, primarily relating to underlying persistence layer problemsboolean areInputOriginEntriesPersisted(GeneralLedgerCorrectionProcessDocument document)
document
- a GLCP documentvoid writePersistedInputOriginEntriesToStream(GeneralLedgerCorrectionProcessDocument document, OutputStream out) throws IOException
OutputStream
in a flat file formatdocument
- a GLCP documentout
- an open and ready output streamIOException
- thrown if errors were encountered writing to the StreamRuntimeException
- several reasons, including if the entries are not persistedvoid persistOutputOriginEntriesForInitiatedOrSavedDocument(GeneralLedgerCorrectionProcessDocument document, Iterator<OriginEntryFull> entries)
document
- an initiated or saved documententries
- an Iterator of OriginEntries to persistvoid removePersistedOutputOriginEntries(GeneralLedgerCorrectionProcessDocument document)
document
- a GLCP documentvoid removePersistedOutputOriginEntries(String docId)
docId
- the document id of a GLCP documentList<OriginEntryFull> retrievePersistedOutputOriginEntries(GeneralLedgerCorrectionProcessDocument document, int abortThreshold)
document
- the documentabortThreshold
- if the file exceeds this number of rows, then null is returned. UNLIMITED_ABORT_THRESHOLD
signifies that there is no limitRuntimeException
- several reasons, primarily relating to underlying persistence layer problemsIterator<OriginEntryFull> retrievePersistedInputOriginEntriesAsIterator(GeneralLedgerCorrectionProcessDocument document)
document
- the documentRuntimeException
- several reasons, primarily relating to underlying persistence layer problemsIterator<OriginEntryFull> retrievePersistedOutputOriginEntriesAsIterator(GeneralLedgerCorrectionProcessDocument document)
document
- the documentRuntimeException
- several reasons, primarily relating to underlying persistence layer problemsboolean areOutputOriginEntriesPersisted(GeneralLedgerCorrectionProcessDocument document)
document
- a GLCP document to queryvoid writePersistedOutputOriginEntriesToStream(GeneralLedgerCorrectionProcessDocument document, OutputStream out) throws IOException
OutputStream
in a flat file format\document
- a GLCP documentout
- axn open and ready output streamIOException
- thrown if IOExceptions occurred in writing the persisted origin entriesRuntimeException
- several reasons, including if the entries are not persistedvoid persistOriginEntryGroupsForDocumentSave(GeneralLedgerCorrectionProcessDocument document, CorrectionDocumentEntryMetadata correctionDocumentEntryMetadata)
document
- a GLCP documentcorrectionDocumentEntryMetadata
- metadata about this GLCP documentCollection<GeneralLedgerCorrectionProcessDocument> getCorrectionDocumentsFinalizedOn(Date date)
date
- the date to find GLCP documents finalized onString generateOutputOriginEntryFileName(String docId)
String createOutputFileForProcessing(String docId, Date today)
String getBatchFileDirectoryName()
String getGlcpDirectoryName()
void generateCorrectionReport(GeneralLedgerCorrectionProcessDocument document)
document
- GLCP document to report onvoid aggregateCorrectionDocumentReports(GeneralLedgerCorrectionProcessDocument document)
String[] findExistingCorrectionOutputFilesForDocument(String documentNumber)
documentNumber
- Copyright © 2004–2015 The Kuali Foundation. All rights reserved.