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 edu.sampleu.kim.bo;
17:
18: import java.util.LinkedHashMap;
19: import java.util.List;
20:
21: import org.kuali.core.bo.BusinessObjectBase;
22:
23: public class Group extends BusinessObjectBase {
24:
25: private static final long serialVersionUID = 4974576362491778342L;
26:
27: private Long id;
28: private String name;
29: private String description;
30: private List<User> users;
31: private List<GroupAttribute> groupAttributes;
32:
33: public String getDescription() {
34: return description;
35: }
36:
37: public void setDescription(String description) {
38: this .description = description;
39: }
40:
41: public Long getId() {
42: return id;
43: }
44:
45: public void setId(Long id) {
46: this .id = id;
47: }
48:
49: public String getName() {
50: return name;
51: }
52:
53: public void setName(String name) {
54: this .name = name;
55: }
56:
57: public List<User> getUsers() {
58: return users;
59: }
60:
61: public void setUsers(List<User> users) {
62: this .users = users;
63: }
64:
65: public List<GroupAttribute> getGroupAttributes() {
66: return groupAttributes;
67: }
68:
69: public void setGroupAttributes(List<GroupAttribute> groupAttributes) {
70: this .groupAttributes = groupAttributes;
71: }
72:
73: protected LinkedHashMap toStringMapper() {
74: LinkedHashMap<String, Object> propMap = new LinkedHashMap<String, Object>();
75: propMap.put("id", getId());
76: propMap.put("name", getName());
77: propMap.put("discription", getDescription());
78: propMap.put("permissions", getGroupAttributes());
79: propMap.put("applicationSponsoredUserAttributes", getUsers());
80: return propMap;
81: }
82:
83: public void refresh() {
84: // not implemented unless needed
85: }
86: }
|