Interface GenerateEducationalObjectiveService
- All Known Implementing Classes:
GenerateEducationalObjectiveServiceImpl
public interface GenerateEducationalObjectiveService
generates educational objective
-
Method Summary
Modifier and TypeMethodDescriptiongenerateEducationalObjectives
(int amount, Optional<Integer> start) generates multiple educational objectives by using generateSingleEducationalObjectivegenerateSingleEducationalObjective
(int number) 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
-
Method Details
-
generateSingleEducationalObjective
generates a single educational objective- Parameters:
number
- sorting will be set to number * 10 and label to number- Returns:
- created educational objective
- Throws:
InterruptedException
-
generateEducationalObjectives
List<Entity> generateEducationalObjectives(int amount, Optional<Integer> start) throws InterruptedException generates multiple educational objectives by using generateSingleEducationalObjective- Parameters:
amount
- how many to create- Returns:
- list of all created entities
- Throws:
InterruptedException
-
getHighestEducationalObjectiveSorting
gets you the current highest sorting of all connected educational objectives- Parameters:
event
- the event- Returns:
- the highest sorting, absent when there are none
-
getOrderedEducationalObjectives
orders all educational objectives by sorting and returns them in descending order- Parameters:
event
- the event- Returns:
- ordered entity list, highest sorting at the top
-