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
-
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:OverrideContributionService
Returns the contributions ordered by module.- Specified by:
getModuleOrderedContributions
in 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:OverrideContributionService
Returns the contributions of the last module.- Specified by:
getContributionsOfLastModule
in 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:OverrideContributionService
Returns the contributions ordered by moduled and filtered by an identifier.- Specified by:
getModuleOrderedAndFilteredContributions
in 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.
-