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 java.util.List;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public interface GGroupManager {
023    
024            public void addGGroupMember(
025                            String groupEmailAddress, String memberEmailAddress)
026                    throws GoogleAppsException;
027    
028            public void addGGroupOwner(
029                            String groupEmailAddress, String ownerEmailAddress)
030                    throws GoogleAppsException;
031    
032            public void deleteGGroup(String emailAddress) throws GoogleAppsException;
033    
034            public void deleteGGroupMember(
035                            String groupEmailAddress, String memberEmailAddress)
036                    throws GoogleAppsException;
037    
038            public void deleteGGroupOwner(
039                            String groupEmailAddress, String ownerEmailAddress)
040                    throws GoogleAppsException;
041    
042            public GGroup getGGroup(String emailAddress) throws GoogleAppsException;
043    
044            public GGroupMember getGGroupMember(
045                            String groupEmailAddress, String memberEmailAddress)
046                    throws GoogleAppsException;
047    
048            public List<GGroupMember> getGGroupMembers(String emailAddress)
049                    throws GoogleAppsException;
050    
051            public GGroupOwner getGGroupOwner(
052                            String groupEmailAddress, String ownerEmailAddress)
053                    throws GoogleAppsException;
054    
055            public List<GGroupOwner> getGGroupOwners(String emailAddress)
056                    throws GoogleAppsException;
057    
058            public List<GGroup> getGGroups() throws GoogleAppsException;
059    
060            public List<GGroup> getGGroups(long userId, boolean directOnly)
061                    throws GoogleAppsException;
062    
063            public void updateDescription(String emailAddress, String description)
064                    throws GoogleAppsException;
065    
066    }