| GGroupOwner.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * The contents of this file are subject to the terms of the Liferay Enterprise
5 * Subscription License ("License"). You may not use this file except in
6 * compliance with the License. You can obtain a copy of the License by
7 * contacting Liferay, Inc. See the License for the specific language governing
8 * permissions and limitations under the License, including but not limited to
9 * distribution rights of the Software.
10 *
11 *
12 *
13 */
14
15 package com.liferay.portal.googleapps;
16
17 import com.liferay.portal.kernel.util.StringPool;
18
19 /**
20 * <a href="GGroupOwner.java.html"><b><i>View Source</i></b></a>
21 *
22 * @author Brian Wing Shun Chan
23 */
24 public class GGroupOwner {
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 isEveryone() {
43 if (_emailAddress.equals(StringPool.STAR)) {
44 return true;
45 }
46 else {
47 return false;
48 }
49 }
50
51 public void setEmailAddress(String emailAddress) {
52 _emailAddress = emailAddress;
53 }
54
55 public void setGGroup(GGroup gGroup) {
56 _gGroup = gGroup;
57 }
58
59 public void setGUser(GUser gUser) {
60 _gUser = gUser;
61 }
62
63 public void setType(String type) {
64 _type = type;
65 }
66
67 private String _emailAddress = StringPool.BLANK;
68 private GGroup _gGroup;
69 private GUser _gUser;
70 private String _type;
71
72 }