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
,
InMemoryAggregatingMembershipSearchStrategy
Constructor and Description |
---|
DefaultSearchStrategyFactory(DirectoryManager directoryManager) |
Modifier and Type | Method and Description |
---|---|
GroupSearchStrategy |
createGroupSearchStrategy(boolean mergeGroups,
List<Directory> directories,
AccessFilter filter)
|
MembershipSearchStrategy |
createMembershipSearchStrategy(boolean aggregateMemberships,
List<Directory> directories,
CanonicalityChecker canonicalityChecker,
AccessFilter filter)
Attempts to create a
MembershipSearchStrategy for the specified isMembershipAggregationEnabled and
associated directories . |
UserSearchStrategy |
createUserSearchStrategy(boolean mergeUsers,
List<Directory> directories,
AccessFilter filter)
|
public DefaultSearchStrategyFactory(DirectoryManager directoryManager)
public MembershipSearchStrategy createMembershipSearchStrategy(boolean aggregateMemberships, List<Directory> directories, CanonicalityChecker canonicalityChecker, AccessFilter filter)
SearchStrategyFactory
MembershipSearchStrategy
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 SearchStrategyFactory
aggregateMemberships
- 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, AccessFilter filter)
SearchStrategyFactory
UserSearchStrategy
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 SearchStrategyFactory
mergeUsers
- 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, AccessFilter filter)
SearchStrategyFactory
GroupSearchStrategy
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 SearchStrategyFactory
mergeGroups
- 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 © 2021 Atlassian. All rights reserved.