001/* 002 * Copyright 2006-2009 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 017package org.kuali.ole.integration.cg.businessobject; 018 019import org.kuali.ole.coa.businessobject.Account; 020import org.kuali.ole.coa.businessobject.Chart; 021import org.kuali.ole.integration.cg.ContractsAndGrantsAccountAwardInformation; 022 023/** 024 * This class represents an association between an award and an account. It's like a reference to the account from the award. This 025 * way an award can maintain a collection of these references instead of owning accounts directly. 026 */ 027public class AwardAccount implements ContractsAndGrantsAccountAwardInformation { 028 029 private Long proposalNumber; 030 private String chartOfAccountsCode; 031 private String accountNumber; 032 private String principalId; 033 private boolean active = true; 034 035 /*** 036 * @see org.kuali.ole.integration.businessobject.cg.ContractsAndGrantsAccountAwardInformation#getProposalNumber() 037 */ 038 public Long getProposalNumber() { 039 return proposalNumber; 040 } 041 042 /** 043 * Sets the proposalNumber attribute. 044 * 045 * @param proposalNumber The proposalNumber to set. 046 */ 047 public void setProposalNumber(Long proposalNumber) { 048 this.proposalNumber = proposalNumber; 049 } 050 051 052 /*** 053 * @see org.kuali.ole.integration.businessobject.cg.ContractsAndGrantsAccountAwardInformation#getChartOfAccountsCode() 054 */ 055 public String getChartOfAccountsCode() { 056 return chartOfAccountsCode; 057 } 058 059 /** 060 * Sets the chartOfAccountsCode attribute. 061 * 062 * @param chartOfAccountsCode The chartOfAccountsCode to set. 063 */ 064 public void setChartOfAccountsCode(String chartOfAccountsCode) { 065 this.chartOfAccountsCode = chartOfAccountsCode; 066 } 067 068 069 /*** 070 * @see org.kuali.ole.integration.businessobject.cg.ContractsAndGrantsAccountAwardInformation#getAccountNumber() 071 */ 072 public String getAccountNumber() { 073 return accountNumber; 074 } 075 076 /** 077 * Sets the accountNumber attribute. 078 * 079 * @param accountNumber The accountNumber to set. 080 */ 081 public void setAccountNumber(String accountNumber) { 082 this.accountNumber = accountNumber; 083 } 084 085 /*** 086 * @see org.kuali.ole.integration.businessobject.cg.ContractsAndGrantsAccountAwardInformation#getPrincipalId() 087 */ 088 public String getPrincipalId() { 089 return principalId; 090 } 091 092 /** 093 * Sets the principalId attribute. 094 * 095 * @param principalId The principalId to set. 096 */ 097 public void setPrincipalId(String principalId) { 098 this.principalId = principalId; 099 } 100 101 102 /** 103 * @see org.kuali.rice.core.api.mo.common.active.MutableInactivatable#isActive() 104 */ 105 public boolean isActive() { 106 return active; 107 } 108 109 /** 110 * @see org.kuali.rice.core.api.mo.common.active.MutableInactivatable#setActive(boolean) 111 */ 112 public void setActive(boolean active) { 113 this.active = active; 114 } 115 116 /** 117 * @see org.kuali.ole.integration.cg.ContractsAndGrantsAccountAwardInformation#getProjectDirectorName() 118 */ 119 public String getProjectDirectorName() { 120 return ""; 121 } 122 123 public Account getAccount() { 124 return null; 125 } 126 127//KFSMI-861 : Removing this method as it's been removed from the Interface. 128// public ContractsAndGrantsAward getAward() { 129// return null; 130// } 131 132 public Chart getChartOfAccounts() { 133 return null; 134 } 135 136 public void prepareForWorkflow() {} 137 138 public void refresh() {} 139} 140