01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/help/tags/sakai_2-4-1/help-component-shared/src/java/org/sakaiproject/component/app/help/model/SourceBean.java $
03: * $Id: SourceBean.java 7653 2006-04-12 12:10:02Z marquard@ched.uct.ac.za $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.component.app.help.model;
21:
22: import java.util.HashMap;
23: import java.util.Map;
24: import java.util.Set;
25:
26: import org.sakaiproject.api.app.help.Source;
27:
28: /**
29: * source bean
30: * @version $Id: SourceBean.java 7653 2006-04-12 12:10:02Z marquard@ched.uct.ac.za $
31: */
32: public class SourceBean implements Source {
33: private Long id;
34: private Map attributes = new HashMap();
35: private String name;
36: private Set urlAppenders;
37:
38: /**
39: * get id
40: * @return Returns the id.
41: */
42: public Long getId() {
43: return id;
44: }
45:
46: /**
47: * set id
48: * @param id The id to set.
49: */
50: public void setId(Long id) {
51: this .id = id;
52: }
53:
54: /**
55: * @see org.sakaiproject.api.app.help.Source#getAttributes()
56: */
57: public Map getAttributes() {
58: return attributes;
59: }
60:
61: /**
62: * @see org.sakaiproject.api.app.help.Source#setAttributes(java.util.Map)
63: */
64: public void setAttributes(Map attributes) {
65: this .attributes = attributes;
66: }
67:
68: /**
69: * @see org.sakaiproject.api.app.help.Source#getName()
70: */
71: public String getName() {
72: return name;
73: }
74:
75: /**
76: * @see org.sakaiproject.api.app.help.Source#setName(java.lang.String)
77: */
78: public void setName(String name) {
79: this .name = name;
80: }
81:
82: /**
83: * @see org.sakaiproject.api.app.help.Source#getUrlAppenders()
84: */
85: public Set getUrlAppenders() {
86: return urlAppenders;
87: }
88:
89: /**
90: * @see org.sakaiproject.api.app.help.Source#setUrlAppenders(java.util.Set)
91: */
92: public void setUrlAppenders(Set urlAppenders) {
93: this.urlAppenders = urlAppenders;
94: }
95:
96: }
|