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.module.external.kc.businessobject; 018 019 import java.util.List; 020 021 import org.kuali.kfs.integration.cg.ContractsAndGrantsAward; 022 import org.kuali.kfs.sys.context.SpringContext; 023 import org.kuali.rice.kns.service.KualiConfigurationService; 024 import org.kuali.rice.kns.util.TypedArrayList; 025 026 /** 027 * Defines a financial award object. 028 */ 029 public class Award implements ContractsAndGrantsAward { 030 private static final String AWARD_INQUIRY_TITLE_PROPERTY = "message.inquiry.award.title"; 031 032 private Long proposalNumber; 033 private String awardNumber; 034 private String agencyNumber; 035 private String primeAgencyNumber; 036 private String awardTitle; 037 private String grantNumber; 038 private String cfdaNumber; 039 040 private Proposal proposal; 041 private Agency agency; 042 private Agency primeAgency; 043 private List<AwardAccount> awardAccounts; 044 045 /** 046 * Default no-args constructor. 047 */ 048 public Award() { 049 awardAccounts = new TypedArrayList(AwardAccount.class); 050 } 051 052 /** 053 * Gets the proposalNumber attribute. 054 * 055 * @return Returns the proposalNumber 056 */ 057 public Long getProposalNumber() { 058 return proposalNumber; 059 } 060 061 /** 062 * Sets the proposalNumber attribute. 063 * 064 * @param proposalNumber The proposalNumber to set. 065 */ 066 public void setProposalNumber(Long proposalNumber) { 067 this.proposalNumber = proposalNumber; 068 } 069 070 /** 071 * @return a String to represent this field on the inquiry 072 */ 073 public String getAwardInquiryTitle() { 074 return SpringContext.getBean(KualiConfigurationService.class).getPropertyString(AWARD_INQUIRY_TITLE_PROPERTY); 075 } 076 077 078 public Proposal getProposal() { 079 return proposal; 080 } 081 082 083 public void prepareForWorkflow() {} 084 085 086 public void refresh() {} 087 088 089 public void setProposal(Proposal proposal) { 090 this.proposal = proposal; 091 } 092 093 094 public Agency getAgency() { 095 return agency; 096 } 097 098 099 public void setAgency(Agency agency) { 100 this.agency = agency; 101 } 102 103 104 /** 105 * Gets the awardAccounts list. 106 * 107 * @return Returns the awardAccounts. 108 */ 109 public List<AwardAccount> getAwardAccounts() { 110 return awardAccounts; 111 } 112 113 /** 114 * Sets the awardAccounts list. 115 * 116 * @param awardAccounts The awardAccounts to set. 117 */ 118 public void setAwardAccounts(List<AwardAccount> awardAccounts) { 119 this.awardAccounts = awardAccounts; 120 } 121 122 public String getAgencyNumber() { 123 return agencyNumber; 124 } 125 126 public void setAgencyNumber(String agencyNumber) { 127 this.agencyNumber = agencyNumber; 128 } 129 130 public String getAwardTitle() { 131 return awardTitle; 132 } 133 134 public void setAwardTitle(String awardTitle) { 135 this.awardTitle = awardTitle; 136 } 137 138 public String getPrimeAgencyNumber() { 139 return primeAgencyNumber; 140 } 141 142 public void setPrimeAgencyNumber(String primeAgencyNumber) { 143 this.primeAgencyNumber = primeAgencyNumber; 144 } 145 146 public Agency getPrimeAgency() { 147 return primeAgency; 148 } 149 150 public void setPrimeAgency(Agency primeAgency) { 151 this.primeAgency = primeAgency; 152 } 153 154 public String getAwardNumber() { 155 return awardNumber; 156 } 157 158 public void setAwardNumber(String awardNumber) { 159 this.awardNumber = awardNumber; 160 } 161 162 public String getGrantNumber() { 163 return grantNumber; 164 } 165 166 public void setGrantNumber(String grantNumber) { 167 this.grantNumber = grantNumber; 168 } 169 170 171 /** 172 * Gets the cfdaNumber attribute. 173 * 174 * @return Returns the cfdaNumber 175 */ 176 public String getCfdaNumber() { 177 return cfdaNumber; 178 } 179 180 /** 181 * Sets the cfdaNumber attribute. 182 * 183 * @param cfdaNumber The cfdaNumber to set. 184 */ 185 public void setCfdaNumber(String cfdaNumber) { 186 this.cfdaNumber = cfdaNumber; 187 } 188 189 } 190