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 TypeMethodDescriptiondefault boolean
check if relation should be updated, use this to ask for confirmation from user or check other conditionsdefault Entity
getReplacementEntity
(Entity user) 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
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
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
-