Class GroupRelationshipChecker

java.lang.Object
com.atlassian.jira.bc.group.GroupRelationshipChecker

public class GroupRelationshipChecker extends Object
Verifies relationships between groups
Since:
v7.0
  • 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 is Optional.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 performed
      checkedGroup - checked group
      referenceGroup - group, against which check will be performed