001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.googleapps;
016    
017    import com.liferay.portal.kernel.util.StringPool;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class GUser {
023    
024            public String getFirstName() {
025                    return _firstName;
026            }
027    
028            public String getFullName() {
029                    return _firstName.concat(StringPool.SPACE).concat(_lastName);
030            }
031    
032            public String getLastName() {
033                    return _lastName;
034            }
035    
036            public long getUserId() {
037                    return _userId;
038            }
039    
040            public boolean isActive() {
041                    return _active;
042            }
043    
044            public boolean isAdministrator() {
045                    return _administrator;
046            }
047    
048            public boolean isAgreedToTermsOfUse() {
049                    return _agreedToTermsOfUse;
050            }
051    
052            public void setActive(boolean active) {
053                    _active = active;
054            }
055    
056            public void setAdministrator(boolean administrator) {
057                    _administrator = administrator;
058            }
059    
060            public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) {
061                    _agreedToTermsOfUse = agreedToTermsOfUse;
062            }
063    
064            public void setFirstName(String firstName) {
065                    _firstName = firstName;
066            }
067    
068            public void setLastName(String lastName) {
069                    _lastName = lastName;
070            }
071    
072            public void setUserId(long userId) {
073                    _userId = userId;
074            }
075    
076            private boolean _active;
077            private boolean _administrator;
078            private boolean _agreedToTermsOfUse;
079            private String _firstName;
080            private String _lastName;
081            private long _userId;
082    
083    }