test_class.file: oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/principal/ExternalGroupPrincipalProviderTest.java
test_class.identifier: ExternalGroupPrincipalProviderTest
test_class.superclass: extends AbstractPrincipalTest
test_case.body: @Test
      public void testGetPrincipalsNonExistingUser() throws Exception {
          assertNull(getUserManager(root).getAuthorizable("nonExistingUser"));
          Set<? extends Principal> principals = principalProvider.getPrincipals("nonExistingUser");
          assertTrue(principals.isEmpty());
      }
test_case.class_method_signature: ExternalGroupPrincipalProviderTest.testGetPrincipalsNonExistingUser()
test_case.full_signature: @Test public void testGetPrincipalsNonExistingUser()
test_case.identifier: testGetPrincipalsNonExistingUser
test_case.invocations: assertNull getAuthorizable getUserManager getPrincipals assertTrue isEmpty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetPrincipalsNonExistingUser()
focal_class.declarator: log = LoggerFactory.getLogger(ExternalGroupPrincipalProvider.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(ExternalGroupPrincipalProvider.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: BINDING_PRINCIPAL_NAMES = "principalNames"
focal_class.modifier: private static final
focal_class.original_string: private static final String BINDING_PRINCIPAL_NAMES = "principalNames";
focal_class.type: String
focal_class.var_name: BINDING_PRINCIPAL_NAMES
focal_class.declarator: root
focal_class.modifier: private final
focal_class.original_string: private final Root root;
focal_class.type: Root
focal_class.var_name: root
focal_class.declarator: namePathMapper
focal_class.modifier: private final
focal_class.original_string: private final NamePathMapper namePathMapper;
focal_class.type: NamePathMapper
focal_class.var_name: namePathMapper
focal_class.declarator: userManager
focal_class.modifier: private final
focal_class.original_string: private final UserManager userManager;
focal_class.type: UserManager
focal_class.var_name: userManager
focal_class.declarator: autoMembershipPrincipals
focal_class.modifier: private final
focal_class.original_string: private final AutoMembershipPrincipals autoMembershipPrincipals;
focal_class.type: AutoMembershipPrincipals
focal_class.var_name: autoMembershipPrincipals
focal_class.file: oak-auth-external/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/principal/ExternalGroupPrincipalProvider.java
focal_class.identifier: ExternalGroupPrincipalProvider
focal_class.interfaces: implements PrincipalProvider, ExternalIdentityConstants
focal_class.class_method_signature: ExternalGroupPrincipalProvider.ExternalGroupPrincipalProvider(@NotNull Root root, @NotNull UserConfiguration uc,
                                     @NotNull NamePathMapper namePathMapper,
                                     @NotNull Map<String, String[]> autoMembershipMapping)
focal_class.full_signature:   ExternalGroupPrincipalProvider(@NotNull Root root, @NotNull UserConfiguration uc,
                                     @NotNull NamePathMapper namePathMapper,
                                     @NotNull Map<String, String[]> autoMembershipMapping)
focal_class.identifier: ExternalGroupPrincipalProvider
focal_class.parameters: (@NotNull Root root, @NotNull UserConfiguration uc,
                                     @NotNull NamePathMapper namePathMapper,
                                     @NotNull Map<String, String[]> autoMembershipMapping)
focal_class.signature:  ExternalGroupPrincipalProvider(@NotNull Root root, @NotNull UserConfiguration uc,
                                     @NotNull NamePathMapper namePathMapper,
                                     @NotNull Map<String, String[]> autoMembershipMapping)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.getPrincipal(@NotNull String principalName)
focal_class.full_signature: @Override public Principal getPrincipal(@NotNull String principalName)
focal_class.identifier: getPrincipal
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull String principalName)
focal_class.return: Principal
focal_class.signature: Principal getPrincipal(@NotNull String principalName)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.getMembershipPrincipals(@NotNull Principal principal)
focal_class.full_signature: @NotNull @Override public Set<Principal> getMembershipPrincipals(@NotNull Principal principal)
focal_class.identifier: getMembershipPrincipals
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull Principal principal)
focal_class.return: Set<Principal>
focal_class.signature: Set<Principal> getMembershipPrincipals(@NotNull Principal principal)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.getPrincipals(@NotNull String userID)
focal_class.full_signature: @NotNull @Override public Set<? extends Principal> getPrincipals(@NotNull String userID)
focal_class.identifier: getPrincipals
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull String userID)
focal_class.return: Set<? extends Principal>
focal_class.signature: Set<? extends Principal> getPrincipals(@NotNull String userID)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.findPrincipals(@Nullable String nameHint, int searchType)
focal_class.full_signature: @NotNull @Override public Iterator<? extends Principal> findPrincipals(@Nullable String nameHint, int searchType)
focal_class.identifier: findPrincipals
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@Nullable String nameHint, int searchType)
focal_class.return: Iterator<? extends Principal>
focal_class.signature: Iterator<? extends Principal> findPrincipals(@Nullable String nameHint, int searchType)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.findPrincipals(int searchType)
focal_class.full_signature: @NotNull @Override public Iterator<? extends Principal> findPrincipals(int searchType)
focal_class.identifier: findPrincipals
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (int searchType)
focal_class.return: Iterator<? extends Principal>
focal_class.signature: Iterator<? extends Principal> findPrincipals(int searchType)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.findPrincipals(@Nullable String nameHint, boolean fullText, int searchType,
              long offset, long limit)
