1 /*
2 * Copyright 2009 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.coa.businessobject;
17
18 import org.kuali.ole.sys.OLEConstants;
19
20 /**
21 * Returns OrganizationReversionCategoryInformation for a closed account - which is to say that only
22 * returns "R2" as the organization reversion strategy code
23 */
24 public class ClosedAccountOrganizationReversionDetail implements OrganizationReversionCategoryInfo {
25 private OrganizationReversionCategoryInfo organizationReversionDetail;
26
27 /**
28 * Constructs a ClosedAccountOrganizationReversionDetail.java.
29 * @param organizationReversionDetail the decorated organization reversion detail
30 */
31 protected ClosedAccountOrganizationReversionDetail(OrganizationReversionCategoryInfo organizationReversionDetail) {
32 this.organizationReversionDetail = organizationReversionDetail;
33 }
34
35 /**
36 * Always returns R2
37 * @see org.kuali.ole.coa.businessobject.OrganizationReversionCategoryInfo#getOrganizationReversionCode()
38 */
39 public String getOrganizationReversionCode() {
40 return OLEConstants.RULE_CODE_R2;
41 }
42
43 /**
44 *
45 * @see org.kuali.ole.coa.businessobject.OrganizationReversionCategoryInfo#getOrganizationReversionObjectCode()
46 */
47 public String getOrganizationReversionObjectCode() {
48 return organizationReversionDetail.getOrganizationReversionObjectCode();
49 }
50
51 }