View Javadoc
1   /*
2    * Copyright 2006 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.coa.businessobject.ObjectCode;
19  
20  /**
21   * An interface that represents the logic of a category associated with the Organization Reversion Process
22   */
23  public interface OrganizationReversionCategoryLogic {
24      
25      /**
26       * Given an object code, determins if balances with the object code should be added to the bucket
27       * for this category or not
28       * 
29       * @param oc the object code of a balance
30       * @return true if object code indicates that the balance should be added to this category, false if not
31       */
32      public boolean containsObjectCode(ObjectCode oc);
33  
34      /**
35       * Returns the code of the organization reversion category this logic is associated with
36       * 
37       * @return the category code of this organization reversion category
38       */
39      public String getCode();
40  
41      /**
42       * Returns the name of the organization reversion category this logic is associated with?
43       * 
44       * @return the name of this organization reversion category
45       */
46      public String getName();
47  
48      /**
49       * Does this category represent an expense?
50       * 
51       * @return true if it represents an expense, false if not
52       */
53      public boolean isExpense();
54  }