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 RoleAttribute extends BusinessObjectBase {
25:
26: private static final long serialVersionUID = -411609041830442521L;
27: private Long id;
28: private Long attributeTypeId;
29: private String attributeName;
30: private String value;
31:
32: public String getAttributeName() {
33: return attributeName;
34: }
35:
36: public void setAttributeName(String attributeName) {
37: this .attributeName = attributeName;
38: }
39:
40: public Long getAttributeTypeId() {
41: return attributeTypeId;
42: }
43:
44: public void setAttributeTypeId(Long attributeTypeId) {
45: this .attributeTypeId = attributeTypeId;
46: }
47:
48: public Long getId() {
49: return id;
50: }
51:
52: public void setId(Long id) {
53: this .id = id;
54: }
55:
56: public String getValue() {
57: return value;
58: }
59:
60: public void setValue(String value) {
61: this .value = value;
62: }
63:
64: protected LinkedHashMap toStringMapper() {
65: LinkedHashMap<String, Object> propMap = new LinkedHashMap<String, Object>();
66: propMap.put("id", getId());
67: propMap.put("attributeTypeId", getAttributeTypeId());
68: propMap.put("attributeName", getAttributeName());
69: propMap.put("value", getValue());
70: return propMap;
71: }
72:
73: public void refresh() {
74: // not going to add unless needed
75: }
76:
77: }
|