Class CanonicalEntityByNameFinder
java.lang.Object
com.atlassian.crowd.manager.application.canonicality.CanonicalEntityByNameFinder
Helper class for getting canonical entity from multiple directories. "fastFail" methods re-throw
OperationFailedException
, other methods ignore it.-
Constructor Summary
ConstructorDescriptionCanonicalEntityByNameFinder
(DirectoryManager directoryManager, Iterable<Directory> directories) CanonicalEntityByNameFinder
(DirectoryManager directoryManager, Iterable<Directory> directories, AccessFilter accessFilter) -
Method Summary
Modifier and TypeMethodDescriptionfindGroupByName
(String name) findRemoteUserByName
(String name) findUserByName
(String name)
-
Constructor Details
-
CanonicalEntityByNameFinder
public CanonicalEntityByNameFinder(DirectoryManager directoryManager, Iterable<Directory> directories) -
CanonicalEntityByNameFinder
public CanonicalEntityByNameFinder(DirectoryManager directoryManager, Iterable<Directory> directories, AccessFilter accessFilter)
-
-
Method Details
-
fastFailingFindGroupByName
public Group fastFailingFindGroupByName(String name) throws GroupNotFoundException, OperationFailedException -
fastFailingFindUserByName
public User fastFailingFindUserByName(String name) throws UserNotFoundException, OperationFailedException -
fastFailingFindOptionalGroupByName
public Optional<Group> fastFailingFindOptionalGroupByName(String name) throws OperationFailedException - Throws:
OperationFailedException
-
fastFailingFindOptionalUserByName
public Optional<User> fastFailingFindOptionalUserByName(String name) throws OperationFailedException - Throws:
OperationFailedException
-
findGroupByName
- Throws:
GroupNotFoundException
-
findGroupWithAttributesByName
- Throws:
GroupNotFoundException
-
findUserByName
- Throws:
UserNotFoundException
-
findRemoteUserByName
- Throws:
UserNotFoundException
-
findUserWithAttributesByName
- Throws:
UserNotFoundException
-