Class CompositeConfiguration<T extends SecurityConfiguration>

    • Field Detail

      • PARAM_RANKING

        public static final java.lang.String PARAM_RANKING
        Parameter used to define the ranking of a given configuration compared to other registered configuration in this aggregate. If the ranking parameter is missing a new configuration will be added at the end of the list.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CompositeConfiguration

        public CompositeConfiguration​(@NotNull
                                      @NotNull java.lang.String name)
      • CompositeConfiguration

        public CompositeConfiguration​(@NotNull
                                      @NotNull java.lang.String name,
                                      @NotNull
                                      @NotNull SecurityProvider securityProvider)
    • Method Detail

      • getDefaultConfig

        @Nullable
        public T getDefaultConfig()
      • setDefaultConfig

        public void setDefaultConfig​(@NotNull
                                     T defaultConfig)
      • addConfiguration

        public void addConfiguration​(@NotNull
                                     T configuration)
      • addConfiguration

        public void addConfiguration​(@NotNull
                                     T configuration,
                                     @NotNull
                                     @NotNull ConfigurationParameters params)
      • removeConfiguration

        public void removeConfiguration​(@NotNull
                                        T configuration)
      • getConfigurations

        @NotNull
        public @NotNull java.util.List<T> getConfigurations()
      • setSecurityProvider

        public void setSecurityProvider​(@NotNull
                                        @NotNull SecurityProvider securityProvider)
      • setRootProvider

        public void setRootProvider​(@NotNull
                                    @NotNull RootProvider rootProvider)
      • setTreeProvider

        public void setTreeProvider​(@NotNull
                                    @NotNull TreeProvider treeProvider)
      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Description copied from interface: SecurityConfiguration
        Returns the name of this security configuration.
        Specified by:
        getName in interface SecurityConfiguration
        Returns:
        The name of this configuration.
      • getCommitHooks

        @NotNull
        public @NotNull java.util.List<? extends CommitHook> getCommitHooks​(@NotNull
                                                                            @NotNull java.lang.String workspaceName)
        Description copied from interface: SecurityConfiguration
        Returns the list of commit hooks that need to be executed for the specified workspace name.
        Specified by:
        getCommitHooks in interface SecurityConfiguration
        Parameters:
        workspaceName - The name of the workspace.
        Returns:
        A list of commit hooks.
      • getValidators

        @NotNull
        public @NotNull java.util.List<? extends ValidatorProvider> getValidators​(@NotNull
                                                                                  @NotNull java.lang.String workspaceName,
                                                                                  @NotNull
                                                                                  @NotNull java.util.Set<java.security.Principal> principals,
                                                                                  @NotNull
                                                                                  @NotNull MoveTracker moveTracker)
        Description copied from interface: SecurityConfiguration
        Returns the list of validators that need to be executed for the specified workspace name.
        Specified by:
        getValidators in interface SecurityConfiguration
        Parameters:
        workspaceName - The name of the workspace.
        principals - The set of principals associated with the subject that is committing modifications.
        moveTracker - The move tracker associated with the commit.
        Returns:
        A list of validators.