test_class.declarator: NAME = "test"
test_class.modifier: private static final
test_class.original_string: private static final String NAME = "test";
test_class.type: String
test_class.var_name: NAME
test_class.file: oak-security-spi/src/test/java/org/apache/jackrabbit/oak/spi/security/CompositeConfigurationTest.java
test_class.identifier: CompositeConfigurationTest
test_class.superclass: extends AbstractCompositeConfigurationTest
test_case.body: @Test
      public void testGetWorkspaceInitializer() {
          assertTrue(compositeConfiguration.getWorkspaceInitializer() instanceof CompositeWorkspaceInitializer);
  
          addConfiguration(new SecurityConfiguration.Default());
          assertTrue(compositeConfiguration.getWorkspaceInitializer() instanceof CompositeWorkspaceInitializer);
  
          SecurityConfiguration withWorkspaceInitializer = new SecurityConfiguration.Default() {
              @NotNull
              @Override
              public WorkspaceInitializer getWorkspaceInitializer() {
                  return Mockito.mock(WorkspaceInitializer.class);
              }
          };
          addConfiguration(withWorkspaceInitializer);
  
          assertTrue(compositeConfiguration.getWorkspaceInitializer() instanceof CompositeWorkspaceInitializer);
      }
test_case.class_method_signature: CompositeConfigurationTest.testGetWorkspaceInitializer()
test_case.full_signature: @Test public void testGetWorkspaceInitializer()
test_case.identifier: testGetWorkspaceInitializer
test_case.invocations: assertTrue getWorkspaceInitializer addConfiguration assertTrue getWorkspaceInitializer mock addConfiguration assertTrue getWorkspaceInitializer
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetWorkspaceInitializer()
focal_class.declarator: PARAM_RANKING = "configurationRanking"
focal_class.modifier: public static final
focal_class.original_string: public static final String PARAM_RANKING = "configurationRanking";
focal_class.type: String
focal_class.var_name: PARAM_RANKING
focal_class.declarator: NO_RANKING = Integer.MIN_VALUE
focal_class.modifier: private static final
focal_class.original_string: private static final int NO_RANKING = Integer.MIN_VALUE;
focal_class.type: int
focal_class.var_name: NO_RANKING
focal_class.declarator: configurations = new CopyOnWriteArrayList<>()
focal_class.modifier: private final
focal_class.original_string: private final List<T> configurations = new CopyOnWriteArrayList<>();
focal_class.type: List<T>
focal_class.var_name: configurations
focal_class.declarator: rankings = new Ranking()
focal_class.modifier: private final
focal_class.original_string: private final Ranking rankings = new Ranking();
focal_class.type: Ranking
focal_class.var_name: rankings
focal_class.declarator: name
focal_class.modifier: private final
focal_class.original_string: private final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: ctx = new CompositeContext()
focal_class.modifier: private final
focal_class.original_string: private final CompositeContext ctx = new CompositeContext();
focal_class.type: CompositeContext
focal_class.var_name: ctx
focal_class.declarator: securityProvider
focal_class.modifier: private
focal_class.original_string: private SecurityProvider securityProvider;
focal_class.type: SecurityProvider
focal_class.var_name: securityProvider
focal_class.declarator: rootProvider
focal_class.modifier: private
focal_class.original_string: private RootProvider rootProvider;
focal_class.type: RootProvider
focal_class.var_name: rootProvider
focal_class.declarator: treeProvider
focal_class.modifier: private
focal_class.original_string: private TreeProvider treeProvider;
focal_class.type: TreeProvider
focal_class.var_name: treeProvider
focal_class.declarator: defaultConfig
focal_class.modifier: private
focal_class.original_string: private T defaultConfig;
focal_class.type: T
focal_class.var_name: defaultConfig
focal_class.file: oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/CompositeConfiguration.java
focal_class.identifier: CompositeConfiguration
focal_class.interfaces: implements SecurityConfiguration
focal_class.class_method_signature: CompositeConfiguration.CompositeConfiguration(@NotNull String name)
focal_class.full_signature: public  CompositeConfiguration(@NotNull String name)
focal_class.identifier: CompositeConfiguration
focal_class.modifiers: public
focal_class.parameters: (@NotNull String name)
focal_class.signature:  CompositeConfiguration(@NotNull String name)
focal_class.class_method_signature: CompositeConfiguration.CompositeConfiguration(@NotNull String name, @NotNull SecurityProvider securityProvider)
focal_class.full_signature: public  CompositeConfiguration(@NotNull String name, @NotNull SecurityProvider securityProvider)
focal_class.identifier: CompositeConfiguration
focal_class.modifiers: public
focal_class.parameters: (@NotNull String name, @NotNull SecurityProvider securityProvider)
focal_class.signature:  CompositeConfiguration(@NotNull String name, @NotNull SecurityProvider securityProvider)
focal_class.class_method_signature: CompositeConfiguration.getDefaultConfig()
focal_class.full_signature: @Nullable public T getDefaultConfig()
focal_class.identifier: getDefaultConfig
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T getDefaultConfig()
focal_class.class_method_signature: CompositeConfiguration.setDefaultConfig(@NotNull T defaultConfig)
focal_class.full_signature: public void setDefaultConfig(@NotNull T defaultConfig)
focal_class.identifier: setDefaultConfig
focal_class.modifiers: public
focal_class.parameters: (@NotNull T defaultConfig)
focal_class.return: void
focal_class.signature: void setDefaultConfig(@NotNull T defaultConfig)
focal_class.class_method_signature: CompositeConfiguration.addConfiguration(@NotNull T configuration)
focal_class.full_signature: public void addConfiguration(@NotNull T configuration)
focal_class.identifier: addConfiguration
focal_class.modifiers: public
focal_class.parameters: (@NotNull T configuration)
focal_class.return: void
focal_class.signature: void addConfiguration(@NotNull T configuration)
focal_class.class_method_signature: CompositeConfiguration.addConfiguration(@NotNull T configuration, @NotNull ConfigurationParameters params)
focal_class.full_signature: public void addConfiguration(@NotNull T configuration, @NotNull ConfigurationParameters params)
focal_class.identifier: addConfiguration
focal_class.modifiers: public
focal_class.parameters: (@NotNull T configuration, @NotNull ConfigurationParameters params)
focal_class.return: void
focal_class.signature: void addConfiguration(@NotNull T configuration, @NotNull ConfigurationParameters params)
focal_class.class_method_signature: CompositeConfiguration.removeConfiguration(@NotNull T configuration)
focal_class.full_signature: public void removeConfiguration(@NotNull T configuration)
focal_class.identifier: removeConfiguration
focal_class.modifiers: public
focal_class.parameters: (@NotNull T configuration)
focal_class.return: void
focal_class.signature: void removeConfiguration(@NotNull T configuration)
focal_class.class_method_signature: CompositeConfiguration.getConfigurations()
focal_class.full_signature: @NotNull public List<T> getConfigurations()
focal_class.identifier: getConfigurations
focal_class.modifiers: @NotNull public
focal_class.parameters: ()
focal_class.return: List<T>
focal_class.signature: List<T> getConfigurations()
focal_class.class_method_signature: CompositeConfiguration.setSecurityProvider(@NotNull SecurityProvider securityProvider)
focal_class.full_signature: public void setSecurityProvider(@NotNull SecurityProvider securityProvider)
focal_class.identifier: setSecurityProvider
focal_class.modifiers: public
focal_class.parameters: (@NotNull SecurityProvider securityProvider)
focal_class.return: void
focal_class.signature: void setSecurityProvider(@NotNull SecurityProvider securityProvider)
focal_class.class_method_signature: CompositeConfiguration.getSecurityProvider()
focal_class.full_signature: @NotNull protected SecurityProvider getSecurityProvider()
focal_class.identifier: getSecurityProvider
focal_class.modifiers: @NotNull protected
focal_class.parameters: ()
focal_class.return: SecurityProvider
focal_class.signature: SecurityProvider getSecurityProvider()
focal_class.class_method_signature: CompositeConfiguration.setRootProvider(@NotNull RootProvider rootProvider)
focal_class.full_signature: public void setRootProvider(@NotNull RootProvider rootProvider)
focal_class.identifier: setRootProvider
focal_class.modifiers: public
focal_class.parameters: (@NotNull RootProvider rootProvider)
focal_class.return: void
focal_class.signature: void setRootProvider(@NotNull RootProvider rootProvider)
focal_class.class_method_signature: CompositeConfiguration.getRootProvider()
focal_class.full_signature: @NotNull protected RootProvider getRootProvider()
focal_class.identifier: getRootProvider
focal_class.modifiers: @NotNull protected
focal_class.parameters: ()
focal_class.return: RootProvider
focal_class.signature: RootProvider getRootProvider()
focal_class.class_method_signature: CompositeConfiguration.setTreeProvider(@NotNull TreeProvider treeProvider)
focal_class.full_signature: public void setTreeProvider(@NotNull TreeProvider treeProvider)
focal_class.identifier: setTreeProvider
focal_class.modifiers: public
focal_class.parameters: (@NotNull TreeProvider treeProvider)
focal_class.return: void
focal_class.signature: void setTreeProvider(@NotNull TreeProvider treeProvider)
focal_class.class_method_signature: CompositeConfiguration.getTreeProvider()
focal_class.full_signature: @NotNull protected TreeProvider getTreeProvider()
focal_class.identifier: getTreeProvider
focal_class.modifiers: @NotNull protected
focal_class.parameters: ()
focal_class.return: TreeProvider
focal_class.signature: TreeProvider getTreeProvider()
focal_class.class_method_signature: CompositeConfiguration.getName()
focal_class.full_signature: @NotNull @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: CompositeConfiguration.getParameters()
focal_class.full_signature: @NotNull @Override public ConfigurationParameters getParameters()
focal_class.identifier: getParameters
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: ConfigurationParameters
focal_class.signature: ConfigurationParameters getParameters()
focal_class.class_method_signature: CompositeConfiguration.getWorkspaceInitializer()
focal_class.full_signature: @NotNull @Override public WorkspaceInitializer getWorkspaceInitializer()
focal_class.identifier: getWorkspaceInitializer
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: WorkspaceInitializer
focal_class.signature: WorkspaceInitializer getWorkspaceInitializer()
focal_class.class_method_signature: CompositeConfiguration.getRepositoryInitializer()
focal_class.full_signature: @NotNull @Override public RepositoryInitializer getRepositoryInitializer()
focal_class.identifier: getRepositoryInitializer
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: RepositoryInitializer
focal_class.signature: RepositoryInitializer getRepositoryInitializer()
focal_class.class_method_signature: CompositeConfiguration.getCommitHooks(@NotNull final String workspaceName)
focal_class.full_signature: @NotNull @Override public List<? extends CommitHook> getCommitHooks(@NotNull final String workspaceName)
focal_class.identifier: getCommitHooks
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull final String workspaceName)
focal_class.return: List<? extends CommitHook>
focal_class.signature: List<? extends CommitHook> getCommitHooks(@NotNull final String workspaceName)
focal_class.class_method_signature: CompositeConfiguration.getValidators(@NotNull final String workspaceName, @NotNull final Set<Principal> principals, @NotNull final MoveTracker moveTracker)
focal_class.full_signature: @NotNull @Override public List<? extends ValidatorProvider> getValidators(@NotNull final String workspaceName, @NotNull final Set<Principal> principals, @NotNull final MoveTracker moveTracker)
focal_class.identifier: getValidators
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull final String workspaceName, @NotNull final Set<Principal> principals, @NotNull final MoveTracker moveTracker)
focal_class.return: List<? extends ValidatorProvider>
focal_class.signature: List<? extends ValidatorProvider> getValidators(@NotNull final String workspaceName, @NotNull final Set<Principal> principals, @NotNull final MoveTracker moveTracker)
focal_class.class_method_signature: CompositeConfiguration.getConflictHandlers()
focal_class.full_signature: @NotNull @Override public List<ThreeWayConflictHandler> getConflictHandlers()
focal_class.identifier: getConflictHandlers
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: List<ThreeWayConflictHandler>
focal_class.signature: List<ThreeWayConflictHandler> getConflictHandlers()
focal_class.class_method_signature: CompositeConfiguration.getProtectedItemImporters()
focal_class.full_signature: @NotNull @Override public List<ProtectedItemImporter> getProtectedItemImporters()
focal_class.identifier: getProtectedItemImporters
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: List<ProtectedItemImporter>
focal_class.signature: List<ProtectedItemImporter> getProtectedItemImporters()
focal_class.class_method_signature: CompositeConfiguration.getContext()
focal_class.full_signature: @NotNull @Override public Context getContext()
focal_class.identifier: getContext
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: Context
focal_class.signature: Context getContext()
focal_method.body: @NotNull
      @Override
      public WorkspaceInitializer getWorkspaceInitializer() {
          return new CompositeWorkspaceInitializer(Lists.transform(getConfigurations(), new Function<T, WorkspaceInitializer>() {
              @Override
              public WorkspaceInitializer apply(T securityConfiguration) {
                  return securityConfiguration.getWorkspaceInitializer();
              }
          }));
      }
focal_method.class_method_signature: CompositeConfiguration.getWorkspaceInitializer()
focal_method.full_signature: @NotNull @Override public WorkspaceInitializer getWorkspaceInitializer()
focal_method.identifier: getWorkspaceInitializer
focal_method.invocations: transform getConfigurations getWorkspaceInitializer
focal_method.modifiers: @NotNull @Override public
focal_method.parameters: ()
focal_method.return: WorkspaceInitializer
focal_method.signature: WorkspaceInitializer getWorkspaceInitializer()