Class GenerateEducationalObjectiveServiceImpl
java.lang.Object
ch.tocco.nice2.optional.reservation.impl.GenerateEducationalObjectiveServiceImpl
- All Implemented Interfaces:
GenerateEducationalObjectiveService
@Component
public class GenerateEducationalObjectiveServiceImpl
extends Object
implements GenerateEducationalObjectiveService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateEducationalObjectives(int amount, Optional<Integer> start) generates multiple educational objectives by using generateSingleEducationalObjectivegenerateSingleEducationalObjective(int sorting) generates a single educational objectivegets you the current highest sorting of all connected educational objectivesorders all educational objectives by sorting and returns them in descending order
-
Constructor Details
-
GenerateEducationalObjectiveServiceImpl
-
-
Method Details
-
generateSingleEducationalObjective
Description copied from interface:GenerateEducationalObjectiveServicegenerates a single educational objective- Specified by:
generateSingleEducationalObjectivein interfaceGenerateEducationalObjectiveService- Parameters:
sorting- sorting will be set to number * 10 and label to number- Returns:
- created educational objective
-
generateEducationalObjectives
Description copied from interface:GenerateEducationalObjectiveServicegenerates multiple educational objectives by using generateSingleEducationalObjective- Specified by:
generateEducationalObjectivesin interfaceGenerateEducationalObjectiveService- Parameters:
amount- how many to create- Returns:
- list of all created entities
-
getHighestEducationalObjectiveSorting
Description copied from interface:GenerateEducationalObjectiveServicegets you the current highest sorting of all connected educational objectives- Specified by:
getHighestEducationalObjectiveSortingin interfaceGenerateEducationalObjectiveService- Parameters:
event- the event- Returns:
- the highest sorting, absent when there are none
-
getOrderedEducationalObjectives
Description copied from interface:GenerateEducationalObjectiveServiceorders all educational objectives by sorting and returns them in descending order- Specified by:
getOrderedEducationalObjectivesin interfaceGenerateEducationalObjectiveService- Parameters:
event- the event- Returns:
- ordered entity list, highest sorting at the top
-