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 org.kuali.kfs.gl.businessobject.OrgReversionUnitOfWork;
019    
020    /**
021     * These services have to do with database interactions with an "Org Reversion Unit of Work" - which is basically a
022     * Chart-Account-SubAccount that will be/has been reverted during the year end organization reversion process, which is the great
023     * vacuum that sucks the contents out of accounts.
024     */
025    public interface OrganizationReversionUnitOfWorkService {
026        /**
027         * This method is to rain the very blows of destruction on all org reversion unit of work data, so the tables can be rebuilt as
028         * the OrgReversionProcess runs again
029         */
030        public void destroyAllUnitOfWorkSummaries();
031    
032        /**
033         * This method takes a unit of work retrieved from the persistence store and loads its categories
034         * 
035         * @param orgRevUnitOfWork org reversion unit of work to load categories for
036         * @return the org reversion unit of work with loaded categories
037         */
038        public OrgReversionUnitOfWork loadCategories(OrgReversionUnitOfWork orgRevUnitOfWork);
039    
040        /**
041         * This save method is guaranteed to save the category data as well.
042         * 
043         * @param orgRevUnitOfWork organizationReversionUnitOfWork to save
044         */
045        public void save(OrgReversionUnitOfWork orgRevUnitOfWork);
046    }