test_class.declarator: userManager
test_class.modifier: private
test_class.original_string: private UserManager userManager;
test_class.type: UserManager
test_class.var_name: userManager
test_class.declarator: testUser
test_class.modifier: private
test_class.original_string: private User testUser;
test_class.type: User
test_class.var_name: testUser
test_class.declarator: inheritedMember
test_class.modifier: private
test_class.original_string: private User inheritedMember;
test_class.type: User
test_class.var_name: inheritedMember
test_class.declarator: testMember
test_class.modifier: private
test_class.original_string: private Group testMember;
test_class.type: Group
test_class.var_name: testMember
test_class.declarator: testGroup
test_class.modifier: private
test_class.original_string: private Group testGroup;
test_class.type: Group
test_class.var_name: testGroup
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/DeclaredMembershipPredicateTest.java
test_class.identifier: DeclaredMembershipPredicateTest
test_class.superclass: extends AbstractSecurityTest
test_case.body: @Test
      public void testUserId() throws Exception {
          Predicate<Authorizable> predicate = getDeclaredMembershipPredicate(testUser.getID());
          assertFalse(predicate.apply(testUser));
          assertFalse(predicate.apply(testGroup));
          assertFalse(predicate.apply(inheritedMember));
          assertFalse(predicate.apply(null));
      }
test_case.class_method_signature: DeclaredMembershipPredicateTest.testUserId()
test_case.full_signature: @Test public void testUserId()
test_case.identifier: testUserId
test_case.invocations: getDeclaredMembershipPredicate getID assertFalse apply assertFalse apply assertFalse apply assertFalse apply
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUserId()
focal_class.declarator: log = LoggerFactory.getLogger(DeclaredMembershipPredicate.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(DeclaredMembershipPredicate.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: membershipProvider
focal_class.modifier: private final
focal_class.original_string: private final MembershipProvider membershipProvider;
focal_class.type: MembershipProvider
focal_class.var_name: membershipProvider
focal_class.declarator: contentIdIterator
focal_class.modifier: private final
focal_class.original_string: private final Iterator<String> contentIdIterator;
focal_class.type: Iterator<String>
focal_class.var_name: contentIdIterator
focal_class.declarator: declaredMemberContentIds = new HashSet<>()
focal_class.modifier: private final
focal_class.original_string: private final Set<String> declaredMemberContentIds = new HashSet<>();
focal_class.type: Set<String>
focal_class.var_name: declaredMemberContentIds
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/DeclaredMembershipPredicate.java
focal_class.identifier: DeclaredMembershipPredicate
focal_class.interfaces: implements Predicate<Authorizable>
focal_class.class_method_signature: DeclaredMembershipPredicate.DeclaredMembershipPredicate(UserManagerImpl userManager, String groupId)
focal_class.full_signature: public  DeclaredMembershipPredicate(UserManagerImpl userManager, String groupId)
focal_class.identifier: DeclaredMembershipPredicate
focal_class.modifiers: public
focal_class.parameters: (UserManagerImpl userManager, String groupId)
focal_class.signature:  DeclaredMembershipPredicate(UserManagerImpl userManager, String groupId)
focal_class.class_method_signature: DeclaredMembershipPredicate.apply(@Nullable Authorizable authorizable)
focal_class.full_signature: @Override public boolean apply(@Nullable Authorizable authorizable)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable Authorizable authorizable)
focal_class.return: boolean
focal_class.signature: boolean apply(@Nullable Authorizable authorizable)
focal_class.class_method_signature: DeclaredMembershipPredicate.saveGetContentId(@Nullable Authorizable authorizable)
focal_class.full_signature: @Nullable private String saveGetContentId(@Nullable Authorizable authorizable)
focal_class.identifier: saveGetContentId
focal_class.modifiers: @Nullable private
focal_class.parameters: (@Nullable Authorizable authorizable)
focal_class.return: String
focal_class.signature: String saveGetContentId(@Nullable Authorizable authorizable)
focal_method.body: @Override
      public boolean apply(@Nullable Authorizable authorizable) {
          String id = saveGetContentId(authorizable);
          if (id != null) {
              if (declaredMemberContentIds.contains(id)) {
                  return true;
              } else {
                  // not contained in ids that have already been processed => look
                  // for occurrence in the remaining iterator entries.
                  while (contentIdIterator.hasNext()) {
                      String memberContentId = contentIdIterator.next();
                      declaredMemberContentIds.add(memberContentId);
                      if (memberContentId.equals(id)) {
                          return true;
                      }
                  }
              }
          }
          return false;
      }
focal_method.class_method_signature: DeclaredMembershipPredicate.apply(@Nullable Authorizable authorizable)
focal_method.full_signature: @Override public boolean apply(@Nullable Authorizable authorizable)
focal_method.identifier: apply
focal_method.invocations: saveGetContentId contains hasNext next add equals
focal_method.modifiers: @Override public
focal_method.parameters: (@Nullable Authorizable authorizable)
focal_method.return: boolean
focal_method.signature: boolean apply(@Nullable Authorizable authorizable)