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.sys.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.rice.kns.bo.TransientBusinessObjectBase;
021
022 public class KualiModuleBO extends TransientBusinessObjectBase {
023 private String moduleName;
024
025 private String moduleCode;
026
027 private String moduleId;
028
029
030 // for DD purposes only
031 public KualiModuleBO() {
032 }
033
034 public KualiModuleBO(String moduleCode, String moduleId, String moduleName) {
035 this.moduleCode = moduleCode;
036 this.moduleId = moduleId;
037 this.moduleName = moduleName;
038 }
039
040 public String getModuleCode() {
041 return moduleCode;
042 }
043
044 public void setModuleCode(String moduleCode) {
045 this.moduleCode = moduleCode;
046 }
047
048 public String getModuleId() {
049 return moduleId;
050 }
051
052 public void setModuleId(String moduleId) {
053 this.moduleId = moduleId;
054 }
055
056 public String getModuleName() {
057 return moduleName;
058 }
059
060 public void setModuleName(String moduleName) {
061 this.moduleName = moduleName;
062 }
063
064 @Override
065 public String toString() {
066 // TODO Auto-generated method stub
067 return super.toString();
068 }
069
070
071 @Override
072 protected String toStringBuilder(LinkedHashMap fieldValues) {
073 // TODO Auto-generated method stub
074 return super.toStringBuilder(fieldValues);
075 }
076
077
078 @Override
079 protected LinkedHashMap toStringMapper() {
080 LinkedHashMap m = new LinkedHashMap();
081
082 m.put("name", getModuleName());
083 m.put("code", getModuleCode());
084 m.put("id", getModuleId());
085
086 return m;
087 }
088
089
090 }