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 aMembershipSearchStrategyfor the specifiedisMembershipAggregationEnabledand 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:SearchStrategyFactoryAttempts to create aMembershipSearchStrategyfor the specifiedisMembershipAggregationEnabledand associateddirectories.If the factory cannot create a
MembershipSearchStrategyfor the specified membership aggregation or directory configurationOptional.empty()will be returned- Specified by:
createMembershipSearchStrategyin interfaceSearchStrategyFactory- Parameters:
aggregateMemberships- whether membership aggregation is enableddirectories- the collection of directories to search- Returns:
- a
MembershipSearchStrategyfor the application and directories orOptional.empty()
-
createUserSearchStrategy
public UserSearchStrategy createUserSearchStrategy(boolean mergeUsers, List<Directory> directories, AccessFilter filter) Description copied from interface:SearchStrategyFactoryAttempts to create aUserSearchStrategyfor the specifiedmergeUsersand associateddirectories.If the factory cannot create a
UserSearchStrategyfor the specified membership aggregation or directory configurationOptional.empty()will be returned- Specified by:
createUserSearchStrategyin 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 bydirectoriesorder.directories- the collection of directories to search- Returns:
- a
UserSearchStrategyfor the application and directories orOptional.empty()
-
createGroupSearchStrategy
public GroupSearchStrategy createGroupSearchStrategy(boolean mergeGroups, List<Directory> directories, AccessFilter filter) Description copied from interface:SearchStrategyFactoryAttempts to create aGroupSearchStrategyfor the specifiedmergeGroupsand associateddirectories.If the factory cannot create a
GroupSearchStrategyfor the specified membership aggregation or directory configurationOptional.empty()will be returned- Specified by:
createGroupSearchStrategyin 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 bydirectoriesorder.directories- the collection of directories to search- Returns:
- a
GroupSearchStrategyfor the application and directories orOptional.empty()
-