|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CorrectionDocumentService
An interface declaring methods needed by the GLCP to function
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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\ |
Field Detail |
---|
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.
Method Detail |
---|
CorrectionChangeGroup findByDocumentNumberAndCorrectionChangeGroupNumber(String docId, int i)
docId
- the document id of a GLCP documenti
- the number of the correction group within the document
List findByDocumentHeaderIdAndCorrectionGroupNumber(String docId, int i)
docId
- the document id of a GLCP documenti
- the number of the correction group within the document
List findByDocumentNumberAndCorrectionGroupNumber(String docId, int i)
docId
- the document id of a GLCP documenti
- the number of the correction group within the document
GeneralLedgerCorrectionProcessDocument findByCorrectionDocumentHeaderId(String docId)
docId
- the document id of the GLCP to find
List<org.kuali.rice.kns.web.ui.Column> getTableRenderColumnMetadata(String docId)
docId
- the document id of a GLCP document
void 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 limit
RuntimeException
- several reasons, primarily relating to underlying persistence layer problemsboolean areInputOriginEntriesPersisted(GeneralLedgerCorrectionProcessDocument document)
document
- a GLCP document
void writePersistedInputOriginEntriesToStream(GeneralLedgerCorrectionProcessDocument document, OutputStream out) throws IOException
OutputStream
in a flat file format
document
- a GLCP documentout
- an open and ready output stream
IOException
- thrown if errors were encountered writing to the Stream
RuntimeException
- 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 limit
RuntimeException
- several reasons, primarily relating to underlying persistence layer problemsIterator<OriginEntryFull> retrievePersistedInputOriginEntriesAsIterator(GeneralLedgerCorrectionProcessDocument document)
document
- the document
RuntimeException
- several reasons, primarily relating to underlying persistence layer problemsIterator<OriginEntryFull> retrievePersistedOutputOriginEntriesAsIterator(GeneralLedgerCorrectionProcessDocument document)
document
- the document
RuntimeException
- several reasons, primarily relating to underlying persistence layer problemsboolean areOutputOriginEntriesPersisted(GeneralLedgerCorrectionProcessDocument document)
document
- a GLCP document to query
void writePersistedOutputOriginEntriesToStream(GeneralLedgerCorrectionProcessDocument document, OutputStream out) throws IOException
OutputStream
in a flat file format\
document
- a GLCP documentout
- axn open and ready output stream
IOException
- thrown if IOExceptions occurred in writing the persisted origin entries
RuntimeException
- 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 on
String 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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |