package at.ac.tuwien.sepm.assignment.groupphase.missioncontrol.dao; import at.ac.tuwien.sepm.assignment.groupphase.exception.ElementNotFoundException; import at.ac.tuwien.sepm.assignment.groupphase.exception.PersistenceException; import at.ac.tuwien.sepm.assignment.groupphase.missioncontrol.dto.Registration; import java.util.Set; public interface RegistrationDAO { /** * Persist the given registration. * * @param vehicleId the id of the target vehicle * @param registrations that should be stored * @return a list of the ids that were assigned * @throws PersistenceException if the registration could not be persisted */ Set add(long vehicleId, Set registrations) throws PersistenceException; /** * Make registration with the given id inactive. * * @param id of the registration that should be made inactive * @throws ElementNotFoundException if no registration with the given id exists * @throws PersistenceException if the registration could not be made inactive */ void remove(long id) throws ElementNotFoundException, PersistenceException; }