Class OverrideContributionServiceImpl
java.lang.Object
ch.tocco.nice2.toolbox.impl.service.OverrideContributionServiceImpl
- All Implemented Interfaces:
OverrideContributionService
@Component
public class OverrideContributionServiceImpl
extends Object
implements OverrideContributionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ModuleDependentContribution>
List<T> getContributionsOfLastModule(List<T> contributions) Returns the contributions of the last module.<T extends IdentifiableModuleDependentContribution>
List<T> getModuleOrderedAndFilteredContributions(List<T> contributions) Returns the contributions ordered by moduled and filtered by an identifier.<T extends ModuleDependentContribution>
List<T> getModuleOrderedContributions(List<T> contributions) Returns the contributions ordered by module.
-
Constructor Details
-
OverrideContributionServiceImpl
public OverrideContributionServiceImpl()
-
-
Method Details
-
getModuleOrderedContributions
public <T extends ModuleDependentContribution> List<T> getModuleOrderedContributions(List<T> contributions) Description copied from interface:OverrideContributionServiceReturns the contributions ordered by module.- Specified by:
getModuleOrderedContributionsin interfaceOverrideContributionService- Type Parameters:
T- A contribution implementing the interfaceModuleDependentContribution.- Parameters:
contributions- A List of contributions.- Returns:
- A List containing the contributions ordered by module.
-
getContributionsOfLastModule
public <T extends ModuleDependentContribution> List<T> getContributionsOfLastModule(List<T> contributions) Description copied from interface:OverrideContributionServiceReturns the contributions of the last module.- Specified by:
getContributionsOfLastModulein interfaceOverrideContributionService- Type Parameters:
T- A contribution implementing the interfaceModuleDependentContribution.- Parameters:
contributions- A List of contributions.- Returns:
- A List containing the contributions of the last module.
-
getModuleOrderedAndFilteredContributions
public <T extends IdentifiableModuleDependentContribution> List<T> getModuleOrderedAndFilteredContributions(List<T> contributions) Description copied from interface:OverrideContributionServiceReturns the contributions ordered by moduled and filtered by an identifier.- Specified by:
getModuleOrderedAndFilteredContributionsin interfaceOverrideContributionService- Type Parameters:
T- A contribution implementing the interfaceIdentifiableModuleDependentContribution.- Parameters:
contributions- A List of contributions.- Returns:
- A List containing the contributions ordered by module and filtered by the identifier.
-