Skip to content

Latest commit

 

History

History
97 lines (73 loc) · 2.2 KB

README.md

File metadata and controls

97 lines (73 loc) · 2.2 KB

RMI Bike Services

Description

This service based on the middleware Java RMI allows the management of users of services dependent on it.

All accessible methods are defined in the Documentation API section.

API Documentation

All services is binded on port 1099.

/CustomerListService

CustomerList

  • Get all customers with their uuid. The return value will be a HashMap<UUID, CustomerService>.
    getAll()
  • Get the customer with uuid. The return value will be a CustomerService.
    getCustomerByUUID(String uuid)
  • Adds a customer to the list with his firstName, lastName, customerType, username, password. The return value will be a CustomerService.
    add(String firstName, String lastName, CustomerType customerType, String username, String password)
  • Connect the customer with this username and password. The return value will be a UUID.
    login(String username, String password)
  • Informs us if the connexion token exists. The return value will be a boolean.
    isLogged(UUID token)
  • Disconnect the customer with this connexion token. The return value will be a UUID.
    logOut(UUID token)

Customer

  • Get customer firstName. The return value will be a String.
    getFirstName()
  • Get customer lastName. The return value will be a String.
    getLastName()
  • Get customer customerType. The return value will be a String.
    getCustomerType()
  • Get customer username. The return value will be a String.
    getUsername()
  • Get customer password. The return value will be a String.
    getPassword()
  • Get customer bikes. The return value will be a List<UUID>.
    getBikes()
  • Get customer actualBikeRent. The return value will be a UUID.
    getActualBikeRent()
  • SET customer actualBikeRent. The return value will be a void.
    setActualBikeRent()
  • Informs if the customer can rent. The return value will be a boolean.
    canRent()
  • Informs if the customer can propose a bike. The return value will be a boolean.
    canProposeBike()