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.
All services is binded on port 1099
.
- 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 aCustomerService
.
getCustomerByUUID(String uuid)
- Adds a customer to the list with his
firstName
,lastName
,customerType
,username
,password
. The return value will be aCustomerService
.
add(String firstName, String lastName, CustomerType customerType, String username, String password)
- Connect the customer with this
username
andpassword
. The return value will be aUUID
.
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)
- Get customer
firstName
. The return value will be aString
.
getFirstName()
- Get customer
lastName
. The return value will be aString
.
getLastName()
- Get customer
customerType
. The return value will be aString
.
getCustomerType()
- Get customer
username
. The return value will be aString
.
getUsername()
- Get customer
password
. The return value will be aString
.
getPassword()
- Get customer
bikes
. The return value will be aList<UUID>
.
getBikes()
- Get customer
actualBikeRent
. The return value will be aUUID
.
getActualBikeRent()
- SET customer
actualBikeRent
. The return value will be avoid
.
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()