public class DefaultSearchStrategyFactory extends Object implements SearchStrategyFactory
SearchStrategyFactory which will delegate to the DirectoryManager for all of its
search strategies.
This factory is guaranteed to return non-empty for any application and configuration of directories
NoDirectorySearchStrategy,
SingleDirectorySearchStrategy,
InMemoryAggregatingMembershipSearchStrategy| Constructor and Description |
|---|
DefaultSearchStrategyFactory(DirectoryManager directoryManager) |
| Modifier and Type | Method and Description |
|---|---|
GroupSearchStrategy |
createGroupSearchStrategy(boolean mergeGroups,
List<Directory> directories)
|
MembershipSearchStrategy |
createMembershipSearchStrategy(boolean aggregateMemberships,
List<Directory> directories,
CanonicalityChecker canonicalityChecker)
Attempts to create a
MembershipSearchStrategy for the specified isMembershipAggregationEnabled and
associated directories. |
UserSearchStrategy |
createUserSearchStrategy(boolean mergeUsers,
List<Directory> directories)
|
public DefaultSearchStrategyFactory(DirectoryManager directoryManager)
public MembershipSearchStrategy createMembershipSearchStrategy(boolean aggregateMemberships, List<Directory> directories, CanonicalityChecker canonicalityChecker)
SearchStrategyFactoryMembershipSearchStrategy for the specified isMembershipAggregationEnabled and
associated directories.
If the factory cannot create a MembershipSearchStrategy for the specified membership aggregation
or directory configuration
Optional.empty() will be returned
createMembershipSearchStrategy in interface SearchStrategyFactoryaggregateMemberships - whether membership aggregation is enableddirectories - the collection of directories to searchMembershipSearchStrategy for the application and directories or Optional.empty()public UserSearchStrategy createUserSearchStrategy(boolean mergeUsers, List<Directory> directories)
SearchStrategyFactoryUserSearchStrategy for the specified mergeUsers and
associated directories.
If the factory cannot create a UserSearchStrategy for the specified membership aggregation
or directory configuration
Optional.empty() will be returned
createUserSearchStrategy in interface SearchStrategyFactorymergeUsers - Whether users with the same name from different directories should be merged. Unmerged users
with the same name will be returned in the order defined by directories order.directories - the collection of directories to searchUserSearchStrategy for the application and directories or Optional.empty()public GroupSearchStrategy createGroupSearchStrategy(boolean mergeGroups, List<Directory> directories)
SearchStrategyFactoryGroupSearchStrategy for the specified mergeGroups and
associated directories.
If the factory cannot create a GroupSearchStrategy for the specified membership aggregation
or directory configuration
Optional.empty() will be returned
createGroupSearchStrategy in interface SearchStrategyFactorymergeGroups - Whether groups with the same name should be merged. Unmerged groups with the same name
will be returned in the order defined by directories order.directories - the collection of directories to searchGroupSearchStrategy for the application and directories or Optional.empty()Copyright © 2020 Atlassian. All rights reserved.