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.coa.businessobject; 017 018 import org.kuali.kfs.sys.KFSConstants; 019 020 /** 021 * Returns OrganizationReversionCategoryInformation for a closed account - which is to say that only 022 * returns "R2" as the organization reversion strategy code 023 */ 024 public class ClosedAccountOrganizationReversionDetail implements OrganizationReversionCategoryInfo { 025 private OrganizationReversionCategoryInfo organizationReversionDetail; 026 027 /** 028 * Constructs a ClosedAccountOrganizationReversionDetail.java. 029 * @param organizationReversionDetail the decorated organization reversion detail 030 */ 031 protected ClosedAccountOrganizationReversionDetail(OrganizationReversionCategoryInfo organizationReversionDetail) { 032 this.organizationReversionDetail = organizationReversionDetail; 033 } 034 035 /** 036 * Always returns R2 037 * @see org.kuali.kfs.coa.businessobject.OrganizationReversionCategoryInfo#getOrganizationReversionCode() 038 */ 039 public String getOrganizationReversionCode() { 040 return KFSConstants.RULE_CODE_R2; 041 } 042 043 /** 044 * 045 * @see org.kuali.kfs.coa.businessobject.OrganizationReversionCategoryInfo#getOrganizationReversionObjectCode() 046 */ 047 public String getOrganizationReversionObjectCode() { 048 return organizationReversionDetail.getOrganizationReversionObjectCode(); 049 } 050 051 }