Class AbstractInputType
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.inputtypes.AbstractInputType
- Direct Known Subclasses:
AbstractPointsInput
,FreeTextInput
,GradesInput
,PresenceInput
,TextChoiceInput
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
The simple representation of anExam
to be used for client UI.static class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
aggregateInputData
(Input input) abstract @Nullable Object
getDatabaseValue
(AbstractInputType.InboundInputDataRecord inboundInputDataRecord, Entity entity) abstract @Nullable BigDecimal
getDatabaseValue
(AbstractInputType.InboundRatingRecord inboundRatingRecord, Entity entity) abstract DataStoreRecord
getDataStoreRecord
(InputData inputData) Returns aDataStoreRecord
as simplified representation of a givenInput_data
to be used in the client UI.abstract String
abstract GradeData
getEvaluationObject
(InputData inputData) protected String
getEventsAsString
(EntityList events, DefaultDisplayService defaultDisplayService) create a string representation of a EntityList of Event entitiesabstract int
getNumNonEmptyRatings
(InputData inputData) get the number of non empty ratingsgetServerFeedback
(InputData inputData) abstract Object
getSingleRelevantRating
(InputData inputData) abstract AbstractInputType.AbstractStatistics
getStatistics
(Input input) abstract AbstractInputType.AbstractStatistics
getStatistics
(List<Input> input) getUserGradesDetailData
(InputData inputData) abstract boolean
Determine whether a InputData entity is empty, i.e.validateImportStructure
(org.apache.poi.ss.usermodel.Row headerRow, Input input) abstract String
writeDataStoreRecord
(AbstractInputType.InboundInputDataRecord inboundInputDataRecord, Entity entity) abstract void
writeDataStoreRecord
(AbstractInputType.InboundRatingRecord inboundRatingRecord, Entity entity) abstract boolean
writeRow
(ImportHelper helper, org.apache.poi.ss.usermodel.Row row, InputData inputData)
-
Constructor Details
-
AbstractInputType
public AbstractInputType()
-
-
Method Details
-
getDataStoreRecord
Returns aDataStoreRecord
as simplified representation of a givenInput_data
to be used in the client UI.- Parameters:
inputData
- theInput_data
to build the representation for- Returns:
- the simple representation of the given
Input_data
-
writeDataStoreRecord
public abstract String writeDataStoreRecord(AbstractInputType.InboundInputDataRecord inboundInputDataRecord, Entity entity) -
writeDataStoreRecord
public abstract void writeDataStoreRecord(AbstractInputType.InboundRatingRecord inboundRatingRecord, Entity entity) -
getServerFeedback
-
getDatabaseValue
@Nullable public abstract @Nullable Object getDatabaseValue(AbstractInputType.InboundInputDataRecord inboundInputDataRecord, Entity entity) -
getDatabaseValue
@Nullable public abstract @Nullable BigDecimal getDatabaseValue(AbstractInputType.InboundRatingRecord inboundRatingRecord, Entity entity) -
getDataType
- Returns:
- the datatype of the input data (e.g. double, text, etc.) as used to display in a ext grid
-
getEvaluationObject
- Returns:
- the object containing the values to be displayed in the evaluation grid after evaluation
-
aggregateInputData
-
getStatistics
-
getStatistics
-
isEmpty
Determine whether a InputData entity is empty, i.e. no inputs have been made or all relevant inputs have been deleted- Parameters:
inputData
- the InputData to analyze- Returns:
- true if the InputData is empty
-
getNumNonEmptyRatings
get the number of non empty ratings- Parameters:
inputData
- the data- Returns:
- a number
>=
0
-
getSingleRelevantRating
-
writeRow
public abstract boolean writeRow(ImportHelper helper, org.apache.poi.ss.usermodel.Row row, InputData inputData) -
getUserGradesDetailData
-
validateImportStructure
public Optional<ImporterMessage> validateImportStructure(org.apache.poi.ss.usermodel.Row headerRow, Input input) -
getEventsAsString
create a string representation of a EntityList of Event entities- Returns:
- a newline-separated string of all default displays
-