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.module.endow.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.kfs.coa.businessobject.Chart;
021 import org.kuali.kfs.coa.businessobject.ObjectCodeCurrent;
022 import org.kuali.kfs.module.endow.EndowPropertyConstants;
023 import org.kuali.rice.kns.bo.Inactivateable;
024 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
025
026 public class GLLink extends PersistableBusinessObjectBase implements Inactivateable {
027
028 private String endowmentTransactionCode;
029 private String chartCode;
030 private String object;
031 private boolean active;
032
033 private EndowmentTransactionCode endowmentTransactionRef;
034 private Chart chart;
035 private ObjectCodeCurrent financialObjectCode;
036
037 /**
038 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
039 */
040 @Override
041 protected LinkedHashMap toStringMapper() {
042 LinkedHashMap m = new LinkedHashMap();
043 m.put(EndowPropertyConstants.GL_LINK_ETRAN_CD, this.endowmentTransactionCode);
044 m.put(EndowPropertyConstants.GL_LINK_CHART_CD, this.chartCode);
045 return m;
046 }
047
048 /**
049 * Gets the chart.
050 *
051 * @return chart
052 */
053 public Chart getChart() {
054 return chart;
055 }
056
057 /**
058 * Sets the chart.
059 *
060 * @param chart
061 */
062 @Deprecated
063 public void setChart(Chart chart) {
064 this.chart = chart;
065 }
066
067 /**
068 * Gets the chartCode.
069 *
070 * @return chartCode
071 */
072 public String getChartCode() {
073 return chartCode;
074 }
075
076 /**
077 * Sets the chartCode.
078 *
079 * @param chartCode
080 */
081 public void setChartCode(String chartCode) {
082 this.chartCode = chartCode;
083 }
084
085 /**
086 * Gets the endowmentTransactionRef.
087 *
088 * @return endowmentTransactionRef
089 */
090 public EndowmentTransactionCode getEndowmentTransactionRef() {
091 return endowmentTransactionRef;
092 }
093
094 /**
095 * Sets the endowmentTransactionRef.
096 *
097 * @param endowmentTransaction
098 */
099 @Deprecated
100 public void setEndowmentTransactionCode(EndowmentTransactionCode endowmentTransaction) {
101 this.endowmentTransactionRef = endowmentTransaction;
102 }
103
104 /**
105 * Gets the endowmentTransactionCode.
106 *
107 * @return endowmentTransactionCode
108 */
109 public String getEndowmentTransactionCode() {
110 return endowmentTransactionCode;
111 }
112
113 /**
114 * Sets the endowmentTransactionCode.
115 *
116 * @param endowmentTransactionCode
117 */
118 public void setEndowmentTransactionCode(String endowmentTransactionCode) {
119 this.endowmentTransactionCode = endowmentTransactionCode;
120 }
121
122 /**
123 * Gets the financialObjectCode.
124 *
125 * @return financialObjectCode
126 */
127 public ObjectCodeCurrent getFinancialObjectCode() {
128 return financialObjectCode;
129 }
130
131 /**
132 * Sets the financialObjectCode.
133 *
134 * @param financialObjectCode
135 */
136 @Deprecated
137 public void setFinancialObjectCode(ObjectCodeCurrent financialObjectCode) {
138 this.financialObjectCode = financialObjectCode;
139 }
140
141 /**
142 * Gets the object.
143 *
144 * @return object
145 */
146 public String getObject() {
147 return object;
148 }
149
150 /**
151 * Sets the object.
152 *
153 * @param object
154 */
155 public void setObject(String object) {
156 this.object = object;
157 }
158
159 /**
160 * @see org.kuali.rice.kns.bo.Inactivateable#isActive()
161 */
162 public boolean isActive() {
163 return active;
164 }
165
166 /**
167 * @see org.kuali.rice.kns.bo.Inactivateable#setActive(boolean)
168 */
169 public void setActive(boolean active) {
170 this.active = active;
171
172 }
173
174 }