Interface ClassroomIntrusionHandler

All Known Implementing Classes:
ForumClassroomIntrusionHandler, LmsClassroomIntrusionHandler, SurveyClassroomIntrusionHandler

public interface ClassroomIntrusionHandler
defines how a a given entity is handled when being connected to a Classroom entity
  • Method Summary

    Modifier and Type
    Method
    Description
    returns the relation for which this handler is registrered
    handleCreate(@Nullable org.joda.time.LocalDate from, @Nullable org.joda.time.LocalDate to)
    returns a task which is then executed for a classroom will usually create a intrusion entity of some kind for the User entities on a Classroom note: from and to can be null when calling this method, but will never be null when the task is actually executed
    returns a task which is then executed for a classroom will usually delete all intrusions that were created for a classroom
  • Method Details

    • getRelation

      String getRelation()
      returns the relation for which this handler is registrered
    • handleCreate

      PersistTask<Entity,Entity> handleCreate(@Nullable @Nullable org.joda.time.LocalDate from, @Nullable @Nullable org.joda.time.LocalDate to)
      returns a task which is then executed for a classroom will usually create a intrusion entity of some kind for the User entities on a Classroom note: from and to can be null when calling this method, but will never be null when the task is actually executed
      Parameters:
      from - the start of the intrusion
      to - the end of the intrusion
      Returns:
      a task with the classroom as the argument and the return value
    • handleDelete

      PersistTask<Entity,Entity> handleDelete()
      returns a task which is then executed for a classroom will usually delete all intrusions that were created for a classroom
      Returns:
      a task with the classroom as the argument and the return value