test_class.declarator: ADMIN_PATH = "/home/users/admin"
test_class.modifier: private static final
test_class.original_string: private static final String ADMIN_PATH = "/home/users/admin";
test_class.type: String
test_class.var_name: ADMIN_PATH
test_class.declarator: GROUP_PATH = "/home/groups/group1"
test_class.modifier: private static final
test_class.original_string: private static final String GROUP_PATH = "/home/groups/group1";
test_class.type: String
test_class.var_name: GROUP_PATH
test_class.declarator: GROUP2_PATH = "/home/groups/group2"
test_class.modifier: private static final
test_class.original_string: private static final String GROUP2_PATH = "/home/groups/group2";
test_class.type: String
test_class.var_name: GROUP2_PATH
test_class.declarator: USER_PATH = "/home/users/user1"
test_class.modifier: private static final
test_class.original_string: private static final String USER_PATH = "/home/users/user1";
test_class.type: String
test_class.var_name: USER_PATH
test_class.declarator: THROWY_PATH = "/home/users/throwy"
test_class.modifier: private static final
test_class.original_string: private static final String THROWY_PATH = "/home/users/throwy";
test_class.type: String
test_class.var_name: THROWY_PATH
test_class.declarator: adminResource
test_class.modifier: private
test_class.original_string: private Resource adminResource;
test_class.type: Resource
test_class.var_name: adminResource
test_class.declarator: contentResource
test_class.modifier: private
test_class.original_string: private Resource contentResource;
test_class.type: Resource
test_class.var_name: contentResource
test_class.declarator: group
test_class.modifier: private
test_class.original_string: private Group group;
test_class.type: Group
test_class.var_name: group
test_class.declarator: group2
test_class.modifier: private
test_class.original_string: private Group group2;
test_class.type: Group
test_class.var_name: group2
test_class.declarator: groupResource
test_class.modifier: private
test_class.original_string: private Resource groupResource;
test_class.type: Resource
test_class.var_name: groupResource
test_class.declarator: user
test_class.modifier: private
test_class.original_string: private User user;
test_class.type: User
test_class.var_name: user
test_class.declarator: userResource
test_class.modifier: private
test_class.original_string: private Resource userResource;
test_class.type: Resource
test_class.var_name: userResource
test_class.declarator: throwy
test_class.modifier: private
test_class.original_string: private Authorizable throwy;
test_class.type: Authorizable
test_class.var_name: throwy
test_class.declarator: throwyResource
test_class.modifier: private
test_class.original_string: private Resource throwyResource;
test_class.type: Resource
test_class.var_name: throwyResource
test_class.declarator: group2Resource
test_class.modifier: private
test_class.original_string: private Resource group2Resource;
test_class.type: Resource
test_class.var_name: group2Resource
test_class.file: core/src/test/java/org/apache/sling/cms/core/internal/models/AuthorizableWrapperImplTest.java
test_class.identifier: AuthorizableWrapperImplTest
test_case.body: @Test
      public void testGetDeclaredMembers()
              throws AccessDeniedException, UnsupportedRepositoryOperationException, RepositoryException {
          AuthorizableWrapper authWrapper = new AuthorizableWrapperImpl(group2Resource);
  
          Iterator<Authorizable> members = authWrapper.getDeclaredMembers();
          assertTrue(members.hasNext());
          assertEquals(1, SlingCMSTestHelper.toStream(members).count());
  
          authWrapper = new AuthorizableWrapperImpl(throwyResource);
          assertFalse(authWrapper.getDeclaredMembers().hasNext());
  
          authWrapper = new AuthorizableWrapperImpl(adminResource);
          assertFalse(authWrapper.getDeclaredMembers().hasNext());
      }
