| GGroupMember.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 2.1 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 * details.
13 */
14
15 package com.liferay.portal.kernel.googleapps;
16
17 import com.liferay.portal.kernel.util.StringPool;
18
19 /**
20 * <a href="GGroupMember.java.html"><b><i>View Source</i></b></a>
21 *
22 * @author Brian Wing Shun Chan
23 */
24 public class GGroupMember {
25
26 public String getEmailAddress() {
27 return _emailAddress;
28 }
29
30 public GGroup getGGroup() {
31 return _gGroup;
32 }
33
34 public GUser getGUser() {
35 return _gUser;
36 }
37
38 public String getType() {
39 return _type;
40 }
41
42 public boolean isDirect() {
43 return _direct;
44 }
45
46 public boolean isEveryone() {
47 if (_emailAddress.equals(StringPool.STAR)) {
48 return true;
49 }
50 else {
51 return false;
52 }
53 }
54
55 public void setDirect(boolean direct) {
56 _direct = direct;
57 }
58
59 public void setEmailAddress(String emailAddress) {
60 _emailAddress = emailAddress;
61 }
62
63 public void setGGroup(GGroup gGroup) {
64 _gGroup = gGroup;
65 }
66
67 public void setGUser(GUser gUser) {
68 _gUser = gUser;
69 }
70
71 public void setType(String type) {
72 _type = type;
73 }
74
75 private boolean _direct;
76 private String _emailAddress = StringPool.BLANK;
77 private GGroup _gGroup;
78 private GUser _gUser;
79 private String _type;
80
81 }