01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/msgcntr/trunk/messageforums-api/src/java/org/sakaiproject/api/app/messageforums/Area.java $
03: * $Id: Area.java 9227 2006-05-15 15:02:42Z cwen@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004, 2005, 2006, 2007 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.api.app.messageforums;
21:
22: import java.util.List;
23: import java.util.Set;
24:
25: public interface Area extends MutableEntity {
26:
27: public void setVersion(Integer version);
28:
29: public String getContextId();
30:
31: public void setContextId(String contextId);
32:
33: public Boolean getHidden();
34:
35: public void setHidden(Boolean hidden);
36:
37: public String getName();
38:
39: public void setName(String name);
40:
41: public Boolean getEnabled();
42:
43: public void setEnabled(Boolean enabled);
44:
45: public List getOpenForums();
46:
47: public Set getOpenForumsSet();
48:
49: public void setOpenForums(List openForums);
50:
51: public List getPrivateForums();
52:
53: public Set getPrivateForumsSet();
54:
55: public void setPrivateForums(List discussionForums);
56:
57: public List getDiscussionForums();
58:
59: public void setDiscussionForums(List discussionForums);
60:
61: public String getTypeUuid();
62:
63: public void setTypeUuid(String typeUuid);
64:
65: public void addPrivateForum(BaseForum forum);
66:
67: public void removePrivateForum(BaseForum forum);
68:
69: public void addDiscussionForum(BaseForum forum);
70:
71: public void removeDiscussionForum(BaseForum forum);
72:
73: public void addOpenForum(BaseForum forum);
74:
75: public void removeOpenForum(BaseForum forum);
76:
77: public Boolean getLocked();
78:
79: public void setLocked(Boolean locked);
80:
81: public Boolean getModerated();
82:
83: public void setModerated(Boolean moderated);
84:
85: public Set getMembershipItemSet();
86:
87: public void setMembershipItemSet(Set membershipItemSet);
88:
89: public void addMembershipItem(DBMembershipItem item);
90:
91: public void removeMembershipItem(DBMembershipItem item);
92:
93: }
|