001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }