001/* 002 * Copyright 2005-2006 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.ole.gl.batch.service; 017 018import org.kuali.rice.core.api.datetime.DateTimeService; 019 020/** 021 * An interface of methods to run the Poster 022 */ 023public interface PosterService { 024 /** 025 * a poster mode, where the poster will post entries 026 */ 027 public static int MODE_ENTRIES = 1; 028 /** 029 * a poster mode, where the poster will post reversals that are due to reverse 030 */ 031 public static int MODE_REVERSAL = 2; 032 /** 033 * a poster mode, where the poster will post indirect cost recovery entries 034 */ 035 public static int MODE_ICR = 3; 036 037 /** 038 * Post scrubbed GL entries to GL tables. 039 */ 040 public void postMainEntries(); 041 042 /** 043 * Post reversal GL entries to GL tables. 044 */ 045 public void postReversalEntries(); 046 047 /** 048 * Post ICR GL entries to GL tables. 049 */ 050 public void postIcrEntries(); 051 052 /** 053 * Generate ICR GL entries. 054 */ 055 public void generateIcrTransactions(); 056 057 /** 058 * Sets the dateTimeAttribute of the service 059 * 060 * @param dateTimeService the dateTimeService implementation to set 061 */ 062 public void setDateTimeService(DateTimeService dateTimeService); 063}