Class UserGradesActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.action.publicflows.UserGradesActionServiceImpl
- All Implemented Interfaces:
UserGradesActionService
-
Constructor Summary
ConstructorsConstructorDescriptionUserGradesActionServiceImpl(QueryBuilderFactory queryBuilderFactory, Context context, QualificationService qualificationService, DefaultDisplayService defaultDisplayService, TextResources textResources) -
Method Summary
Modifier and TypeMethodDescriptiongets data from a Input_data and a given User data contains its key, related Events, related Input_node, whether it has a detail page, its type and its valuegetDetailData(String key) gets data for a single Input_data this uses AbstractInputType#getUserGradesDetailData(InputData) to get the databooleanisDetailVisible(String key) checks whether the detail page of the givenInput Datashould be displayed
-
Constructor Details
-
UserGradesActionServiceImpl
public UserGradesActionServiceImpl(QueryBuilderFactory queryBuilderFactory, Context context, QualificationService qualificationService, DefaultDisplayService defaultDisplayService, TextResources textResources)
-
-
Method Details
-
isDetailVisible
Description copied from interface:UserGradesActionServicechecks whether the detail page of the givenInput Datashould be displayed- Specified by:
isDetailVisiblein interfaceUserGradesActionService- Parameters:
key- thePrimaryKeyof a Input_dataEntityas aString- Returns:
- a boolean which determines the visibility
-
getDetailData
Description copied from interface:UserGradesActionServicegets data for a single Input_data this uses AbstractInputType#getUserGradesDetailData(InputData) to get the data- Specified by:
getDetailDatain interfaceUserGradesActionService- Parameters:
key- the key of a Input_data entity- Returns:
- a map of values from the Input_data
- Throws:
InterruptedException
-
getData
Description copied from interface:UserGradesActionServicegets data from a Input_data and a given User data contains its key, related Events, related Input_node, whether it has a detail page, its type and its value- Specified by:
getDatain interfaceUserGradesActionService- Parameters:
inputData- the Input_data to get data fromparticipant- the User to use as the participant- Returns:
- an
Optionalcontaining a map with values if the Input_data has valid registrations,Optional.empty()otherwise
-