Interface GroupServiceInternal
-
- All Known Implementing Classes:
GroupServiceInternalImpl
public interface GroupServiceInternal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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, String keyword, int offset, int limit, String sort)
int
getAllGroupsTotal(long orgId, String keyword)
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)
-
-
-
Method Detail
-
getGroup
Group getGroup(long groupId) throws GroupNotFoundException, ServiceLayerException
-
getGroups
List<Group> getGroups(List<Long> groupIds) throws GroupNotFoundException, ServiceLayerException
-
getGroupByName
Group getGroupByName(String groupName) throws GroupNotFoundException, ServiceLayerException
-
getAllGroups
List<Group> getAllGroups(long orgId, String keyword, int offset, int limit, String sort) throws ServiceLayerException
- Throws:
ServiceLayerException
-
getAllGroupsTotal
int getAllGroupsTotal(long orgId, String keyword) throws ServiceLayerException
- Throws:
ServiceLayerException
-
createGroup
Group createGroup(long orgId, String groupName, String groupDescription) throws GroupAlreadyExistsException, ServiceLayerException
-
updateGroup
Group updateGroup(long orgId, Group group) throws GroupNotFoundException, ServiceLayerException
-
deleteGroup
void deleteGroup(List<Long> groupIds) throws GroupNotFoundException, ServiceLayerException
-
groupExists
boolean groupExists(long groupId, String groupName) throws ServiceLayerException
- Throws:
ServiceLayerException
-
getGroupMembers
List<User> getGroupMembers(long groupId, int offset, int limit, String sort) throws GroupNotFoundException, ServiceLayerException
-
getGroupMembersTotal
int getGroupMembersTotal(long groupId) throws ServiceLayerException, GroupNotFoundException
-
addGroupMembers
List<User> addGroupMembers(long groupId, List<Long> userIds, List<String> usernames) throws GroupNotFoundException, UserNotFoundException, ServiceLayerException
-
removeGroupMembers
void removeGroupMembers(long groupId, List<Long> userIds, List<String> usernames) throws GroupNotFoundException, UserNotFoundException, ServiceLayerException
-
getSiteGroups
List<String> getSiteGroups(String siteId) throws ServiceLayerException
- Throws:
ServiceLayerException
-
-