This service based on the middleware Java RMI allows users to provide or reserve bicycles.
This service depends on another service which is RMI Customers.
All accessible methods are defined in the Documentation API section.
All services is binded on port 1099
.
- Get all bikes with their uuid. The return value will be a
HashMap<UUID, BikeService>
.
getAll()
- Get the customer with
uuid
. The return value will be aBikeService
.
getBikeByUUID(String uuid)
- Adds a bike to the list with his
label
,description,
ownerUUID,
bikeState. The return value will be a
Map<UUID, BikeService>`.
add(String label, String description, UUID ownerUUID, BikeState bikeState)
- Get bike
label
. The return value will be aString
.
getLabel()
- Get bike
description
. The return value will be aString
.
getDescription()
- Get bike
image
. The return value will be aImage
.
getImage()
- Set bike
image
. The return value will be avoid
.
setImage()
- Get bike
ownerUUID
. The return value will be aUUID
.
getOwnerUUID()
- Get bike
bikeState
. The return value will be aBikeState
.
getBikeState()
- Get bike
feedbackHistory
. The return value will be aList<FeedbackService>
.
getFeedbackHistory()
- Get bike
rentQueue
. The return value will be aList<RentService>
.
getRentQueue()
- Get bike averageNote. The return value will be a
float
.
getAverageNote()
- Informs if the bike can be rent. The return value will be a
boolean
.
canBeRent()
- Informs if the bike can be sale. The return value will be a
boolean
.
canBeSale()
- Get all rents with their uuid. The return value will be a
HashMap<UUID, RentService>
.
getAll()
- Get the rent with
uuid
. The return value will be aRentService
.
getRentByUUID(String uuid)
- Get the customer rent. The return value will be a
Map<UUID, RentService>
.
getRentByCustomerUUID(String customerUUID)
- Adds a rent to the list with his
start
,end
,customerClientUUID
,bikeUUID
. The return value will be aMap<UUID, RentService>
.
add(Date start, Date end, UUID customerClientUUID, UUID bikeUUID)
- Retrieves the rentals of a customer who has no feedback. The return value will be a
Map<UUID, RentService>
.
getRentsWithNoFeedbackByCustomer(String uuid)
- Get rent
start
. The return value will be aDate
.
getStart()
- Get rent
end
. The return value will be aDate
.
getEnd()
- Get rent
customerClientUUID
. The return value will be aUUID
.
getCustomerClientUUID()
- Get rent
bikeUUID
. The return value will be aUUID
.
getBikeUUID()
- Get all feedbacks with their uuid. The return value will be a
HashMap<UUID, FeedbackService>
.
getAll()
- Get the feedback with
uuid
. The return value will be aFeedbackService
.
getFeedbackByUUID(String uuid)
- Adds a feedback to the list with
date
,note
,comment
,bikeState
,rentUUID
. The return value will be aFeedbackService
.
add(Date date, int note, String comment, BikeState bikeState, String rentUUID)
- Get feedback
date
. The return value will be aDate
.
getDate()
- Get feedback
note
. The return value will be aint
.
getNote()
- Get feedback
comment
. The return value will be aString
.
getComment()
- Get feedback
bikeState
. The return value will be aBikeState
.
getBikeState()
- Get feedback
rentUUID
. The return value will be aRentService
.
getRentUUID()