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.integration.cg.ContractAndGrantsProposal; 020 import org.kuali.kfs.integration.cg.ContractsAndGrantsAward; 021 import org.kuali.kfs.sys.context.SpringContext; 022 import org.kuali.rice.kns.service.KualiConfigurationService; 023 024 /** 025 * Defines a financial award object. 026 */ 027 public class Award implements ContractsAndGrantsAward { 028 private static final String AWARD_INQUIRY_TITLE_PROPERTY = "message.inquiry.award.title"; 029 030 private Long proposalNumber; 031 032 /** 033 * Default no-args constructor. 034 */ 035 public Award() { 036 } 037 038 039 /** 040 * Gets the proposalNumber attribute. 041 * 042 * @return Returns the proposalNumber 043 */ 044 public Long getProposalNumber() { 045 return proposalNumber; 046 } 047 048 /** 049 * Sets the proposalNumber attribute. 050 * 051 * @param proposalNumber The proposalNumber to set. 052 */ 053 public void setProposalNumber(Long proposalNumber) { 054 this.proposalNumber = proposalNumber; 055 } 056 057 /** 058 * @return a String to represent this field on the inquiry 059 */ 060 public String getAwardInquiryTitle() { 061 return SpringContext.getBean(KualiConfigurationService.class).getPropertyString(AWARD_INQUIRY_TITLE_PROPERTY); 062 } 063 064 065 public ContractAndGrantsProposal getProposal() { 066 return null; 067 } 068 069 070 public void prepareForWorkflow() {} 071 072 073 public void refresh() {} 074 } 075