test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/composite/CompositeAuthorizationConfigurationTest.java
test_class.identifier: CompositeAuthorizationConfigurationTest
test_class.superclass: extends AbstractSecurityTest
test_case.body: @Test
      public void testSingleGetAccessControlManager() {
          CompositeAuthorizationConfiguration cc = getCompositeConfiguration(createAuthorizationConfigurationImpl());
  
          AccessControlManager accessControlManager = cc.getAccessControlManager(root, NamePathMapper.DEFAULT);
          assertFalse(accessControlManager instanceof CompositeAccessControlManager);
      }
test_case.class_method_signature: CompositeAuthorizationConfigurationTest.testSingleGetAccessControlManager()
test_case.full_signature: @Test public void testSingleGetAccessControlManager()
test_case.identifier: testSingleGetAccessControlManager
test_case.invocations: getCompositeConfiguration createAuthorizationConfigurationImpl getAccessControlManager assertFalse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSingleGetAccessControlManager()
focal_class.declarator: log = LoggerFactory.getLogger(CompositeAuthorizationConfiguration.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(CompositeAuthorizationConfiguration.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: compositionType = CompositionType.AND
focal_class.modifier: private
focal_class.original_string: private CompositionType compositionType = CompositionType.AND;
focal_class.type: CompositionType
focal_class.var_name: compositionType
focal_class.declarator: aggregationFilter = AggregationFilter.DEFAULT
focal_class.modifier: private
focal_class.original_string: private AggregationFilter aggregationFilter = AggregationFilter.DEFAULT;
focal_class.type: AggregationFilter
focal_class.var_name: aggregationFilter
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/composite/CompositeAuthorizationConfiguration.java
focal_class.identifier: CompositeAuthorizationConfiguration
focal_class.interfaces: implements AuthorizationConfiguration
focal_class.class_method_signature: CompositeAuthorizationConfiguration.CompositeAuthorizationConfiguration()
focal_class.full_signature: public  CompositeAuthorizationConfiguration()
focal_class.identifier: CompositeAuthorizationConfiguration
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  CompositeAuthorizationConfiguration()
focal_class.class_method_signature: CompositeAuthorizationConfiguration.CompositeAuthorizationConfiguration(@NotNull SecurityProvider securityProvider)
focal_class.full_signature: public  CompositeAuthorizationConfiguration(@NotNull SecurityProvider securityProvider)
focal_class.identifier: CompositeAuthorizationConfiguration
focal_class.modifiers: public
focal_class.parameters: (@NotNull SecurityProvider securityProvider)
focal_class.signature:  CompositeAuthorizationConfiguration(@NotNull SecurityProvider securityProvider)
focal_class.class_method_signature: CompositeAuthorizationConfiguration.withCompositionType(@Nullable String ct)
focal_class.full_signature: public void withCompositionType(@Nullable String ct)
focal_class.identifier: withCompositionType
focal_class.modifiers: public
focal_class.parameters: (@Nullable String ct)
focal_class.return: void
focal_class.signature: void withCompositionType(@Nullable String ct)
focal_class.class_method_signature: CompositeAuthorizationConfiguration.withAggregationFilter(@NotNull AggregationFilter aggregationFilter)
focal_class.full_signature: public void withAggregationFilter(@NotNull AggregationFilter aggregationFilter)
focal_class.identifier: withAggregationFilter
focal_class.modifiers: public
focal_class.parameters: (@NotNull AggregationFilter aggregationFilter)
focal_class.return: void
focal_class.signature: void withAggregationFilter(@NotNull AggregationFilter aggregationFilter)
focal_class.class_method_signature: CompositeAuthorizationConfiguration.getAccessControlManager(@NotNull final Root root,
                                                          @NotNull final NamePathMapper namePathMapper)
focal_class.full_signature: @NotNull @Override public AccessControlManager getAccessControlManager(@NotNull final Root root,
                                                          @NotNull final NamePathMapper namePathMapper)
focal_class.identifier: getAccessControlManager
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull final Root root,
                                                          @NotNull final NamePathMapper namePathMapper)
focal_class.return: AccessControlManager
focal_class.signature: AccessControlManager getAccessControlManager(@NotNull final Root root,
                                                          @NotNull final NamePathMapper namePathMapper)
focal_class.class_method_signature: CompositeAuthorizationConfiguration.getRestrictionProvider()
focal_class.full_signature: @NotNull @Override public RestrictionProvider getRestrictionProvider()
focal_class.identifier: getRestrictionProvider
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: RestrictionProvider
focal_class.signature: RestrictionProvider getRestrictionProvider()
focal_class.class_method_signature: CompositeAuthorizationConfiguration.getPermissionProvider(@NotNull final Root root,
                                                      @NotNull final String workspaceName,
                                                      @NotNull final Set<Principal> principals)
focal_class.full_signature: @NotNull @Override public PermissionProvider getPermissionProvider(@NotNull final Root root,
                                                      @NotNull final String workspaceName,
                                                      @NotNull final Set<Principal> principals)
focal_class.identifier: getPermissionProvider
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull final Root root,
                                                      @NotNull final String workspaceName,
                                                      @NotNull final Set<Principal> principals)
focal_class.return: PermissionProvider
focal_class.signature: PermissionProvider getPermissionProvider(@NotNull final Root root,
                                                      @NotNull final String workspaceName,
                                                      @NotNull final Set<Principal> principals)
focal_class.superclass: extends CompositeConfiguration<AuthorizationConfiguration>
focal_method.body: @NotNull
      @Override
      public AccessControlManager getAccessControlManager(@NotNull final Root root,
                                                          @NotNull final NamePathMapper namePathMapper) {
          List<AuthorizationConfiguration> configurations = getConfigurations();
          switch (configurations.size()) {
              case 0: throw new IllegalStateException();
              case 1: return configurations.get(0).getAccessControlManager(root, namePathMapper);
              default:
                  List<AccessControlManager> mgrs = Lists.transform(configurations, authorizationConfiguration -> authorizationConfiguration.getAccessControlManager(root, namePathMapper));
                  return new CompositeAccessControlManager(root, namePathMapper, getSecurityProvider(), mgrs, aggregationFilter);
          }
      }
focal_method.class_method_signature: CompositeAuthorizationConfiguration.getAccessControlManager(@NotNull final Root root,
                                                          @NotNull final NamePathMapper namePathMapper)
focal_method.full_signature: @NotNull @Override public AccessControlManager getAccessControlManager(@NotNull final Root root,
                                                          @NotNull final NamePathMapper namePathMapper)
focal_method.identifier: getAccessControlManager
focal_method.invocations: getConfigurations size getAccessControlManager get transform getAccessControlManager getSecurityProvider
focal_method.modifiers: @NotNull @Override public
focal_method.parameters: (@NotNull final Root root,
                                                          @NotNull final NamePathMapper namePathMapper)
focal_method.return: AccessControlManager
focal_method.signature: AccessControlManager getAccessControlManager(@NotNull final Root root,
                                                          @NotNull final NamePathMapper namePathMapper)