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.cam.businessobject; 017 018 import java.util.LinkedHashMap; 019 020 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 021 022 /** 023 * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu) 024 */ 025 public class AssetOrganization extends PersistableBusinessObjectBase { 026 027 private Long capitalAssetNumber; 028 private String organizationAssetTypeIdentifier; 029 private String organizationTagNumber; 030 private String organizationText; 031 032 private Asset asset; 033 034 /** 035 * Default constructor. 036 */ 037 public AssetOrganization() { 038 039 } 040 041 /** 042 * Gets the capitalAssetNumber attribute. 043 * 044 * @return Returns the capitalAssetNumber 045 * 046 */ 047 public Long getCapitalAssetNumber() { 048 return capitalAssetNumber; 049 } 050 051 /** 052 * Sets the capitalAssetNumber attribute. 053 * 054 * @param capitalAssetNumber The capitalAssetNumber to set. 055 * 056 */ 057 public void setCapitalAssetNumber(Long capitalAssetNumber) { 058 this.capitalAssetNumber = capitalAssetNumber; 059 } 060 061 062 /** 063 * Gets the organizationAssetTypeIdentifier attribute. 064 * 065 * @return Returns the organizationAssetTypeIdentifier 066 * 067 */ 068 public String getOrganizationAssetTypeIdentifier() { 069 return organizationAssetTypeIdentifier; 070 } 071 072 /** 073 * Sets the organizationAssetTypeIdentifier attribute. 074 * 075 * @param organizationAssetTypeIdentifier The organizationAssetTypeIdentifier to set. 076 * 077 */ 078 public void setOrganizationAssetTypeIdentifier(String organizationAssetTypeIdentifier) { 079 this.organizationAssetTypeIdentifier = organizationAssetTypeIdentifier; 080 } 081 082 083 /** 084 * Gets the organizationTagNumber attribute. 085 * 086 * @return Returns the organizationTagNumber 087 * 088 */ 089 public String getOrganizationTagNumber() { 090 return organizationTagNumber; 091 } 092 093 /** 094 * Sets the organizationTagNumber attribute. 095 * 096 * @param organizationTagNumber The organizationTagNumber to set. 097 * 098 */ 099 public void setOrganizationTagNumber(String organizationTagNumber) { 100 this.organizationTagNumber = organizationTagNumber; 101 } 102 103 104 /** 105 * Gets the organizationText attribute. 106 * 107 * @return Returns the organizationText 108 * 109 */ 110 public String getOrganizationText() { 111 return organizationText; 112 } 113 114 /** 115 * Sets the organizationText attribute. 116 * 117 * @param organizationText The organizationText to set. 118 * 119 */ 120 public void setOrganizationText(String organizationText) { 121 this.organizationText = organizationText; 122 } 123 124 125 /** 126 * Gets the asset attribute. 127 * 128 * @return Returns the asset 129 * 130 */ 131 public Asset getAsset() { 132 return asset; 133 } 134 135 /** 136 * Sets the asset attribute. 137 * 138 * @param asset The asset to set. 139 * @deprecated 140 */ 141 public void setAsset(Asset asset) { 142 this.asset = asset; 143 } 144 145 /** 146 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 147 */ 148 protected LinkedHashMap toStringMapper() { 149 LinkedHashMap m = new LinkedHashMap(); 150 if (this.capitalAssetNumber != null) { 151 m.put("capitalAssetNumber", this.capitalAssetNumber.toString()); 152 } 153 return m; 154 } 155 }