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 GGroupOwner {
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 isEveryone() {
041                    if (_emailAddress.equals(StringPool.STAR)) {
042                            return true;
043                    }
044                    else {
045                            return false;
046                    }
047            }
048    
049            public void setEmailAddress(String emailAddress) {
050                    _emailAddress = emailAddress;
051            }
052    
053            public void setGGroup(GGroup gGroup) {
054                    _gGroup = gGroup;
055            }
056    
057            public void setGUser(GUser gUser) {
058                    _gUser = gUser;
059            }
060    
061            public void setType(String type) {
062                    _type = type;
063            }
064    
065            private String _emailAddress = StringPool.BLANK;
066            private GGroup _gGroup;
067            private GUser _gUser;
068            private String _type;
069    
070    }