focal_class.full_signature: @NotNull @Override public Iterator<? extends Principal> findPrincipals(@Nullable String nameHint, boolean fullText, int searchType,
              long offset, long limit)
focal_class.identifier: findPrincipals
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@Nullable String nameHint, boolean fullText, int searchType,
              long offset, long limit)
focal_class.return: Iterator<? extends Principal>
focal_class.signature: Iterator<? extends Principal> findPrincipals(@Nullable String nameHint, boolean fullText, int searchType,
              long offset, long limit)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.getIdpName(@NotNull Tree userTree)
focal_class.full_signature: @Nullable private String getIdpName(@NotNull Tree userTree)
focal_class.identifier: getIdpName
focal_class.modifiers: @Nullable private
focal_class.parameters: (@NotNull Tree userTree)
focal_class.return: String
focal_class.signature: String getIdpName(@NotNull Tree userTree)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.getGroupPrincipals(@Nullable Authorizable authorizable)
focal_class.full_signature: private Set<Principal> getGroupPrincipals(@Nullable Authorizable authorizable)
focal_class.identifier: getGroupPrincipals
focal_class.modifiers: private
focal_class.parameters: (@Nullable Authorizable authorizable)
focal_class.return: Set<Principal>
focal_class.signature: Set<Principal> getGroupPrincipals(@Nullable Authorizable authorizable)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.getGroupPrincipals(@NotNull Tree userTree)
focal_class.full_signature: private Set<Principal> getGroupPrincipals(@NotNull Tree userTree)
focal_class.identifier: getGroupPrincipals
focal_class.modifiers: private
focal_class.parameters: (@NotNull Tree userTree)
focal_class.return: Set<Principal>
focal_class.signature: Set<Principal> getGroupPrincipals(@NotNull Tree userTree)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.findPrincipals(@NotNull String nameHint, boolean exactMatch)
focal_class.full_signature: @Nullable private Result findPrincipals(@NotNull String nameHint, boolean exactMatch)
focal_class.identifier: findPrincipals
focal_class.modifiers: @Nullable private
focal_class.parameters: (@NotNull String nameHint, boolean exactMatch)
focal_class.return: Result
focal_class.signature: Result findPrincipals(@NotNull String nameHint, boolean exactMatch)
focal_class.class_method_signature: ExternalGroupPrincipalProvider.buildBinding(@NotNull String nameHint, boolean exactMatch)
focal_class.full_signature: @NotNull private static Map<String, ? extends PropertyValue> buildBinding(@NotNull String nameHint, boolean exactMatch)
focal_class.identifier: buildBinding
focal_class.modifiers: @NotNull private static
focal_class.parameters: (@NotNull String nameHint, boolean exactMatch)
focal_class.return: Map<String, ? extends PropertyValue>
focal_class.signature: Map<String, ? extends PropertyValue> buildBinding(@NotNull String nameHint, boolean exactMatch)
focal_method.body: @NotNull
      @Override
      public Set<? extends Principal> getPrincipals(@NotNull String userID) {
          try {
              return getGroupPrincipals(userManager.getAuthorizable(userID));
          } catch (RepositoryException e) {
              log.debug(e.getMessage());
              return ImmutableSet.of();
          }
      }
focal_method.class_method_signature: ExternalGroupPrincipalProvider.getPrincipals(@NotNull String userID)
focal_method.full_signature: @NotNull @Override public Set<? extends Principal> getPrincipals(@NotNull String userID)
focal_method.identifier: getPrincipals
focal_method.invocations: getGroupPrincipals getAuthorizable debug getMessage of
focal_method.modifiers: @NotNull @Override public
focal_method.parameters: (@NotNull String userID)
focal_method.return: Set<? extends Principal>
focal_method.signature: Set<? extends Principal> getPrincipals(@NotNull String userID)