Class Administrator
java.lang.Object
com.montytskyi.Userables.Implementations.Administrator
The class which represents the manager of the dormitory management systems
-
Constructor Summary
ConstructorsConstructorDescriptionAn empty constructor of a classAdministrator
(String name, String surname) A constructor with all of the parameters possible which includes name and surname -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelRentForUser
(Rentable rent) A method which provides the administrator with an ability to cancel an existing rent of an existing uservoid
editRentForUser
(Rentable rent) A method which provides the administrator with an ability to edit an existing rent of an existing usergetName()
A getter method of the class which allows to receive a name of the administratorA getter method of the class which allows to receive a surname of the specific administratorrentForUser
(Liveable place, Userable renter) A method which provides the administrator an ability to make a new rent for an existing uservoid
A setter method of the class which allows to set a name for the specific administratorvoid
setSurname
(String surname) A setter method of the class which allows to set a surname for the specific administrator
-
Constructor Details
-
Administrator
public Administrator()An empty constructor of a class -
Administrator
-
-
Method Details
-
rentForUser
A method which provides the administrator an ability to make a new rent for an existing user- Parameters:
place
- - which will be rented by a specific userrenter
- - which is a user who rents a specific place- Returns:
- Rentable, which represents a rent created by some user
-
cancelRentForUser
A method which provides the administrator with an ability to cancel an existing rent of an existing user- Parameters:
rent
- - represents a renting offer which recently was created by an user
-
editRentForUser
A method which provides the administrator with an ability to edit an existing rent of an existing user- Parameters:
rent
- - which represents an existing user's rent
-
getName
A getter method of the class which allows to receive a name of the administrator- Returns:
- name, String value which contains the name of the administrator
-
setName
A setter method of the class which allows to set a name for the specific administrator- Parameters:
name
- - a name which will be set for the administrator
-
getSurname
A getter method of the class which allows to receive a surname of the specific administrator- Returns:
- surname, the surname of the specific administrator
-
setSurname
A setter method of the class which allows to set a surname for the specific administrator- Parameters:
surname
- - which contains the surname of an administrator
-