Interface ResidenceServiceable
- All Known Implementing Classes:
Dormitory
public interface ResidenceServiceable
The interface which represents an instution which can be user for the renting dormitories or accommodations
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdministrator
(Administrator admin) The method that allows to add an administrator for the specific residencevoid
The method which provides the ability to add an existing or recently created place which is able to be rented to the specific residencevoid
The method which allows to add the created rent to the specific residencevoid
removeAdministrator
(Administrator admin) The method that allows to remove an existing the administrator from the specific residencevoid
removePlace
(Liveable place) The method that allows to remove the place from an specific residencevoid
removeRent
(Rentable rent) The method which provides the ability to remove the rent from the specific residence
-
Method Details
-
addRent
The method which allows to add the created rent to the specific residence- Parameters:
rent
- - a renting offer created by the specific client
-
removeRent
The method which provides the ability to remove the rent from the specific residence- Parameters:
rent
- - a renting offer that should be removed from the dormitory
-
addPlace
The method which provides the ability to add an existing or recently created place which is able to be rented to the specific residence- Parameters:
place
- - the place that will be added to an specific residence
-
removePlace
The method that allows to remove the place from an specific residence- Parameters:
place
- - the place which is about to be removed from the specific residence
-
addAdministrator
The method that allows to add an administrator for the specific residence- Parameters:
admin
- - the administrator who will be in charge of the specific residence
-
removeAdministrator
The method that allows to remove an existing the administrator from the specific residence- Parameters:
admin
- - the administrator that should be removed from the specific residence
-