org.kuali.kfs.gl.service.impl
Class OriginEntryServiceImpl

java.lang.Object
  extended by org.kuali.kfs.gl.service.impl.OriginEntryServiceImpl
All Implemented Interfaces:
OriginEntryService

@Transactional
public class OriginEntryServiceImpl
extends Object
implements OriginEntryService

The base implementation of OriginEntryService


Constructor Summary
OriginEntryServiceImpl()
          Constructs a new instance of OriginEntryServiceImpl
 
Method Summary
static LedgerEntryForReporting buildLedgerEntry(Object[] entrySummary)
          Creates or updates a ledger entry with the array of information from the given entry summary object
 void createEntry(OriginEntryFull originEntry, PrintStream ps)
           
 void flatFile(Iterator<OriginEntryFull> entries, BufferedOutputStream bw)
          This method writes origin entries into a file format.
 Map getEntriesByBufferedReader(BufferedReader inputBufferedReader, List<OriginEntryFull> originEntryList)
           
 Map getEntriesByGroupIdWithPath(String fileNameWithPath, List<OriginEntryFull> originEntryList)
           
 Integer getGroupCount(String fileNameWithPath)
           
 Map<String,PosterOutputSummaryEntry> getPosterOutputSummaryByGroupId(Collection groupIdList)
          get the summarized information of poster input entries that belong to the entry groups with the given group id list
 LedgerEntryHolder getSummaryByGroupId(Collection groupIdList)
          Given a collection of group ids, summarize the entries in each group.
 void setBatchFileDirectoryName(String batchFileDirectoryName)
           
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
           
 void setOriginEntryGroupService(OriginEntryGroupService originEntryGroupService)
          Sets the originEntryGroupService attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OriginEntryServiceImpl

public OriginEntryServiceImpl()
Constructs a new instance of OriginEntryServiceImpl

Method Detail

setOriginEntryGroupService

public void setOriginEntryGroupService(OriginEntryGroupService originEntryGroupService)
Sets the originEntryGroupService attribute

Parameters:
originEntryGroupService - the implementation of OriginEntryGroupService to set

createEntry

public void createEntry(OriginEntryFull originEntry,
                        PrintStream ps)
Specified by:
createEntry in interface OriginEntryService

getSummaryByGroupId

public LedgerEntryHolder getSummaryByGroupId(Collection groupIdList)
Given a collection of group ids, summarize the entries in each group.

Specified by:
getSummaryByGroupId in interface OriginEntryService
Parameters:
groupIdList - a Collection of the ids of origin entry groups to summarize
Returns:
a LedgerEntryHolder with all of the summarized information
See Also:
OriginEntryService.getSummaryByGroupId(Collection)

buildLedgerEntry

public static LedgerEntryForReporting buildLedgerEntry(Object[] entrySummary)
Creates or updates a ledger entry with the array of information from the given entry summary object

Parameters:
entrySummary - a collection of java.lang.Objects, which is what OJB report queries return
Returns:
a LedgerEntry holding the given report summarization data

flatFile

public void flatFile(Iterator<OriginEntryFull> entries,
                     BufferedOutputStream bw)
This method writes origin entries into a file format. This particular implementation will use the OriginEntryFull.getLine method to generate the text for this file.

Specified by:
flatFile in interface OriginEntryService
Parameters:
entries - An iterator of OriginEntries
bw - an opened, ready-for-output bufferedOutputStream.
See Also:
OriginEntryService.flatFile(java.util.Iterator, java.io.BufferedOutputStream)

getEntriesByGroupIdWithPath

public Map getEntriesByGroupIdWithPath(String fileNameWithPath,
                                       List<OriginEntryFull> originEntryList)
Specified by:
getEntriesByGroupIdWithPath in interface OriginEntryService

getEntriesByBufferedReader

public Map getEntriesByBufferedReader(BufferedReader inputBufferedReader,
                                      List<OriginEntryFull> originEntryList)
Specified by:
getEntriesByBufferedReader in interface OriginEntryService

getPosterOutputSummaryByGroupId

public Map<String,PosterOutputSummaryEntry> getPosterOutputSummaryByGroupId(Collection groupIdList)
get the summarized information of poster input entries that belong to the entry groups with the given group id list

Specified by:
getPosterOutputSummaryByGroupId in interface OriginEntryService
Parameters:
groupIdList - the origin entry groups
Returns:
a map of summarized information of poster input entries within the specified groups
See Also:
OriginEntryService.getPosterOutputSummaryByGroupId(java.util.Collection)

getGroupCount

public Integer getGroupCount(String fileNameWithPath)
Specified by:
getGroupCount in interface OriginEntryService

setDateTimeService

public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)

setBatchFileDirectoryName

public void setBatchFileDirectoryName(String batchFileDirectoryName)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.