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 package org.kuali.kfs.module.purap.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.kfs.integration.purap.CapitalAssetSystem;
021 import org.kuali.kfs.integration.purap.ItemCapitalAsset;
022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023
024 public abstract class PurchasingItemCapitalAssetBase extends PersistableBusinessObjectBase implements ItemCapitalAsset {
025
026 private Long capitalAssetNumber;
027 private Integer capitalAssetSystemIdentifier;
028 private Integer itemCapitalAssetIdentifier;
029 private CapitalAssetSystem capitalAssetSystem;
030
031 /**
032 * Default constructor
033 */
034 public PurchasingItemCapitalAssetBase() {
035 super();
036 }
037
038 /**
039 * Constructs a PurchasingItemCapitalAsset.
040 * @param capitalAssetNumber
041 */
042 public PurchasingItemCapitalAssetBase(Long capitalAssetNumber){
043 this.capitalAssetNumber = capitalAssetNumber;
044 }
045
046 public Long getCapitalAssetNumber() {
047 return capitalAssetNumber;
048 }
049
050 public void setCapitalAssetNumber(Long capitalAssetNumber) {
051 this.capitalAssetNumber = capitalAssetNumber;
052 }
053
054 public Integer getCapitalAssetSystemIdentifier() {
055 return capitalAssetSystemIdentifier;
056 }
057
058 public void setCapitalAssetSystemIdentifier(Integer capitalAssetSystemIdentifier) {
059 this.capitalAssetSystemIdentifier = capitalAssetSystemIdentifier;
060 }
061
062 public Integer getItemCapitalAssetIdentifier() {
063 return itemCapitalAssetIdentifier;
064 }
065
066 public void setItemCapitalAssetIdentifier(Integer itemCapitalAssetIdentifier) {
067 this.itemCapitalAssetIdentifier = itemCapitalAssetIdentifier;
068 }
069
070 public CapitalAssetSystem getCapitalAssetSystem() {
071 return capitalAssetSystem;
072 }
073
074 public void setCapitalAssetSystem(CapitalAssetSystem capitalAssetSystem) {
075 this.capitalAssetSystem = capitalAssetSystem;
076 }
077
078 /**
079 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
080 */
081 protected LinkedHashMap toStringMapper() {
082 LinkedHashMap m = new LinkedHashMap();
083 if (this.capitalAssetNumber != null) {
084 m.put("capitalAssetNumber", this.capitalAssetNumber.toString());
085 }
086 return m;
087 }
088
089 }