Class DefaultInputDataLogicContribution
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.services.DefaultInputDataLogicContribution
- All Implemented Interfaces:
InputDataLogicContribution
,NamedInputDataLogicContribution
@Component
public class DefaultInputDataLogicContribution
extends Object
implements NamedInputDataLogicContribution
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.qualification.api.contributions.InputDataLogicContribution
InputDataLogicContribution.ContextData
-
Constructor Summary
ConstructorDescriptionDefaultInputDataLogicContribution
(QueryBuilderFactory queryBuilderFactory, QualificationBeanFactory qualificationBeanFactory) -
Method Summary
Modifier and TypeMethodDescriptiondataLoader
(Entity inputNode, List<PrimaryKey> participantKeys, InputDataLogicContribution.ContextData contextData) dataPredicate
(Entity inputNode, List<PrimaryKey> participantKeys, InputDataLogicContribution.ContextData contextData) getName()
boolean
isApplicable
(Entity inputNode, List<PrimaryKey> participantKeys, InputDataLogicContribution.ContextData contextData)
-
Constructor Details
-
DefaultInputDataLogicContribution
public DefaultInputDataLogicContribution(@Lazy QueryBuilderFactory queryBuilderFactory, @Lazy QualificationBeanFactory qualificationBeanFactory)
-
-
Method Details
-
isApplicable
public boolean isApplicable(Entity inputNode, List<PrimaryKey> participantKeys, InputDataLogicContribution.ContextData contextData) - Specified by:
isApplicable
in interfaceInputDataLogicContribution
- Specified by:
isApplicable
in interfaceNamedInputDataLogicContribution
-
getName
- Specified by:
getName
in interfaceNamedInputDataLogicContribution
-
dataLoader
public Supplier<Stream<Entity>> dataLoader(Entity inputNode, List<PrimaryKey> participantKeys, InputDataLogicContribution.ContextData contextData) - Specified by:
dataLoader
in interfaceInputDataLogicContribution
-
dataPredicate
public Predicate<Entity> dataPredicate(Entity inputNode, List<PrimaryKey> participantKeys, InputDataLogicContribution.ContextData contextData) - Specified by:
dataPredicate
in interfaceInputDataLogicContribution
-