Class AbstractPointsInput
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.inputtypes.AbstractInputType
ch.tocco.nice2.optional.qualification.impl.util.entities.inputtypes.AbstractPointsInput
- Direct Known Subclasses:
PointsInput
,PointsThresholdInput
input type containing logic used for
PointsInput
and PointsThresholdInput
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.inputtypes.AbstractInputType
AbstractInputType.AbstractDataStoreRecord, AbstractInputType.AbstractStatistics, AbstractInputType.ExamRecord, AbstractInputType.InboundInputDataRecord, AbstractInputType.InboundRatingRecord, AbstractInputType.RatingRecord
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregateInputData
(Input input) getAndValidateDispensed
(ImportHelper helper, org.apache.poi.ss.usermodel.Row row, String id) getAndValidateRatings
(ImportHelper helper, org.apache.poi.ss.usermodel.Row row, String id) @Nullable Object
getDatabaseValue
(AbstractInputType.InboundInputDataRecord inboundInputDataRecord, Entity entity) getDatabaseValue
(AbstractInputType.InboundRatingRecord inboundRatingRecord, Entity entity) getEvaluationObject
(InputData inputData) int
getNumNonEmptyRatings
(InputData inputData) get the number of non empty ratingsgetStatistics
(Input input) getStatistics
(List<Input> inputs) getUserData
(InputData inputData) getUserGradesDetailData
(InputData inputData) writeDataStoreRecord
(AbstractInputType.InboundInputDataRecord inboundInputDataRecord, Entity entity) void
writeDataStoreRecord
(AbstractInputType.InboundRatingRecord inboundRatingRecord, Entity entity) Methods inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.inputtypes.AbstractInputType
getDataStoreRecord, getEventsAsString, getServerFeedback, getSingleRelevantRating, isEmpty, validateImportStructure, writeRow
-
Constructor Details
-
AbstractPointsInput
public AbstractPointsInput()
-
-
Method Details
-
writeDataStoreRecord
public String writeDataStoreRecord(AbstractInputType.InboundInputDataRecord inboundInputDataRecord, Entity entity) - Specified by:
writeDataStoreRecord
in classAbstractInputType
-
writeDataStoreRecord
public void writeDataStoreRecord(AbstractInputType.InboundRatingRecord inboundRatingRecord, Entity entity) - Specified by:
writeDataStoreRecord
in classAbstractInputType
-
getDatabaseValue
@Nullable public @Nullable Object getDatabaseValue(AbstractInputType.InboundInputDataRecord inboundInputDataRecord, Entity entity) - Specified by:
getDatabaseValue
in classAbstractInputType
-
getDatabaseValue
public BigDecimal getDatabaseValue(AbstractInputType.InboundRatingRecord inboundRatingRecord, Entity entity) - Specified by:
getDatabaseValue
in classAbstractInputType
-
getDataType
- Specified by:
getDataType
in classAbstractInputType
- Returns:
- the datatype of the input data (e.g. double, text, etc.) as used to display in a ext grid
-
getEvaluationObject
- Specified by:
getEvaluationObject
in classAbstractInputType
- Returns:
- the data containing points as well as percentages
-
aggregateInputData
- Specified by:
aggregateInputData
in classAbstractInputType
-
getStatistics
- Specified by:
getStatistics
in classAbstractInputType
-
getStatistics
- Specified by:
getStatistics
in classAbstractInputType
-
getNumNonEmptyRatings
Description copied from class:AbstractInputType
get the number of non empty ratings- Specified by:
getNumNonEmptyRatings
in classAbstractInputType
- Parameters:
inputData
- the data- Returns:
- a number
>=
0
-
getUserGradesDetailData
- Specified by:
getUserGradesDetailData
in classAbstractInputType
-
getUserData
-
getAndValidateDispensed
protected Optional<String> getAndValidateDispensed(ImportHelper helper, org.apache.poi.ss.usermodel.Row row, String id) -
getAndValidateRatings
protected Optional<List<String>> getAndValidateRatings(ImportHelper helper, org.apache.poi.ss.usermodel.Row row, String id)
-