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="GUser.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class GUser {
25  
26      public String getFirstName() {
27          return _firstName;
28      }
29  
30      public String getFullName() {
31          return _firstName.concat(StringPool.SPACE).concat(_lastName);
32      }
33  
34      public String getLastName() {
35          return _lastName;
36      }
37  
38      public long getUserId() {
39          return _userId;
40      }
41  
42      public boolean isActive() {
43          return _active;
44      }
45  
46      public boolean isAdministrator() {
47          return _administrator;
48      }
49  
50      public boolean isAgreedToTermsOfUse() {
51          return _agreedToTermsOfUse;
52      }
53  
54      public void setActive(boolean active) {
55          _active = active;
56      }
57  
58      public void setAdministrator(boolean administrator) {
59          _administrator = administrator;
60      }
61  
62      public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) {
63          _agreedToTermsOfUse = agreedToTermsOfUse;
64      }
65  
66      public void setFirstName(String firstName) {
67          _firstName = firstName;
68      }
69  
70      public void setLastName(String lastName) {
71          _lastName = lastName;
72      }
73  
74      public void setUserId(long userId) {
75          _userId = userId;
76      }
77  
78      private boolean _active;
79      private boolean _administrator;
80      private boolean _agreedToTermsOfUse;
81      private String _firstName;
82      private String _lastName;
83      private long _userId;
84  
85  }