01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.kfs.bo;
17:
18: import java.util.LinkedHashMap;
19:
20: import org.kuali.core.bo.TransientBusinessObjectBase;
21:
22: public class KualiModuleBO extends TransientBusinessObjectBase {
23:
24: private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger
25: .getLogger(KualiModuleBO.class);
26:
27: private String moduleName;
28:
29: private String moduleCode;
30:
31: private String moduleId;
32:
33: // for DD purposes only
34: public KualiModuleBO() {
35: }
36:
37: public KualiModuleBO(String moduleCode, String moduleId,
38: String moduleName) {
39: this .moduleCode = moduleCode;
40: this .moduleId = moduleId;
41: this .moduleName = moduleName;
42: }
43:
44: public String getModuleCode() {
45: return moduleCode;
46: }
47:
48: public void setModuleCode(String moduleCode) {
49: this .moduleCode = moduleCode;
50: }
51:
52: public String getModuleId() {
53: return moduleId;
54: }
55:
56: public void setModuleId(String moduleId) {
57: this .moduleId = moduleId;
58: }
59:
60: public String getModuleName() {
61: return moduleName;
62: }
63:
64: public void setModuleName(String moduleName) {
65: this .moduleName = moduleName;
66: }
67:
68: @Override
69: public String toString() {
70: // TODO Auto-generated method stub
71: return super .toString();
72: }
73:
74: @Override
75: protected String toStringBuilder(LinkedHashMap fieldValues) {
76: // TODO Auto-generated method stub
77: return super .toStringBuilder(fieldValues);
78: }
79:
80: @Override
81: protected LinkedHashMap toStringMapper() {
82: LinkedHashMap m = new LinkedHashMap();
83:
84: m.put("name", getModuleName());
85: m.put("code", getModuleCode());
86: m.put("id", getModuleId());
87:
88: return m;
89: }
90:
91: }
|