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.module.cam.businessobject; 018 019 import java.util.LinkedHashMap; 020 021 import org.kuali.kfs.integration.cab.CapitalAssetBuilderAssetTransactionType; 022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 023 024 /** 025 * Asset Transaction Type Business Object. 026 */ 027 public class AssetLock extends PersistableBusinessObjectBase{ 028 029 private String documentNumber; 030 private Long capitalAssetNumber; 031 private String lockingInformation; 032 private String documentTypeName; 033 034 /** 035 * Default constructor. 036 */ 037 public AssetLock() { 038 039 } 040 041 public AssetLock(String documentNumber, Long capitalAssetNumber, String lockingInformation, String documentType) { 042 this.documentNumber = documentNumber; 043 this.capitalAssetNumber = capitalAssetNumber; 044 this.lockingInformation = lockingInformation; 045 this.documentTypeName = documentType; 046 } 047 048 /** 049 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 050 */ 051 protected LinkedHashMap toStringMapper() { 052 LinkedHashMap m = new LinkedHashMap(); 053 m.put("documentNumber", this.documentNumber); 054 m.put("capitalAssetNumber", this.capitalAssetNumber); 055 m.put("lockingInformation", this.lockingInformation); 056 return m; 057 } 058 059 /** 060 * Gets the documentNumber attribute. 061 * @return Returns the documentNumber. 062 */ 063 public String getDocumentNumber() { 064 return documentNumber; 065 } 066 067 /** 068 * Sets the documentNumber attribute value. 069 * @param documentNumber The documentNumber to set. 070 */ 071 public void setDocumentNumber(String documentNumber) { 072 this.documentNumber = documentNumber; 073 } 074 075 /** 076 * Gets the capitalAssetNumber attribute. 077 * @return Returns the capitalAssetNumber. 078 */ 079 public Long getCapitalAssetNumber() { 080 return capitalAssetNumber; 081 } 082 083 /** 084 * Sets the capitalAssetNumber attribute value. 085 * @param capitalAssetNumber The capitalAssetNumber to set. 086 */ 087 public void setCapitalAssetNumber(Long capitalAssetNumber) { 088 this.capitalAssetNumber = capitalAssetNumber; 089 } 090 091 /** 092 * Gets the lockingInformation attribute. 093 * @return Returns the lockingInformation. 094 */ 095 public String getLockingInformation() { 096 return lockingInformation; 097 } 098 099 /** 100 * Sets the lockingInformation attribute value. 101 * @param lockingInformation The lockingInformation to set. 102 */ 103 public void setLockingInformation(String lockingInformation) { 104 this.lockingInformation = lockingInformation; 105 } 106 107 /** 108 * Gets the documentTypeName attribute. 109 * @return Returns the documentTypeName. 110 */ 111 public String getDocumentTypeName() { 112 return documentTypeName; 113 } 114 115 /** 116 * Sets the documentTypeName attribute value. 117 * @param documentTypeName The documentTypeName to set. 118 */ 119 public void setDocumentTypeName(String documentTypeName) { 120 this.documentTypeName = documentTypeName; 121 } 122 123 124 }