1 /*
2 * Copyright 2007 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.ole.gl.batch.service;
17
18 import org.kuali.ole.gl.businessobject.OrgReversionUnitOfWork;
19
20 /**
21 * These services have to do with database interactions with an "Org Reversion Unit of Work" - which is basically a
22 * Chart-Account-SubAccount that will be/has been reverted during the year end organization reversion process, which is the great
23 * vacuum that sucks the contents out of accounts.
24 */
25 public interface OrganizationReversionUnitOfWorkService {
26 /**
27 * 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
28 * the OrgReversionProcess runs again
29 */
30 public void destroyAllUnitOfWorkSummaries();
31
32 /**
33 * This method takes a unit of work retrieved from the persistence store and loads its categories
34 *
35 * @param orgRevUnitOfWork org reversion unit of work to load categories for
36 * @return the org reversion unit of work with loaded categories
37 */
38 public OrgReversionUnitOfWork loadCategories(OrgReversionUnitOfWork orgRevUnitOfWork);
39
40 /**
41 * This save method is guaranteed to save the category data as well.
42 *
43 * @param orgRevUnitOfWork organizationReversionUnitOfWork to save
44 */
45 public void save(OrgReversionUnitOfWork orgRevUnitOfWork);
46 }