Interface Userable

All Known Implementing Classes:
AdministratorAdapter, User

public interface Userable
An interface that defines common methods to manage the users which will be use the dormitory management system
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancelRent(Rentable currentRent)
    The method is responsible to cancel existing user's rent
    void
    editRent(Rentable currentRent)
    The method is responsible to edit the rent which was recently created by the user
    void
    payForRent(Rentable currentRent)
    The method is responsible to provide the user an ability to pay the rent
    rent(Liveable place)
     
  • Method Details

    • rent

      Rentable rent(Liveable place)
      Parameters:
      place - - the place which will be rented by the client
      Returns:
      Rentable object that contains the information about the rent
      See Also:
    • payForRent

      void payForRent(Rentable currentRent)
      The method is responsible to provide the user an ability to pay the rent
      Parameters:
      currentRent - - which has been already done by the user recently
    • cancelRent

      void cancelRent(Rentable currentRent)
      The method is responsible to cancel existing user's rent
      Parameters:
      currentRent - - which should be cancelled
    • editRent

      void editRent(Rentable currentRent)
      The method is responsible to edit the rent which was recently created by the user
      Parameters:
      currentRent - - which should be edited