View Javadoc
1   /*
2    * Copyright 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  package org.kuali.ole.pdp.businessobject;
17  
18  import org.kuali.ole.fp.businessobject.DisbursementPayee;
19  import org.kuali.ole.sys.context.SpringContext;
20  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
21  import org.kuali.rice.krad.bo.KualiCode;
22  import org.kuali.rice.krad.service.BusinessObjectService;
23  
24  public class ACHPayee extends DisbursementPayee implements MutableInactivatable {
25      private String entityId;
26  
27      public ACHPayee() {
28          super();
29      }
30  
31      /**
32       * Gets the entityId attribute.
33       * 
34       * @return Returns the entityId.
35       */
36      public String getEntityId() {
37          return entityId;
38      }
39  
40      /**
41       * Sets the entityId attribute value.
42       * 
43       * @param entityId The entityId to set.
44       */
45      public void setEntityId(String entityId) {
46          this.entityId = entityId;
47      }
48  
49      /**
50       * @see org.kuali.ole.fp.businessobject.DisbursementPayee#getPayeeTypeDescription()
51       */
52      @Override
53      public String getPayeeTypeDescription() {
54          KualiCode payeeType = (KualiCode) SpringContext.getBean(BusinessObjectService.class).findBySinglePrimaryKey(PayeeType.class, this.getPayeeTypeCode());
55  
56          return payeeType.getName();
57      }
58  
59  }