01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.gl.service;
17:
18: import org.kuali.module.gl.bo.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 OrgReversionUnitOfWorkService {
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(
39: OrgReversionUnitOfWork orgRevUnitOfWork);
40:
41: /**
42: * This save method is guaranteed to save the category data as well.
43: *
44: * @param orgRevUnitOfWork organizationReversionUnitOfWork to save
45: */
46: public void save(OrgReversionUnitOfWork orgRevUnitOfWork);
47: }
|