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