Package com.atlassian.jira.bc.group
Class GroupRelationshipChecker
java.lang.Object
com.atlassian.jira.bc.group.GroupRelationshipChecker
Verifies relationships between groups
- Since:
- v7.0
-
Constructor Summary
ConstructorsConstructorDescriptionGroupRelationshipChecker
(com.atlassian.crowd.manager.directory.DirectoryManager directoryManager) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isGroupEqualOrNested
(Optional<Long> userDirectoryId, String checkedGroup, String referenceGroup) "Not entirely" accurate group relationship check.
-
Constructor Details
-
GroupRelationshipChecker
public GroupRelationshipChecker(com.atlassian.crowd.manager.directory.DirectoryManager directoryManager)
-
-
Method Details
-
isGroupEqualOrNested
public boolean isGroupEqualOrNested(Optional<Long> userDirectoryId, String checkedGroup, String referenceGroup) "Not entirely" accurate group relationship check. When userDirectoryId isOptional.empty()
, it is not possible to check possible group nesting relationship. In such case simple comparison is performed.- Parameters:
userDirectoryId
- directory, in which lookup is performedcheckedGroup
- checked groupreferenceGroup
- group, against which check will be performed
-