Class EventQualificationServiceImpl
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.services.EventQualificationServiceImpl
- All Implemented Interfaces:
EventQualificationService
@Component
public class EventQualificationServiceImpl
extends Object
implements EventQualificationService
-
Constructor Summary
ConstructorDescriptionEventQualificationServiceImpl
(Context context, QueryBuilderFactory queryBuilderFactory, QualificationService qualificationService, EntityDefaultValueService entityDefaultValueService, QualificationBeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
individualEvaluation
(@Nullable Entity parentEvaluation, Entity event, Entity evaluationNodeEntity, boolean linkTeachers, org.joda.time.LocalDate date) Get or create an individual Evaluation entity.individualInput
(Entity event, Entity inputNodeEntity, @Nullable Entity parentEvaluation, boolean linkTeachers, org.joda.time.LocalDate date) Get or create an individual Input entity.void
linkTeachers
(Entity input, Entity event) void
updateInstance
(Entity instance, EntityList events, boolean recursively, boolean linkTeachers, Set<Entity> undeletableInputSet)
-
Constructor Details
-
EventQualificationServiceImpl
public EventQualificationServiceImpl(Context context, QueryBuilderFactory queryBuilderFactory, QualificationService qualificationService, EntityDefaultValueService entityDefaultValueService, QualificationBeanFactory beanFactory)
-
-
Method Details
-
individualEvaluation
public void individualEvaluation(@Nullable @Nullable Entity parentEvaluation, Entity event, Entity evaluationNodeEntity, boolean linkTeachers, org.joda.time.LocalDate date) throws EventQualificationException Description copied from interface:EventQualificationService
Get or create an individual Evaluation entity. The method ensures the uniqueness requirement of the relation Event<->
Evaluation<->
Evaluation_node.- Specified by:
individualEvaluation
in interfaceEventQualificationService
- Parameters:
parentEvaluation
- the parent Evaluation (used for recursion)event
- an event to be linked to the EvaluationevaluationNodeEntity
- the Evaluation_node entitylinkTeachers
- should linked teachers on the event become responsible for editing Input_data?date
- the date of the Input- Throws:
EventQualificationException
- - thrown when multiple events are already linked to this Evaluation_node via different Evaluation entities
-
individualInput
public Entity individualInput(Entity event, Entity inputNodeEntity, @Nullable @Nullable Entity parentEvaluation, boolean linkTeachers, org.joda.time.LocalDate date) throws EventQualificationException Description copied from interface:EventQualificationService
Get or create an individual Input entity. The method ensures the uniqueness requirement of the relation Event<->
Input<->
Input_node.- Specified by:
individualInput
in interfaceEventQualificationService
- Parameters:
event
- an Event to be linked to the EvaluationinputNodeEntity
- the Input_node entitylinkTeachers
- should linked teachers on the event become responsible for editing Input_data?date
- the date of the Input- Returns:
- Throws:
EventQualificationException
- - thrown when multiple events are already linked to this Input_node via different Input entities
-
updateInstance
public void updateInstance(Entity instance, EntityList events, boolean recursively, boolean linkTeachers, Set<Entity> undeletableInputSet) throws EventQualificationException - Specified by:
updateInstance
in interfaceEventQualificationService
- Throws:
EventQualificationException
-
linkTeachers
- Specified by:
linkTeachers
in interfaceEventQualificationService
-