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 testEmptyGetRestrictionProvider() {
          assertSame(RestrictionProvider.EMPTY, getCompositeConfiguration().getRestrictionProvider());
      }
test_case.class_method_signature: CompositeAuthorizationConfigurationTest.testEmptyGetRestrictionProvider()
test_case.full_signature: @Test public void testEmptyGetRestrictionProvider()
test_case.identifier: testEmptyGetRestrictionProvider
test_case.invocations: assertSame getRestrictionProvider getCompositeConfiguration
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEmptyGetRestrictionProvider()
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 RestrictionProvider getRestrictionProvider() {
          List<AuthorizationConfiguration> configurations = getConfigurations();
          switch (configurations.size()) {
              case 0: return RestrictionProvider.EMPTY;
              case 1: return configurations.get(0).getRestrictionProvider();
              default:
                  Set<RestrictionProvider> rps = new LinkedHashSet<>(configurations.size());
                  for (AuthorizationConfiguration c : configurations) {
                      RestrictionProvider rp = c.getRestrictionProvider();
                      if (RestrictionProvider.EMPTY != rp) {
                          rps.add(rp);
                      }
                  }
                  return CompositeRestrictionProvider.newInstance(rps);
          }
      }
focal_method.class_method_signature: CompositeAuthorizationConfiguration.getRestrictionProvider()
focal_method.full_signature: @NotNull @Override public RestrictionProvider getRestrictionProvider()
focal_method.identifier: getRestrictionProvider
focal_method.invocations: getConfigurations size getRestrictionProvider get size getRestrictionProvider add newInstance
focal_method.modifiers: @NotNull @Override public
focal_method.parameters: ()
focal_method.return: RestrictionProvider
focal_method.signature: RestrictionProvider getRestrictionProvider()