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 /** 021 * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu) 022 */ 023 024 public class RequisitionCapitalAssetSystem extends PurchasingCapitalAssetSystemBase { 025 026 private Integer purapDocumentIdentifier; 027 028 /** 029 * Default constructor. 030 */ 031 public RequisitionCapitalAssetSystem() { 032 super(); 033 } 034 035 @Override 036 public Class getCapitalAssetLocationClass() { 037 return RequisitionCapitalAssetLocation.class; 038 } 039 040 @Override 041 public Class getItemCapitalAssetClass() { 042 return RequisitionItemCapitalAsset.class; 043 } 044 045 public Integer getPurapDocumentIdentifier() { 046 return purapDocumentIdentifier; 047 } 048 049 public void setPurapDocumentIdentifier(Integer purapDocumentIdentifier) { 050 this.purapDocumentIdentifier = purapDocumentIdentifier; 051 } 052 053 @Override 054 protected LinkedHashMap toStringMapper() { 055 LinkedHashMap m = new LinkedHashMap(); 056 if (this.purapDocumentIdentifier != null) { 057 m.put("purapDocumentIdentifier", this.purapDocumentIdentifier.toString()); 058 } 059 if (this.getCapitalAssetSystemIdentifier() != null) { 060 m.put("capitalAssetSystemIdentifier", this.getCapitalAssetSystemIdentifier().toString()); 061 } 062 return m; 063 } 064 065 }