Interface GenerateEducationalObjectiveService

All Known Implementing Classes:
GenerateEducationalObjectiveServiceImpl

public interface GenerateEducationalObjectiveService
generates educational objective
  • Method Details

    • generateSingleEducationalObjective

      Entity generateSingleEducationalObjective(int number) throws InterruptedException
      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

      Optional<Integer> getHighestEducationalObjectiveSorting(Entity event)
      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

      EntityList getOrderedEducationalObjectives(Entity event)
      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