public interface ExternalUserGroupAccessor
Modifier and Type | Method and Description |
---|---|
void |
acceptGroupsOfUser(User user,
ExternalEntityVisitor<ExternalGroupVO> visitor)
This method can be used to visit all groups of a given user.
|
void |
acceptMembersOfGroup(ExternalUserGroup group,
ExternalEntityVisitor<Long> visitor)
This method can be used to visit all members of the given group.
|
void |
acceptParentGroups(ExternalUserGroup group,
ExternalEntityVisitor<ExternalGroupVO> visitor)
This method can be used to visit all parent groups of the given groups.
|
boolean |
canConnect()
Checks if the system is available.
|
ExternalGroupVO |
getGroup(ExternalUserGroup group)
Retrieves the current data of a group in the external system.
|
ExternalGroupVO |
getGroup(String externalGroupId)
Retrieves the current data of a group in the external system by the external group
identifier.
|
boolean |
hasGroup(ExternalUserGroup group) |
boolean |
needsSynchronization(Date date) |
void |
start()
This method will be called when the accessor starts.
|
void |
stop()
This method will be called when the accessor should be stopped.
|
boolean |
supports(ExternalSystemConfiguration externalConfiguration) |
void acceptGroupsOfUser(User user, ExternalEntityVisitor<ExternalGroupVO> visitor) throws ExternalUserGroupAccessorException
user
- The user.visitor
- A visitor for visiting the found entities.ExternalUserGroupAccessorException
- Exception.void acceptMembersOfGroup(ExternalUserGroup group, ExternalEntityVisitor<Long> visitor) throws ExternalUserGroupAccessorException
group
- The child group.visitor
- A visitor for visiting the found entities.ExternalUserGroupAccessorException
- Exception.void acceptParentGroups(ExternalUserGroup group, ExternalEntityVisitor<ExternalGroupVO> visitor) throws ExternalUserGroupAccessorException
group
- The child group.visitor
- A visitor for visiting the found entities.ExternalUserGroupAccessorException
- Exception.boolean canConnect()
ExternalGroupVO getGroup(ExternalUserGroup group) throws PluginException
group
- The group to retrieve.PluginException
- Exception.ExternalGroupVO getGroup(String externalGroupId) throws PluginException
externalGroupId
- The identifier of the external group.PluginException
- Exception.boolean hasGroup(ExternalUserGroup group) throws PluginException
group
- The group to check against.PluginException
- Exception.boolean needsSynchronization(Date date)
date
- Date.void start()
void stop()
boolean supports(ExternalSystemConfiguration externalConfiguration)
externalConfiguration
- The external configuration.Copyright © 2019 Communote team. All rights reserved.