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 GGroupMember {
023    
024            public String getEmailAddress() {
025                    return _emailAddress;
026            }
027    
028            public GGroup getGGroup() {
029                    return _gGroup;
030            }
031    
032            public GUser getGUser() {
033                    return _gUser;
034            }
035    
036            public String getType() {
037                    return _type;
038            }
039    
040            public boolean isDirect() {
041                    return _direct;
042            }
043    
044            public boolean isEveryone() {
045                    if (_emailAddress.equals(StringPool.STAR)) {
046                            return true;
047                    }
048                    else {
049                            return false;
050                    }
051            }
052    
053            public void setDirect(boolean direct) {
054                    _direct = direct;
055            }
056    
057            public void setEmailAddress(String emailAddress) {
058                    _emailAddress = emailAddress;
059            }
060    
061            public void setGGroup(GGroup gGroup) {
062                    _gGroup = gGroup;
063            }
064    
065            public void setGUser(GUser gUser) {
066                    _gUser = gUser;
067            }
068    
069            public void setType(String type) {
070                    _type = type;
071            }
072    
073            private boolean _direct;
074            private String _emailAddress = StringPool.BLANK;
075            private GGroup _gGroup;
076            private GUser _gUser;
077            private String _type;
078    
079    }