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) void
deleteGroup
(List<Long> groupIds) getAllGroups
(long orgId, String keyword, int offset, int limit, String sort) int
getAllGroupsTotal
(long orgId, String keyword) getGroup
(long groupId) getGroupByName
(String groupName) getGroupMembers
(long groupId, int offset, int limit, String sort) int
getGroupMembersTotal
(long groupId) getSiteGroups
(String siteId) boolean
groupExists
(long groupId, String groupName) void
removeGroupMembers
(long groupId, List<Long> userIds, List<String> usernames) void
setConfigurationService
(ConfigurationService configurationService) void
setGroupDao
(GroupDAO groupDao) void
setRetryingDatabaseOperationFacade
(RetryingDatabaseOperationFacade retryingDatabaseOperationFacade) void
setUserServiceInternal
(UserServiceInternal userServiceInternal) updateGroup
(long orgId, Group updatedGroup)
-
Constructor Details
-
GroupServiceInternalImpl
public GroupServiceInternalImpl()
-
-
Method Details
-
getGroup
- Specified by:
getGroup
in interfaceGroupServiceInternal
- Throws:
GroupNotFoundException
ServiceLayerException
-
getGroups
public List<Group> getGroups(List<Long> groupIds) throws GroupNotFoundException, ServiceLayerException - Specified by:
getGroups
in interfaceGroupServiceInternal
- Throws:
GroupNotFoundException
ServiceLayerException
-
getGroupByName
- Specified by:
getGroupByName
in interfaceGroupServiceInternal
- Throws:
GroupNotFoundException
ServiceLayerException
-
groupExists
- Specified by:
groupExists
in interfaceGroupServiceInternal
- Throws:
ServiceLayerException
-
getAllGroups
public List<Group> getAllGroups(long orgId, String keyword, int offset, int limit, String sort) throws ServiceLayerException - Specified by:
getAllGroups
in interfaceGroupServiceInternal
- Throws:
ServiceLayerException
-
getAllGroupsTotal
- Specified by:
getAllGroupsTotal
in interfaceGroupServiceInternal
- Throws:
ServiceLayerException
-
createGroup
public Group createGroup(long orgId, String groupName, String groupDescription, boolean externallyManaged) throws GroupAlreadyExistsException, ServiceLayerException - Specified by:
createGroup
in interfaceGroupServiceInternal
- Throws:
GroupAlreadyExistsException
ServiceLayerException
-
updateGroup
public Group updateGroup(long orgId, Group updatedGroup) throws GroupNotFoundException, ServiceLayerException - Specified by:
updateGroup
in interfaceGroupServiceInternal
- Throws:
GroupNotFoundException
ServiceLayerException
-
deleteGroup
- Specified by:
deleteGroup
in interfaceGroupServiceInternal
- Throws:
GroupNotFoundException
ServiceLayerException
-
getGroupMembers
public List<User> getGroupMembers(long groupId, int offset, int limit, String sort) throws GroupNotFoundException, ServiceLayerException - Specified by:
getGroupMembers
in interfaceGroupServiceInternal
- Throws:
GroupNotFoundException
ServiceLayerException
-
getGroupMembersTotal
- Specified by:
getGroupMembersTotal
in interfaceGroupServiceInternal
- Throws:
GroupNotFoundException
ServiceLayerException
-
addGroupMembers
public List<User> addGroupMembers(long groupId, List<Long> userIds, List<String> usernames) throws GroupNotFoundException, UserNotFoundException, ServiceLayerException - Specified by:
addGroupMembers
in interfaceGroupServiceInternal
- Throws:
GroupNotFoundException
UserNotFoundException
ServiceLayerException
-
removeGroupMembers
public void removeGroupMembers(long groupId, List<Long> userIds, List<String> usernames) throws GroupNotFoundException, UserNotFoundException, ServiceLayerException - Specified by:
removeGroupMembers
in interfaceGroupServiceInternal
- Throws:
GroupNotFoundException
UserNotFoundException
ServiceLayerException
-
getSiteGroups
- Specified by:
getSiteGroups
in interfaceGroupServiceInternal
- Throws:
ServiceLayerException
-
getGroupDao
-
setGroupDao
-
getUserServiceInternal
-
setUserServiceInternal
-
getConfigurationService
-
setConfigurationService
-
getRetryingDatabaseOperationFacade
-
setRetryingDatabaseOperationFacade
public void setRetryingDatabaseOperationFacade(RetryingDatabaseOperationFacade retryingDatabaseOperationFacade)
-