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: *
17: */
18: package edu.sampleu.kim.bo;
19:
20: import java.util.LinkedHashMap;
21:
22: import org.kuali.core.bo.BusinessObjectBase;
23:
24: public class Permission extends BusinessObjectBase {
25:
26: private static final long serialVersionUID = -4520809944516623107L;
27: private Long id;
28: private String name;
29: private String description;
30:
31: public String getDescription() {
32: return description;
33: }
34:
35: public void setDescription(String description) {
36: this .description = description;
37: }
38:
39: public Long getId() {
40: return id;
41: }
42:
43: public void setId(Long id) {
44: this .id = id;
45: }
46:
47: public String getName() {
48: return name;
49: }
50:
51: public void setName(String name) {
52: this .name = name;
53: }
54:
55: protected LinkedHashMap toStringMapper() {
56: LinkedHashMap<String, Object> propMap = new LinkedHashMap<String, Object>();
57: propMap.put("id", getId());
58: propMap.put("name", getName());
59: propMap.put("description", getDescription());
60: return propMap;
61: }
62:
63: public void refresh() {
64: // not implementing unless necessary
65: }
66:
67: }
|