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
Nested Classes -
Field Summary
Fields inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractNode
context, delegate, qualificationService -
Constructor Summary
ConstructorsConstructorDescriptionInputNode(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 InputDatagetDataForUser(PrimaryKey participantKey, @Nullable org.joda.time.LocalDate date, @Nullable Input input) @Nullable InputDatagetDataForUser(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 ofInputDataLogicContributionfor 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 Integer@Nullable Entity@Nullable BigDecimal@Nullable IntegerinthashCode()booleanbooleanbooleanbooleantoString()Methods inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractNode
compareTo, getChildren, getDelegate, getKey, getLabel, getMaxPoints, 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:
getSortingin classAbstractNode
-
getParent
- Specified by:
getParentin classAbstractNode
-
getAllParents
- Specified by:
getAllParentsin 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 ofInputDataLogicContributionfor 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
-
getWeight
- Specified by:
getWeightin classAbstractNode
-
getNumRatings
-
getPointsMax
-
getInstances
- Specified by:
getInstancesin classAbstractNode
-
createInstanceEntity
public Entity createInstanceEntity(@Nullable @Nullable Entity parentEvaluation, @Nullable @Nullable org.joda.time.LocalDate date) - Specified by:
createInstanceEntityin 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:
isInternalOnlyin classAbstractNode
-
isVisibleInReport
public boolean isVisibleInReport()- Specified by:
isVisibleInReportin classAbstractNode
-
getUniquePk
- Specified by:
getUniquePkin classAbstractNode- Returns:
- a unique string, current format is "E-Key" for Evaluation_node, "R-Key" for Input_node
-
getUniqueKey
- Specified by:
getUniqueKeyin classAbstractNode- Returns:
- a unique key, format is Model-Key
-
isSummarizePoints
- Specified by:
isSummarizePointsin classAbstractNode
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin classAbstractNode
-
getInputType
-
getInputTypeEntity
-
getChoiceRating
-
isLookupOnly
public boolean isLookupOnly() -
getPointConverterTypeEntity
-
toString
-
getColumnHeader
-
getTooltip
-
equals
- Overrides:
equalsin classAbstractNode
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractNode
-