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