test_case.class_method_signature: AuthorizableWrapperImplTest.testGetDeclaredMembers()
test_case.full_signature: @Test public void testGetDeclaredMembers()
test_case.identifier: testGetDeclaredMembers
test_case.invocations: getDeclaredMembers assertTrue hasNext assertEquals count toStream assertFalse hasNext getDeclaredMembers assertFalse hasNext getDeclaredMembers
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetDeclaredMembers()
focal_class.declarator: log = LoggerFactory.getLogger(AuthorizableWrapperImpl.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(AuthorizableWrapperImpl.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: authorizable
focal_class.modifier: private final
focal_class.original_string: private final Authorizable authorizable;
focal_class.type: Authorizable
focal_class.var_name: authorizable
focal_class.file: core/src/main/java/org/apache/sling/cms/core/internal/models/AuthorizableWrapperImpl.java
focal_class.identifier: AuthorizableWrapperImpl
focal_class.interfaces: implements AuthorizableWrapper
focal_class.class_method_signature: AuthorizableWrapperImpl.AuthorizableWrapperImpl(ResourceResolver resolver)
focal_class.full_signature: public  AuthorizableWrapperImpl(ResourceResolver resolver)
focal_class.identifier: AuthorizableWrapperImpl
focal_class.modifiers: public
focal_class.parameters: (ResourceResolver resolver)
focal_class.signature:  AuthorizableWrapperImpl(ResourceResolver resolver)
focal_class.class_method_signature: AuthorizableWrapperImpl.AuthorizableWrapperImpl(Resource resource)
focal_class.full_signature: public  AuthorizableWrapperImpl(Resource resource)
focal_class.identifier: AuthorizableWrapperImpl
focal_class.modifiers: public
focal_class.parameters: (Resource resource)
focal_class.signature:  AuthorizableWrapperImpl(Resource resource)
focal_class.class_method_signature: AuthorizableWrapperImpl.getAuthorizable()
focal_class.full_signature: @Override public Authorizable getAuthorizable()
focal_class.identifier: getAuthorizable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Authorizable
focal_class.signature: Authorizable getAuthorizable()
focal_class.class_method_signature: AuthorizableWrapperImpl.getDeclaredMembers()
focal_class.full_signature: @Override public Iterator<Authorizable> getDeclaredMembers()
focal_class.identifier: getDeclaredMembers
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterator<Authorizable>
focal_class.signature: Iterator<Authorizable> getDeclaredMembers()
focal_class.class_method_signature: AuthorizableWrapperImpl.getDeclaredMembership()
focal_class.full_signature: @Override public Iterator<Group> getDeclaredMembership()
focal_class.identifier: getDeclaredMembership
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterator<Group>
focal_class.signature: Iterator<Group> getDeclaredMembership()
focal_class.class_method_signature: AuthorizableWrapperImpl.getGroupNames()
focal_class.full_signature: @Override public Iterator<String> getGroupNames()
focal_class.identifier: getGroupNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterator<String>
focal_class.signature: Iterator<String> getGroupNames()
focal_class.class_method_signature: AuthorizableWrapperImpl.getId()
focal_class.full_signature: @Override public String getId()
focal_class.identifier: getId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: AuthorizableWrapperImpl.getMembers()
focal_class.full_signature: @Override public Iterator<Authorizable> getMembers()
focal_class.identifier: getMembers
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterator<Authorizable>
focal_class.signature: Iterator<Authorizable> getMembers()
focal_class.class_method_signature: AuthorizableWrapperImpl.getMembership()
focal_class.full_signature: @Override public Iterator<Group> getMembership()
focal_class.identifier: getMembership
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterator<Group>
focal_class.signature: Iterator<Group> getMembership()
focal_class.class_method_signature: AuthorizableWrapperImpl.isAdministrator()
focal_class.full_signature: @Override public boolean isAdministrator()
focal_class.identifier: isAdministrator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAdministrator()
focal_class.class_method_signature: AuthorizableWrapperImpl.isMember(String groupName)
focal_class.full_signature: @Override public boolean isMember(String groupName)
focal_class.identifier: isMember
focal_class.modifiers: @Override public
focal_class.parameters: (String groupName)
focal_class.return: boolean
focal_class.signature: boolean isMember(String groupName)
focal_method.body: @Override
      public Iterator<Authorizable> getDeclaredMembers() {
          try {
              if (authorizable.isGroup()) {
                  return ((Group) authorizable).getDeclaredMembers();
              } else {
                  List<Authorizable> empty = Collections.emptyList();
                  return empty.iterator();
              }
          } catch (RepositoryException e) {
              log.error("Failed to get declared members of authorizable: {}", authorizable, e);
              return Collections.emptyIterator();
          }
      }
focal_method.class_method_signature: AuthorizableWrapperImpl.getDeclaredMembers()
focal_method.full_signature: @Override public Iterator<Authorizable> getDeclaredMembers()
focal_method.identifier: getDeclaredMembers
focal_method.invocations: isGroup getDeclaredMembers emptyList iterator error emptyIterator
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Iterator<Authorizable>
focal_method.signature: Iterator<Authorizable> getDeclaredMembers()