Class UserGroupMembershipService
java.lang.Object
org.alfresco.hxi_connector.nucleus_sync.services.util.UserGroupMembershipService
-
Constructor Summary
ConstructorsConstructorDescriptionUserGroupMembershipService(AlfrescoClient alfrescoClient, Duration fetchTimeout) -
Method Summary
Modifier and TypeMethodDescriptionbuildUserGroupMemberships(List<UserMapping> localUserMappings) Creates a 'user-group-membership-map' of users and their corresponding groups from alfresco.
-
Constructor Details
-
UserGroupMembershipService
public UserGroupMembershipService(AlfrescoClient alfrescoClient, @Value("${alfresco.user-group.fetch-timeout:PT5M}") Duration fetchTimeout)
-
-
Method Details
-
buildUserGroupMemberships
Creates a 'user-group-membership-map' of users and their corresponding groups from alfresco.- Parameters:
localUserMappings- the List of user mappings- Returns:
- a map of alfresco user id and its corresponding group ids
- Throws:
UserGroupFetchException- if any user's group fetch fails, or if timeout occurs
-