Interface LecturerBookingUserUpdateContribution

All Known Implementing Classes:
LecturerBookingUserWageUpdateContribution

public interface LecturerBookingUserUpdateContribution
configures LecturerBookingUserUpdateListener to update any relation based on a change in Lecturer_booking_relUser
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    confirm(List<Entity> sources)
    check if relation should be updated, use this to ask for confirmation from user or check other conditions
     
    default Entity
    get the entity to set in the relation, default implementation simply returns user argument
  • Method Details

    • getRelation

      String getRelation()
      Returns:
      the relation to update
    • getReplacementEntity

      default Entity getReplacementEntity(Entity user)
      get the entity to set in the relation, default implementation simply returns user argument
      Parameters:
      user - the new User of the Lecturer_booking
      Returns:
      the entity to set
    • confirm

      default boolean confirm(List<Entity> sources)
      check if relation should be updated, use this to ask for confirmation from user or check other conditions
      Parameters:
      sources - the entities that will be updated
      Returns:
      true if the entities should be updated, false otherwise