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.coa.businessobject; 017 018 import java.util.LinkedHashMap; 019 020 import org.kuali.rice.kns.bo.Inactivateable; 021 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 022 023 /** 024 * 025 */ 026 public class ResponsibilityCenter extends PersistableBusinessObjectBase implements Inactivateable { 027 028 /** 029 * Default no-arg constructor. 030 */ 031 public ResponsibilityCenter() { 032 033 } 034 035 private String responsibilityCenterCode; 036 private String responsibilityCenterName; 037 private String responsibilityCenterShortName; 038 private boolean active; 039 040 /** 041 * Gets the responsibilityCenterCode attribute. 042 * 043 * @return Returns the responsibilityCenterCode 044 */ 045 public String getResponsibilityCenterCode() { 046 return responsibilityCenterCode; 047 } 048 049 /** 050 * Sets the responsibilityCenterCode attribute. 051 * 052 * @param responsibilityCenterCode The responsibilityCenterCode to set. 053 */ 054 public void setResponsibilityCenterCode(String responsibilityCenterCode) { 055 this.responsibilityCenterCode = responsibilityCenterCode; 056 } 057 058 /** 059 * Gets the responsibilityCenterName attribute. 060 * 061 * @return Returns the responsibilityCenterName 062 */ 063 public String getResponsibilityCenterName() { 064 return responsibilityCenterName; 065 } 066 067 /** 068 * Sets the responsibilityCenterName attribute. 069 * 070 * @param responsibilityCenterName The responsibilityCenterName to set. 071 */ 072 public void setResponsibilityCenterName(String responsibilityCenterName) { 073 this.responsibilityCenterName = responsibilityCenterName; 074 } 075 076 /** 077 * Gets the responsibilityCenterShortName attribute. 078 * 079 * @return Returns the responsibilityCenterShortName 080 */ 081 public String getResponsibilityCenterShortName() { 082 return responsibilityCenterShortName; 083 } 084 085 /** 086 * Sets the responsibilityCenterShortName attribute. 087 * 088 * @param responsibilityCenterShortName The responsibilityCenterShortName to set. 089 */ 090 public void setResponsibilityCenterShortName(String responsibilityCenterShortName) { 091 this.responsibilityCenterShortName = responsibilityCenterShortName; 092 } 093 094 /** 095 * Gets the active attribute. 096 * 097 * @return Returns the active 098 */ 099 public boolean isActive() { 100 return active; 101 } 102 103 /** 104 * Sets the _active_ attribute. 105 * 106 * @param _active_ The _active_ to set. 107 */ 108 public void setActive(boolean active) { 109 this.active = active; 110 } 111 112 /** 113 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 114 */ 115 protected LinkedHashMap toStringMapper() { 116 LinkedHashMap m = new LinkedHashMap(); 117 118 m.put("responsibilityCenterCode", this.responsibilityCenterCode); 119 120 return m; 121 } 122 }