public interface GroupServiceInternal
Modifier and Type | Method and Description |
---|---|
List<User> |
addGroupMembers(long groupId,
List<Long> userIds,
List<String> usernames) |
Group |
createGroup(long orgId,
String groupName,
String groupDescription) |
void |
deleteGroup(List<Long> groupIds) |
List<Group> |
getAllGroups(long orgId,
int offset,
int limit,
String sort) |
int |
getAllGroupsTotal(long orgId) |
Group |
getGroup(long groupId) |
Group |
getGroupByName(String groupName) |
List<User> |
getGroupMembers(long groupId,
int offset,
int limit,
String sort) |
int |
getGroupMembersTotal(long groupId) |
List<Group> |
getGroups(List<Long> groupIds) |
List<String> |
getSiteGroups(String siteId) |
boolean |
groupExists(long groupId,
String groupName) |
void |
removeGroupMembers(long groupId,
List<Long> userIds,
List<String> usernames) |
Group |
updateGroup(long orgId,
Group group) |
Group getGroup(long groupId) throws GroupNotFoundException, ServiceLayerException
List<Group> getGroups(List<Long> groupIds) throws GroupNotFoundException, ServiceLayerException
Group getGroupByName(String groupName) throws GroupNotFoundException, ServiceLayerException
List<Group> getAllGroups(long orgId, int offset, int limit, String sort) throws ServiceLayerException
ServiceLayerException
int getAllGroupsTotal(long orgId) throws ServiceLayerException
ServiceLayerException
Group createGroup(long orgId, String groupName, String groupDescription) throws GroupAlreadyExistsException, ServiceLayerException
Group updateGroup(long orgId, Group group) throws GroupNotFoundException, ServiceLayerException
void deleteGroup(List<Long> groupIds) throws GroupNotFoundException, ServiceLayerException
boolean groupExists(long groupId, String groupName) throws ServiceLayerException
ServiceLayerException
List<User> getGroupMembers(long groupId, int offset, int limit, String sort) throws GroupNotFoundException, ServiceLayerException
int getGroupMembersTotal(long groupId) throws ServiceLayerException, GroupNotFoundException
List<User> addGroupMembers(long groupId, List<Long> userIds, List<String> usernames) throws GroupNotFoundException, UserNotFoundException, ServiceLayerException
void removeGroupMembers(long groupId, List<Long> userIds, List<String> usernames) throws GroupNotFoundException, UserNotFoundException, ServiceLayerException
List<String> getSiteGroups(String siteId) throws ServiceLayerException
ServiceLayerException
Copyright © 2020 CrafterCMS. All rights reserved.