@Service(value="userGroupManagement") public class UserGroupManagementImpl extends UserGroupManagementBase
UserGroupManagement
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
UserGroupManagementImpl() |
Modifier and Type | Method and Description |
---|---|
protected Long |
handleCreateExternalGroup(ExternalGroupVO groupVO)
Performs the core logic for
UserGroupManagementBase.createExternalGroup(ExternalGroupVO) |
protected Group |
handleCreateGroup(GroupVO groupVO)
Performs the core logic for
UserGroupManagementBase.createGroup(GroupVO) |
protected Long |
handleCreateOrUpdateExternalGroup(ExternalGroupVO groupVO)
Performs the core logic for
UserGroupManagementBase.createOrUpdateExternalGroup(ExternalGroupVO) |
protected void |
handleDeleteExternalGroup(Long groupId,
String externalSystemId)
Performs the core logic for
UserGroupManagementBase.deleteExternalGroup(Long, String) |
protected void |
handleDeleteGroup(Long groupId)
Performs the core logic for
UserGroupManagementBase.deleteGroup(Long) |
protected <T> T |
handleFindGroupByAlias(String alias,
Converter<Group,T> converter)
Find a user group by its alias and convert it to the object to be returned.
|
protected <T> T |
handleFindGroupById(Long id,
Converter<Group,T> converter)
Find a user group by its ID and convert it to the object to be returned.
|
protected boolean |
handleIsExternalGroup(Long groupId)
Test whether a group is an external group or an internal group.
|
protected void |
handleUpdateExternalGroup(Long groupId,
ExternalGroupVO groupVO)
Performs the core logic for
#updateExternalGroup(ExternalGroupVO) |
protected void |
handleUpdateGroup(Long groupId,
GroupVO groupVO)
Performs the core logic for
UserGroupManagementBase.updateGroup(Long, GroupVO) |
createExternalGroup, createGroup, createOrUpdateExternalGroup, deleteExternalGroup, deleteGroup, findGroupByAlias, findGroupById, isExternalGroup, updateExternalGroup, updateGroup
protected Long handleCreateExternalGroup(ExternalGroupVO groupVO) throws AliasValidationException, AliasAlreadyExistsException, GroupAlreadyExistsException
UserGroupManagementBase
UserGroupManagementBase.createExternalGroup(ExternalGroupVO)
handleCreateExternalGroup
in class UserGroupManagementBase
AliasValidationException
AliasAlreadyExistsException
GroupAlreadyExistsException
protected Group handleCreateGroup(GroupVO groupVO) throws AliasAlreadyExistsException, AliasValidationException, AuthorizationException
UserGroupManagementBase.createGroup(GroupVO)
handleCreateGroup
in class UserGroupManagementBase
AuthorizationException
AliasAlreadyExistsException
AliasValidationException
protected Long handleCreateOrUpdateExternalGroup(ExternalGroupVO groupVO) throws AliasAlreadyExistsException, AliasValidationException
UserGroupManagementBase
UserGroupManagementBase.createOrUpdateExternalGroup(ExternalGroupVO)
handleCreateOrUpdateExternalGroup
in class UserGroupManagementBase
groupVO
- a value object with details about the group. If the alias member is not set it
will be generated from the name.AliasAlreadyExistsException
- in case the alias already existsAliasValidationException
- in case the alias field is not validprotected void handleDeleteExternalGroup(Long groupId, String externalSystemId) throws AuthorizationException
UserGroupManagementBase
UserGroupManagementBase.deleteExternalGroup(Long, String)
handleDeleteExternalGroup
in class UserGroupManagementBase
AuthorizationException
protected void handleDeleteGroup(Long groupId) throws AuthorizationException
UserGroupManagementBase
UserGroupManagementBase.deleteGroup(Long)
handleDeleteGroup
in class UserGroupManagementBase
AuthorizationException
protected <T> T handleFindGroupByAlias(String alias, Converter<Group,T> converter)
UserGroupManagementBase
handleFindGroupByAlias
in class UserGroupManagementBase
T
- the type of the target objectalias
- the alias of the group to retrieveconverter
- the converter to create the target objectprotected <T> T handleFindGroupById(Long id, Converter<Group,T> converter)
UserGroupManagementBase
handleFindGroupById
in class UserGroupManagementBase
T
- the type of the target objectid
- the ID of the group to retrieveconverter
- the converter to create the target objectprotected boolean handleIsExternalGroup(Long groupId)
UserGroupManagementBase
handleIsExternalGroup
in class UserGroupManagementBase
groupId
- the ID of the group to testprotected void handleUpdateExternalGroup(Long groupId, ExternalGroupVO groupVO) throws GroupNotFoundException
#updateExternalGroup(ExternalGroupVO)
handleUpdateExternalGroup
in class UserGroupManagementBase
groupId
- the ID of the groupgroupVO
- a value object with details about the group.GroupNotFoundException
- in case the group to update does not existprotected void handleUpdateGroup(Long groupId, GroupVO groupVO) throws GroupNotFoundException, GroupOperationNotPermittedException
UserGroupManagementBase.updateGroup(Long, GroupVO)
handleUpdateGroup
in class UserGroupManagementBase
GroupNotFoundException
GroupOperationNotPermittedException
Copyright © 2019 Communote team. All rights reserved.