1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.googleapps;
16  
17  import java.util.List;
18  
19  /**
20   * <a href="GGroupManager.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public interface GGroupManager {
25  
26      public void addGGroupMember(
27              String groupEmailAddress, String memberEmailAddress)
28          throws GoogleAppsException;
29  
30      public void addGGroupOwner(
31              String groupEmailAddress, String ownerEmailAddress)
32          throws GoogleAppsException;
33  
34      public void deleteGGroup(String emailAddress) throws GoogleAppsException;
35  
36      public void deleteGGroupMember(
37              String groupEmailAddress, String memberEmailAddress)
38          throws GoogleAppsException;
39  
40      public void deleteGGroupOwner(
41              String groupEmailAddress, String ownerEmailAddress)
42          throws GoogleAppsException;
43  
44      public GGroup getGGroup(String emailAddress) throws GoogleAppsException;
45  
46      public GGroupMember getGGroupMember(
47              String groupEmailAddress, String memberEmailAddress)
48          throws GoogleAppsException;
49  
50      public List<GGroupMember> getGGroupMembers(String emailAddress)
51          throws GoogleAppsException;
52  
53      public GGroupOwner getGGroupOwner(
54              String groupEmailAddress, String ownerEmailAddress)
55          throws GoogleAppsException;
56  
57      public List<GGroupOwner> getGGroupOwners(String emailAddress)
58          throws GoogleAppsException;
59  
60      public List<GGroup> getGGroups() throws GoogleAppsException;
61  
62      public List<GGroup> getGGroups(long userId, boolean directOnly)
63          throws GoogleAppsException;
64  
65      public void updateDescription(String emailAddress, String description)
66          throws GoogleAppsException;
67  
68  }