Class UserGradesActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.action.publicflows.UserGradesActionServiceImpl
- All Implemented Interfaces:
UserGradesActionService
-
Constructor Summary
ConstructorDescriptionUserGradesActionServiceImpl
(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 databoolean
isDetailVisible
(String key) checks whether the detail page of the givenInput Data
should be displayed
-
Constructor Details
-
UserGradesActionServiceImpl
public UserGradesActionServiceImpl(QueryBuilderFactory queryBuilderFactory, Context context, QualificationService qualificationService, DefaultDisplayService defaultDisplayService, TextResources textResources)
-
-
Method Details
-
isDetailVisible
Description copied from interface:UserGradesActionService
checks whether the detail page of the givenInput Data
should be displayed- Specified by:
isDetailVisible
in interfaceUserGradesActionService
- Parameters:
key
- thePrimaryKey
of a Input_dataEntity
as aString
- Returns:
- a boolean which determines the visibility
-
getDetailData
Description copied from interface:UserGradesActionService
gets data for a single Input_data this uses AbstractInputType#getUserGradesDetailData(InputData) to get the data- Specified by:
getDetailData
in 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:UserGradesActionService
gets 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:
getData
in interfaceUserGradesActionService
- Parameters:
inputData
- the Input_data to get data fromparticipant
- the User to use as the participant- Returns:
- an
Optional
containing a map with values if the Input_data has valid registrations,Optional.empty()
otherwise
-