01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/mailtool/tags/sakai_2-4-1/mailtool/src/java/org/sakaiproject/tool/mailtool/EmailGroup.java $
03: * $Id: EmailGroup.java 27662 2007-03-22 19:44:57Z kimsooil@bu.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 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.tool.mailtool;
21:
22: import java.util.ArrayList;
23: import java.util.List;
24:
25: /**
26: * EmailGroup in Mailtool (Can be roles, groups, sections in the site), commented by kimsooil@bu.edu
27: *
28: * @author sgithens
29: *
30: */
31: public class EmailGroup {
32: protected EmailRole m_emailrole = null;
33: protected List /* EmailUser */m_emailusers = new ArrayList();
34:
35: public EmailGroup(EmailRole emailrole,
36: List /* EmailUser */emailusers) {
37: m_emailrole = emailrole;
38: m_emailusers = emailusers;
39: }
40:
41: public String getRolePlural() {
42: return m_emailrole.getRoleplural();
43: }
44:
45: public EmailRole getEmailrole() {
46: return m_emailrole;
47: }
48:
49: public void setEmailrole(EmailRole m_emailrole) {
50: this .m_emailrole = m_emailrole;
51: }
52:
53: public List getEmailusers() {
54: return m_emailusers;
55: }
56:
57: public void setEmailusers(List m_emailusers) {
58: this.m_emailusers = m_emailusers;
59: }
60:
61: }
|