Class GroupUserCache
java.lang.Object
com.atlassian.crowd.directory.synchronisation.cache.GroupUserCache
Cache of retrieved LDAP group/user details.
This cache is used for a single synchronisation (full or incremental). It does not need to support concurrent access or usage by multiple threads.
- Since:
- 5.3
-
Constructor Summary
ConstructorsConstructorDescriptionGroupUserCache(boolean containsAllGroupsAndUsers, boolean groupsContainUserMembership, boolean usersContainGroupMembership, Collection<LDAPGroupWithAttributes> retrievedGroups, Collection<LDAPUserWithAttributes> retrievedUsers) -
Method Summary
Modifier and TypeMethodDescriptionstatic GroupUserCachefindUserMembersNamesOfGroupViaPrimaryGroupId(String primaryGroupRid) Cache-based equivalent of MicrosoftActiveDirectory.findUserMembersNamesOfGroupViaPrimaryGroupId().getGroupWithUserMembership(CrowdLdapName groupDn) Cache-based equivalent of RFC459Directory.getUsersByUserGroupMembershipAttributeFilter().
-
Constructor Details
-
GroupUserCache
public GroupUserCache(boolean containsAllGroupsAndUsers, boolean groupsContainUserMembership, boolean usersContainGroupMembership, Collection<LDAPGroupWithAttributes> retrievedGroups, Collection<LDAPUserWithAttributes> retrievedUsers)
-
-
Method Details
-
createEmptyCache
-
getGroupWithUserMembership
-
getUsersByUserGroupMembership
Cache-based equivalent of RFC459Directory.getUsersByUserGroupMembershipAttributeFilter().For a directory whose users contain group membership details (i.e. isUsingUserMembershipAttribute()), find the members of the group by using the memberOf attribute on each user.
- Returns:
- null if the details cannot be obtained from the cache. Otherwise, a non-null (possibly empty) collection.
-
findUserMembersNamesOfGroupViaPrimaryGroupId
@Nullable public Iterable<CrowdLdapName> findUserMembersNamesOfGroupViaPrimaryGroupId(String primaryGroupRid) Cache-based equivalent of MicrosoftActiveDirectory.findUserMembersNamesOfGroupViaPrimaryGroupId().Find the names of all users that have a certain group (identified by its RID) as their primary group.
- Returns:
- null if the details cannot be obtained from the cache. Otherwise, a non-null (possibly empty) collection.
-