1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.kernel.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  }