001    /*
002     * Copyright 2011 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     */
016    package org.kuali.kfs.gl.batch.service;
017    
018    import java.util.Map;
019    
020    import org.kuali.kfs.gl.businessobject.OriginEntryGroup;
021    
022    /**
023     * An interface declaring the methods needed to run the organization reversion process
024     */
025    public interface OrganizationReversionProcessService {
026    
027        /**
028         * Runs the Organization Reversion Year End Process for the end of a fiscal year (ie, a process that
029         * runs before the fiscal year end, and thus uses current account, etc.)
030         * 
031         * @param jobParameters the parameters used in the process
032         * @param organizationReversionCounts a Map of named statistics generated by running the process
033         */
034        public void organizationReversionPriorYearAccountProcess(Map jobParameters, Map<String, Integer> organizationReversionCounts);
035    
036        /**
037         * Organization Reversion Year End Process for the beginning of a fiscal year (ie, the process as it runs
038         * after the fiscal year end, thus using prior year account, etc.)
039         * 
040         * @param jobParameters the parameters used in the process
041         * @param organizationReversionCounts a Map of named statistics generated by running the process
042         */
043        public void organizationReversionCurrentYearAccountProcess(Map jobParameters, Map<String, Integer> organizationReversionCounts);
044    
045        /**
046         * Returns the parameters for this organization reversion job
047         * 
048         * @return a Map of standard parameters for the job
049         */
050        public Map getJobParameters();
051    }