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.integration.cg.ContractAndGrantsProposal;
20 import org.kuali.ole.integration.cg.ContractsAndGrantsAward;
21 import org.kuali.ole.sys.context.SpringContext;
22 import org.kuali.rice.core.api.config.property.ConfigurationService;
23
24 /**
25 * Defines a financial award object.
26 */
27 public class Award implements ContractsAndGrantsAward {
28 private static final String AWARD_INQUIRY_TITLE_PROPERTY = "message.inquiry.award.title";
29
30 private Long proposalNumber;
31
32 /**
33 * Default no-args constructor.
34 */
35 public Award() {
36 }
37
38
39 /**
40 * Gets the proposalNumber attribute.
41 *
42 * @return Returns the proposalNumber
43 */
44 public Long getProposalNumber() {
45 return proposalNumber;
46 }
47
48 /**
49 * Sets the proposalNumber attribute.
50 *
51 * @param proposalNumber The proposalNumber to set.
52 */
53 public void setProposalNumber(Long proposalNumber) {
54 this.proposalNumber = proposalNumber;
55 }
56
57 /**
58 * @return a String to represent this field on the inquiry
59 */
60 public String getAwardInquiryTitle() {
61 return SpringContext.getBean(ConfigurationService.class).getPropertyValueAsString(AWARD_INQUIRY_TITLE_PROPERTY);
62 }
63
64
65 public ContractAndGrantsProposal getProposal() {
66 return null;
67 }
68
69
70 public void prepareForWorkflow() {}
71
72
73 public void refresh() {}
74 }
75