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