Interface OverrideContributionService

All Known Implementing Classes:
OverrideContributionServiceImpl

public interface OverrideContributionService
This service provides functionality to order contributions by module. This enables us to make contributions overridable in dependent modules.
  • Method Details

    • getModuleOrderedContributions

      <T extends ModuleDependentContribution> List<T> getModuleOrderedContributions(List<T> contributions)
      Returns the contributions ordered by module.
      Type Parameters:
      T - A contribution implementing the interface ModuleDependentContribution.
      Parameters:
      contributions - A List of contributions.
      Returns:
      A List containing the contributions ordered by module.
    • getContributionsOfLastModule

      <T extends ModuleDependentContribution> List<T> getContributionsOfLastModule(List<T> contributions)
      Returns the contributions of the last module.
      Type Parameters:
      T - A contribution implementing the interface ModuleDependentContribution.
      Parameters:
      contributions - A List of contributions.
      Returns:
      A List containing the contributions of the last module.
    • getModuleOrderedAndFilteredContributions

      <T extends IdentifiableModuleDependentContribution> List<T> getModuleOrderedAndFilteredContributions(List<T> contributions)
      Returns the contributions ordered by moduled and filtered by an identifier.
      Type Parameters:
      T - A contribution implementing the interface IdentifiableModuleDependentContribution.
      Parameters:
      contributions - A List of contributions.
      Returns:
      A List containing the contributions ordered by module and filtered by the identifier.