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 Application extends BusinessObjectBase {
26:
27: private static final long serialVersionUID = 7639954054609198731L;
28: private Long id;
29: private String name;
30: private String description;
31: private List<ApplicationSponsoredUserAttributeDefinition> applicationSponsoredUserAttributeDefinitions;
32: private List<Permission> permissions;
33:
34: public String getDescription() {
35: return description;
36: }
37:
38: public void setDescription(String description) {
39: this .description = description;
40: }
41:
42: public Long getId() {
43: return id;
44: }
45:
46: public void setId(Long id) {
47: this .id = id;
48: }
49:
50: public String getName() {
51: return name;
52: }
53:
54: public void setName(String name) {
55: this .name = name;
56: }
57:
58: public List<Permission> getPermissions() {
59: return permissions;
60: }
61:
62: public void setPermissions(List<Permission> permissions) {
63: this .permissions = permissions;
64: }
65:
66: public List<ApplicationSponsoredUserAttributeDefinition> getApplicationSponsoredUserAttributeDefinitions() {
67: return applicationSponsoredUserAttributeDefinitions;
68: }
69:
70: public void setApplicationSponsoredUserAttributeDefinitions(
71: List<ApplicationSponsoredUserAttributeDefinition> applicationSponsoredUserAttributeDefinitions) {
72: this .applicationSponsoredUserAttributeDefinitions = applicationSponsoredUserAttributeDefinitions;
73: }
74:
75: protected LinkedHashMap toStringMapper() {
76: LinkedHashMap<String, Object> propMap = new LinkedHashMap<String, Object>();
77: propMap.put("id", getId());
78: propMap.put("name", getName());
79: propMap.put("discription", getDescription());
80: propMap.put("permissions", getPermissions());
81: propMap.put("applicationSponsoredUserAttributeDefinitions",
82: getApplicationSponsoredUserAttributeDefinitions());
83: return propMap;
84: }
85:
86: public void refresh() {
87: // not going to do this unless needed
88: }
89:
90: }
|