public class GroupController extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PUBLIC_GROUP_DESCRIPTION |
static String |
PUBLIC_GROUP_NAME |
static String |
PUBLIC_GROUP_UUID |
Constructor and Description |
---|
GroupController() |
Modifier and Type | Method and Description |
---|---|
UserGroup |
createGroup(String userId,
UserGroup info) |
Group |
createOrRetrievePublicGroup() |
boolean |
deleteGroup(String userIdStr,
long groupId) |
List<Group> |
getAllGroups(Account account)
retrieves all parent groups for any group in the set.
|
ArrayList<Group> |
getAllPublicGroupsForAccount(Account account) |
UserGroup |
getGroupById(String userId,
long id)
Can access a group if you are an admin or the owner of that group
|
List<Group> |
getMatchingGroups(String userId,
String query,
int limit) |
Set<String> |
retrieveAccountGroupUUIDs(String userId) |
Group |
save(Group group) |
public static final String PUBLIC_GROUP_NAME
public static final String PUBLIC_GROUP_DESCRIPTION
public static final String PUBLIC_GROUP_UUID
public UserGroup getGroupById(String userId, long id)
userId
- user identifier; typically emailid
- unique identifier for grouppublic boolean deleteGroup(String userIdStr, long groupId)
public Group createOrRetrievePublicGroup()
public List<Group> getAllGroups(Account account)
account
- account whose groups are being retrievedCopyright © 2017. All rights reserved.