View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.kuali.kfs.module.tem.service;
20  
21  import java.io.BufferedOutputStream;
22  import java.io.BufferedReader;
23  import java.io.PrintStream;
24  import java.util.Iterator;
25  import java.util.List;
26  import java.util.Map;
27  
28  import org.kuali.kfs.module.tem.businessobject.AgencyEntryFull;
29  
30  public interface AgencyEntryService {
31      public void createEntry(AgencyEntryFull agencyEntry, PrintStream ps);
32  
33      /**
34       * writes out a list of origin entries to an output stream.
35       *
36       * @param entries an Iterator of entries to save as text
37       * @param bw the output stream to write origin entries to
38       */
39      public void flatFile(Iterator<AgencyEntryFull> entries, BufferedOutputStream bw);
40  
41      public Integer getGroupCount(String groupId);
42  
43      public Map getEntriesByBufferedReader(BufferedReader inputBufferedReader, List<AgencyEntryFull> agencyEntryList);
44  
45      public  Map getEntriesByGroupIdWithPath(String fileNameWithPath, List<AgencyEntryFull> agencyEntryList);
46  
47  }