Package com.dzidzi.dto.restaurant
Class FindRestaurantRequest
java.lang.Object
com.dzidzi.dto.merge.AbstractFindRequest
com.dzidzi.dto.restaurant.FindRestaurantRequest
FindRestaurantRequest represents the DTO request containing the objects used to filter restaurant.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMenu category to filter restaurant on.The distance to filter restaurant on.getEmail()The email of the restaurant to filter ondoubleThe latitudedoubleThe longitudeintgetPage()The page number to fetchThe parent restaurant id to filter onThe average rating of restaurants to filter onThe name of the restaurant to filter onThe username of the restaurant to filter onA flag to filter restaurant on if they are visible to users or notinthashCode()voidsetCategory(MenuCategory category) Menu category to filter restaurant on.voidsetDistance(Integer distance) The distance to filter restaurant on.voidThe email of the restaurant to filter onvoidsetLatitude(double latitude) The latitudevoidsetLongitude(double longitude) The longitudevoidsetPage(int page) The page number to fetchvoidsetParentRestaurantId(UUID parentRestaurantId) The parent restaurant id to filter onvoidThe average rating of restaurants to filter onvoidsetRestaurantIds(List<UUID> restaurantIds) The restaurant ids to filter onvoidsetRestaurantName(String restaurantName) The name of the restaurant to filter onvoidsetUsername(String username) The username of the restaurant to filter onvoidsetVisible(Boolean visible) A flag to filter restaurant on if they are visible to users or nottoString()Methods inherited from class com.dzidzi.dto.merge.AbstractFindRequest
getLimit, getOrderBy, getSortBy, setLimit, setOrderBy, setSortBy
-
Constructor Details
-
FindRestaurantRequest
public FindRestaurantRequest()
-
-
Method Details
-
getRestaurantIds
-
getRestaurantName
The name of the restaurant to filter on -
getRating
The average rating of restaurants to filter on -
getEmail
The email of the restaurant to filter on -
getUsername
The username of the restaurant to filter on -
getVisible
A flag to filter restaurant on if they are visible to users or not -
getCategory
Menu category to filter restaurant on. -
getParentRestaurantId
The parent restaurant id to filter on -
getDistance
The distance to filter restaurant on. This is only taken into action when a user withUserRole.USERis logged in. -
getLatitude
public double getLatitude()The latitude -
getLongitude
public double getLongitude()The longitude -
getPage
public int getPage()The page number to fetch- Overrides:
getPagein classAbstractFindRequest
-
setRestaurantName
The name of the restaurant to filter on -
setRating
The average rating of restaurants to filter on -
setEmail
The email of the restaurant to filter on -
setUsername
The username of the restaurant to filter on -
setVisible
A flag to filter restaurant on if they are visible to users or not -
setParentRestaurantId
The parent restaurant id to filter on -
setDistance
The distance to filter restaurant on. This is only taken into action when a user withUserRole.USERis logged in. -
setRestaurantIds
The restaurant ids to filter on -
setLatitude
public void setLatitude(double latitude) The latitude -
setLongitude
public void setLongitude(double longitude) The longitude -
setPage
public void setPage(int page) The page number to fetch- Overrides:
setPagein classAbstractFindRequest
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-