View Javadoc
1   /*
2    * Copyright 2006-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  
17  package org.kuali.ole.integration.cg.businessobject;
18  
19  import org.kuali.ole.coa.businessobject.Account;
20  import org.kuali.ole.coa.businessobject.Chart;
21  import org.kuali.ole.integration.cg.ContractsAndGrantsAccountAwardInformation;
22  
23  /**
24   * This class represents an association between an award and an account. It's like a reference to the account from the award. This
25   * way an award can maintain a collection of these references instead of owning accounts directly.
26   */
27  public class AwardAccount implements ContractsAndGrantsAccountAwardInformation {
28  
29      private Long proposalNumber;
30      private String chartOfAccountsCode;
31      private String accountNumber;
32      private String principalId;
33      private boolean active = true;
34  
35      /***
36       * @see org.kuali.ole.integration.businessobject.cg.ContractsAndGrantsAccountAwardInformation#getProposalNumber()
37       */
38      public Long getProposalNumber() {
39          return proposalNumber;
40      }
41  
42      /**
43       * Sets the proposalNumber attribute.
44       * 
45       * @param proposalNumber The proposalNumber to set.
46       */
47      public void setProposalNumber(Long proposalNumber) {
48          this.proposalNumber = proposalNumber;
49      }
50  
51  
52      /***
53       * @see org.kuali.ole.integration.businessobject.cg.ContractsAndGrantsAccountAwardInformation#getChartOfAccountsCode()
54       */
55      public String getChartOfAccountsCode() {
56          return chartOfAccountsCode;
57      }
58  
59      /**
60       * Sets the chartOfAccountsCode attribute.
61       * 
62       * @param chartOfAccountsCode The chartOfAccountsCode to set.
63       */
64      public void setChartOfAccountsCode(String chartOfAccountsCode) {
65          this.chartOfAccountsCode = chartOfAccountsCode;
66      }
67  
68  
69      /***
70       * @see org.kuali.ole.integration.businessobject.cg.ContractsAndGrantsAccountAwardInformation#getAccountNumber()
71       */
72      public String getAccountNumber() {
73          return accountNumber;
74      }
75  
76      /**
77       * Sets the accountNumber attribute.
78       * 
79       * @param accountNumber The accountNumber to set.
80       */
81      public void setAccountNumber(String accountNumber) {
82          this.accountNumber = accountNumber;
83      }
84  
85      /***
86       * @see org.kuali.ole.integration.businessobject.cg.ContractsAndGrantsAccountAwardInformation#getPrincipalId()
87       */
88      public String getPrincipalId() {
89          return principalId;
90      }
91  
92      /**
93       * Sets the principalId attribute.
94       * 
95       * @param principalId The principalId to set.
96       */
97      public void setPrincipalId(String principalId) {
98          this.principalId = principalId;
99      }
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