001: /*
002: * Copyright 2006-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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:
017: package org.kuali.module.kra.budget.bo;
018:
019: import java.util.List;
020:
021: /**
022: *
023: */
024: public class BudgetInstitutionCostShare extends BudgetAbstractCostShare {
025:
026: private String organizationCode;
027: private String chartOfAccountsCode;
028: private boolean permissionIndicator;
029:
030: public BudgetInstitutionCostShare() {
031: super ();
032: }
033:
034: public BudgetInstitutionCostShare(
035: BudgetInstitutionCostShare budgetInstitutionCostShare) {
036: this .documentNumber = budgetInstitutionCostShare
037: .getDocumentNumber();
038: this .budgetCostShareSequenceNumber = budgetInstitutionCostShare
039: .getBudgetCostShareSequenceNumber();
040: this .organizationCode = budgetInstitutionCostShare
041: .getOrganizationCode();
042: this .chartOfAccountsCode = budgetInstitutionCostShare
043: .getChartOfAccountsCode();
044: this .budgetCostShareDescription = budgetInstitutionCostShare
045: .getBudgetCostShareDescription();
046: this .budgetPeriodCostShare = budgetInstitutionCostShare
047: .getBudgetPeriodCostShare();
048: this .permissionIndicator = budgetInstitutionCostShare
049: .isPermissionIndicator();
050: }
051:
052: /**
053: * Gets the organizationCode attribute.
054: *
055: * @return Returns the organizationCode
056: */
057: public String getOrganizationCode() {
058: return organizationCode;
059: }
060:
061: /**
062: * Sets the organizationCode attribute.
063: *
064: * @param organizationCode The organizationCode to set.
065: */
066: public void setOrganizationCode(String organizationCode) {
067: this .organizationCode = organizationCode;
068: }
069:
070: /**
071: * Gets the chartOfAccountsCode attribute.
072: *
073: * @return Returns the documentchartOfAccountsCodeHeaderId
074: */
075: public String getChartOfAccountsCode() {
076: return chartOfAccountsCode;
077: }
078:
079: /**
080: * Sets the chartOfAccountsCode attribute.
081: *
082: * @param chartOfAccountsCode The chartOfAccountsCode to set.
083: */
084: public void setChartOfAccountsCode(String chartOfAccountsCode) {
085: this .chartOfAccountsCode = chartOfAccountsCode;
086: }
087:
088: /**
089: * Gets the budgetPeriodInstitutionCostShare attribute.
090: *
091: * @return Returns the budgetPeriodInstitutionCostShare
092: */
093: public List<BudgetPeriodInstitutionCostShare> getBudgetPeriodCostShare() {
094: return budgetPeriodCostShare;
095: }
096:
097: public BudgetPeriodInstitutionCostShare getBudgetPeriodCostShareItem(
098: int index) {
099: while (getBudgetPeriodCostShare().size() <= index) {
100: getBudgetPeriodCostShare().add(
101: new BudgetPeriodInstitutionCostShare());
102: }
103: return (BudgetPeriodInstitutionCostShare) getBudgetPeriodCostShare()
104: .get(index);
105: }
106:
107: /**
108: * Sets the budgetPeriodInstitutionCostShare attribute.
109: *
110: * @param budgetPeriodInstitutionCostShare The budgetPeriodInstitutionCostShare to set.
111: */
112: public void setBudgetPeriodCostShare(List budgetPeriodCostShare) {
113: this .budgetPeriodCostShare = budgetPeriodCostShare;
114: }
115:
116: /**
117: * Gets the permissionIndicator attribute.
118: *
119: * @return - Returns the permissionIndicator
120: */
121: public boolean isPermissionIndicator() {
122: return permissionIndicator;
123: }
124:
125: /**
126: * Sets the permissionIndicator attribute.
127: *
128: * @param permissionIndicator The permissionIndicator to set.
129: */
130: public void setPermissionIndicator(boolean permissionIndicator) {
131: this.permissionIndicator = permissionIndicator;
132: }
133: }
|