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="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  }