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: import java.util.List;
22:
23: import org.kuali.core.bo.BusinessObjectBase;
24:
25: public class User extends BusinessObjectBase {
26:
27: private static final long serialVersionUID = -1207463934478758540L;
28: private Long id;
29: private String username;
30: private String password;
31: private List<UserAttribute> userAttributes;
32:
33: public Long getId() {
34: return id;
35: }
36:
37: public void setId(Long id) {
38: this .id = id;
39: }
40:
41: public String getPassword() {
42: return password;
43: }
44:
45: public void setPassword(String password) {
46: this .password = password;
47: }
48:
49: public List<UserAttribute> getUserAttributes() {
50: return userAttributes;
51: }
52:
53: public void setUserAttributes(List<UserAttribute> userAttributes) {
54: this .userAttributes = userAttributes;
55: }
56:
57: public String getUsername() {
58: return username;
59: }
60:
61: public void setUsername(String username) {
62: this .username = username;
63: }
64:
65: protected LinkedHashMap toStringMapper() {
66: LinkedHashMap<String, Object> propMap = new LinkedHashMap<String, Object>();
67: propMap.put("id", getId());
68: propMap.put("username", getUsername());
69: propMap.put("password", getPassword());
70: propMap.put("userAttributes", getUserAttributes());
71: return propMap;
72: }
73:
74: public void refresh() {
75: // not doing this unless we need it
76: }
77: }
|