Class DefaultSearchStrategyFactory
java.lang.Object
com.atlassian.crowd.manager.application.search.DefaultSearchStrategyFactory
- All Implemented Interfaces:
SearchStrategyFactory
A
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
- Since:
- 2.9
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateGroupSearchStrategy
(boolean mergeGroups, List<Directory> directories, AccessFilter filter) createMembershipSearchStrategy
(boolean aggregateMemberships, List<Directory> directories, CanonicalityChecker canonicalityChecker, AccessFilter filter) Attempts to create aMembershipSearchStrategy
for the specifiedisMembershipAggregationEnabled
and associateddirectories
.createUserSearchStrategy
(boolean mergeUsers, List<Directory> directories, AccessFilter filter)
-
Constructor Details
-
DefaultSearchStrategyFactory
-
-
Method Details
-
createMembershipSearchStrategy
public MembershipSearchStrategy createMembershipSearchStrategy(boolean aggregateMemberships, List<Directory> directories, CanonicalityChecker canonicalityChecker, AccessFilter filter) Description copied from interface:SearchStrategyFactory
Attempts to create aMembershipSearchStrategy
for the specifiedisMembershipAggregationEnabled
and associateddirectories
.If the factory cannot create a
MembershipSearchStrategy
for the specified membership aggregation or directory configurationOptional.empty()
will be returned- Specified by:
createMembershipSearchStrategy
in interfaceSearchStrategyFactory
- Parameters:
aggregateMemberships
- whether membership aggregation is enableddirectories
- the collection of directories to search- Returns:
- a
MembershipSearchStrategy
for the application and directories orOptional.empty()
-
createUserSearchStrategy
public UserSearchStrategy createUserSearchStrategy(boolean mergeUsers, List<Directory> directories, AccessFilter filter) Description copied from interface:SearchStrategyFactory
Attempts to create aUserSearchStrategy
for the specifiedmergeUsers
and associateddirectories
.If the factory cannot create a
UserSearchStrategy
for the specified membership aggregation or directory configurationOptional.empty()
will be returned- Specified by:
createUserSearchStrategy
in interfaceSearchStrategyFactory
- Parameters:
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 bydirectories
order.directories
- the collection of directories to search- Returns:
- a
UserSearchStrategy
for the application and directories orOptional.empty()
-
createGroupSearchStrategy
public GroupSearchStrategy createGroupSearchStrategy(boolean mergeGroups, List<Directory> directories, AccessFilter filter) Description copied from interface:SearchStrategyFactory
Attempts to create aGroupSearchStrategy
for the specifiedmergeGroups
and associateddirectories
.If the factory cannot create a
GroupSearchStrategy
for the specified membership aggregation or directory configurationOptional.empty()
will be returned- Specified by:
createGroupSearchStrategy
in interfaceSearchStrategyFactory
- Parameters:
mergeGroups
- Whether groups with the same name should be merged. Unmerged groups with the same name will be returned in the order defined bydirectories
order.directories
- the collection of directories to search- Returns:
- a
GroupSearchStrategy
for the application and directories orOptional.empty()
-