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