Class GroupServiceInternalImpl
java.lang.Object
org.craftercms.studio.impl.v2.service.security.internal.GroupServiceInternalImpl
- All Implemented Interfaces:
GroupServiceInternal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGroupMembers(long groupId, List<Long> userIds, List<String> usernames) createGroup(long orgId, String groupName, String groupDescription, boolean externallyManaged) voiddeleteGroup(List<Long> groupIds) getAllGroups(long orgId, String keyword, int offset, int limit, String sort) intgetAllGroupsTotal(long orgId, String keyword) getGroup(long groupId) getGroupByName(String groupName) getGroupMembers(long groupId, int offset, int limit, String sort) intgetGroupMembersTotal(long groupId) getSiteGroups(String siteId) booleangroupExists(long groupId, String groupName) voidremoveGroupMembers(long groupId, List<Long> userIds, List<String> usernames) voidsetConfigurationService(ConfigurationService configurationService) voidsetGroupDao(GroupDAO groupDao) voidsetRetryingDatabaseOperationFacade(RetryingDatabaseOperationFacade retryingDatabaseOperationFacade) voidsetUserServiceInternal(UserServiceInternal userServiceInternal) updateGroup(long orgId, Group updatedGroup)
-
Constructor Details
-
GroupServiceInternalImpl
public GroupServiceInternalImpl()
-
-
Method Details
-
getGroup
- Specified by:
getGroupin interfaceGroupServiceInternal- Throws:
GroupNotFoundExceptionServiceLayerException
-
getGroups
public List<Group> getGroups(List<Long> groupIds) throws GroupNotFoundException, ServiceLayerException - Specified by:
getGroupsin interfaceGroupServiceInternal- Throws:
GroupNotFoundExceptionServiceLayerException
-
getGroupByName
- Specified by:
getGroupByNamein interfaceGroupServiceInternal- Throws:
GroupNotFoundExceptionServiceLayerException
-
groupExists
- Specified by:
groupExistsin interfaceGroupServiceInternal- Throws:
ServiceLayerException
-
getAllGroups
public List<Group> getAllGroups(long orgId, String keyword, int offset, int limit, String sort) throws ServiceLayerException - Specified by:
getAllGroupsin interfaceGroupServiceInternal- Throws:
ServiceLayerException
-
getAllGroupsTotal
- Specified by:
getAllGroupsTotalin interfaceGroupServiceInternal- Throws:
ServiceLayerException
-
createGroup
public Group createGroup(long orgId, String groupName, String groupDescription, boolean externallyManaged) throws GroupAlreadyExistsException, ServiceLayerException - Specified by:
createGroupin interfaceGroupServiceInternal- Throws:
GroupAlreadyExistsExceptionServiceLayerException
-
updateGroup
public Group updateGroup(long orgId, Group updatedGroup) throws GroupNotFoundException, ServiceLayerException - Specified by:
updateGroupin interfaceGroupServiceInternal- Throws:
GroupNotFoundExceptionServiceLayerException
-
deleteGroup
- Specified by:
deleteGroupin interfaceGroupServiceInternal- Throws:
GroupNotFoundExceptionServiceLayerException
-
getGroupMembers
public List<User> getGroupMembers(long groupId, int offset, int limit, String sort) throws GroupNotFoundException, ServiceLayerException - Specified by:
getGroupMembersin interfaceGroupServiceInternal- Throws:
GroupNotFoundExceptionServiceLayerException
-
getGroupMembersTotal
- Specified by:
getGroupMembersTotalin interfaceGroupServiceInternal- Throws:
GroupNotFoundExceptionServiceLayerException
-
addGroupMembers
public List<User> addGroupMembers(long groupId, List<Long> userIds, List<String> usernames) throws GroupNotFoundException, UserNotFoundException, ServiceLayerException - Specified by:
addGroupMembersin interfaceGroupServiceInternal- Throws:
GroupNotFoundExceptionUserNotFoundExceptionServiceLayerException
-
removeGroupMembers
public void removeGroupMembers(long groupId, List<Long> userIds, List<String> usernames) throws GroupNotFoundException, UserNotFoundException, ServiceLayerException - Specified by:
removeGroupMembersin interfaceGroupServiceInternal- Throws:
GroupNotFoundExceptionUserNotFoundExceptionServiceLayerException
-
getSiteGroups
- Specified by:
getSiteGroupsin interfaceGroupServiceInternal- Throws:
ServiceLayerException
-
getGroupDao
-
setGroupDao
-
getUserServiceInternal
-
setUserServiceInternal
-
getConfigurationService
-
setConfigurationService
-
getRetryingDatabaseOperationFacade
-
setRetryingDatabaseOperationFacade
public void setRetryingDatabaseOperationFacade(RetryingDatabaseOperationFacade retryingDatabaseOperationFacade)
-