Class InputNode
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractNode
ch.tocco.nice2.optional.qualification.impl.util.entities.InputNode
- All Implemented Interfaces:
Comparable<AbstractNode>
-
Nested Class Summary
-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractNode
context, delegate, qualificationService
-
Constructor Summary
ConstructorDescriptionInputNode
(Entity delegate, QualificationService qualificationService, Context context) InputNode
(Entity delegate, @Nullable EvaluationNode parentEvaluationNode, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptioncreateInstanceEntity
(@Nullable Entity parentEvaluation, @Nullable org.joda.time.LocalDate date) boolean
@Nullable InputData
getDataForUser
(PrimaryKey participantKey, @Nullable org.joda.time.LocalDate date, @Nullable Input input) @Nullable InputData
getDataForUser
(Entity participant, @Nullable org.joda.time.LocalDate date, @Nullable Input input) getDataForUsers
(List<PrimaryKey> participantKeys, @Nullable org.joda.time.LocalDate date, @Nullable Input input) Get the relevant InputData for some given participants for this InputNode See implementations ofInputDataLogicContribution
for different data gathering strategies The default implementations loads Input_data by filtering by Input.date in the past and picking the newest, filled Input_datagetInstances
(EntityList events) Return all Input entities of the current node that are linked to one of the passed events@Nullable Entity
@Nullable Integer
int
hashCode()
boolean
boolean
boolean
boolean
toString()
Methods inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractNode
compareTo, getChildren, getDelegate, getKey, getLabel, getMaxPoints, getNode, getPk, getPromotionRuleEntities, getPromotionRules, getRounding, getRoundingPercentage, getRoundingPoints, getShort, isActive
-
Constructor Details
-
InputNode
public InputNode(Entity delegate, @Nullable @Nullable EvaluationNode parentEvaluationNode, QualificationService qualificationService, Context context) -
InputNode
-
-
Method Details
-
getSorting
- Specified by:
getSorting
in classAbstractNode
-
getParent
- Specified by:
getParent
in classAbstractNode
-
getAllParents
- Specified by:
getAllParents
in classAbstractNode
- Returns:
- all existing parents (Input_nodes can have multiple parents)
-
getDataForUser
@Nullable public @Nullable InputData getDataForUser(Entity participant, @Nullable @Nullable org.joda.time.LocalDate date, @Nullable @Nullable Input input) - See Also:
-
getDataForUser
@Nullable public @Nullable InputData getDataForUser(PrimaryKey participantKey, @Nullable @Nullable org.joda.time.LocalDate date, @Nullable @Nullable Input input) - See Also:
-
getDataForUsers
public List<InputData> getDataForUsers(List<PrimaryKey> participantKeys, @Nullable @Nullable org.joda.time.LocalDate date, @Nullable @Nullable Input input) Get the relevant InputData for some given participants for this InputNode See implementations ofInputDataLogicContribution
for different data gathering strategies The default implementations loads Input_data by filtering by Input.date in the past and picking the newest, filled Input_data- Parameters:
participantKeys
- the keys of the User entitiesdate
- the latest date to load Input_data forinput
- the input for which data is being loaded- Returns:
- InputData for the specified participants
-
getRootEvaluationNode
- Specified by:
getRootEvaluationNode
in classAbstractNode
-
getWeight
- Specified by:
getWeight
in classAbstractNode
-
getNumRatings
-
getPointsMax
-
getInstances
- Specified by:
getInstances
in classAbstractNode
-
createInstanceEntity
public Entity createInstanceEntity(@Nullable @Nullable Entity parentEvaluation, @Nullable @Nullable org.joda.time.LocalDate date) - Specified by:
createInstanceEntity
in classAbstractNode
-
getInstances
Return all Input entities of the current node that are linked to one of the passed events- Parameters:
events
- events to filter for- Returns:
- Collection of Inputs
-
isInternalOnly
public boolean isInternalOnly()- Specified by:
isInternalOnly
in classAbstractNode
-
isVisibleInReport
public boolean isVisibleInReport()- Specified by:
isVisibleInReport
in classAbstractNode
-
getUniquePk
- Specified by:
getUniquePk
in classAbstractNode
- Returns:
- a unique string, current format is "E-Key" for Evaluation_node, "R-Key" for Input_node
-
getUniqueKey
- Specified by:
getUniqueKey
in classAbstractNode
- Returns:
- a unique key, format is Model-Key
-
isSummarizePoints
- Specified by:
isSummarizePoints
in classAbstractNode
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatory
in classAbstractNode
-
getInputType
-
getInputTypeEntity
-
getChoiceRating
-
isLookupOnly
public boolean isLookupOnly() -
getPointConverterTypeEntity
-
toString
-
getColumnHeader
-
getTooltip
-
equals
- Overrides:
equals
in classAbstractNode
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractNode
-