Class GroupServiceInternalImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v2.service.security.internal.GroupServiceInternalImpl
-
- All Implemented Interfaces:
GroupServiceInternal
public class GroupServiceInternalImpl extends Object implements GroupServiceInternal
-
-
Constructor Summary
Constructors Constructor Description GroupServiceInternalImpl()
-
Method Summary
-
-
-
Method Detail
-
getGroup
public Group getGroup(long groupId) throws GroupNotFoundException, ServiceLayerException
- 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
public Group getGroupByName(String groupName) throws GroupNotFoundException, ServiceLayerException
- Specified by:
getGroupByName
in interfaceGroupServiceInternal
- Throws:
GroupNotFoundException
ServiceLayerException
-
groupExists
public boolean groupExists(long groupId, String groupName) throws ServiceLayerException
- 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
public int getAllGroupsTotal(long orgId, String keyword) throws ServiceLayerException
- 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
public void deleteGroup(List<Long> groupIds) throws GroupNotFoundException, ServiceLayerException
- 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
public int getGroupMembersTotal(long groupId) throws GroupNotFoundException, ServiceLayerException
- 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
public List<String> getSiteGroups(String siteId) throws ServiceLayerException
- Specified by:
getSiteGroups
in interfaceGroupServiceInternal
- Throws:
ServiceLayerException
-
getGroupDao
public GroupDAO getGroupDao()
-
setGroupDao
public void setGroupDao(GroupDAO groupDao)
-
getUserServiceInternal
public UserServiceInternal getUserServiceInternal()
-
setUserServiceInternal
public void setUserServiceInternal(UserServiceInternal userServiceInternal)
-
getConfigurationService
public ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
getRetryingDatabaseOperationFacade
public RetryingDatabaseOperationFacade getRetryingDatabaseOperationFacade()
-
setRetryingDatabaseOperationFacade
public void setRetryingDatabaseOperationFacade(RetryingDatabaseOperationFacade retryingDatabaseOperationFacade)
-
-