Package com.dzidzi.dto.menu
Class FindMenuRequest
java.lang.Object
com.dzidzi.dto.merge.AbstractFindRequest
com.dzidzi.dto.menu.FindMenuRequest
FilterMenuRequest represents the DTO request containing the objects used to filter menus'.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe menu category to filter onThe distance to filter menu on.doubleThe latitudedoubleThe longitudeThe maximum price to filter onThe minimum price to filter ongetName()The name of the menu to filter onThe parent restaurant id to filter onThe average rating of restaurants to filter onA flag to filter menus on if they are visible to users or notinthashCode()voidsetCategory(MenuCategory category) The menu category to filter onvoidsetDistance(Integer distance) The distance to filter menu on.voidsetLatitude(double latitude) The latitudevoidsetLongitude(double longitude) The longitudevoidsetMaximumPrice(BigDecimal maximumPrice) The maximum price to filter onvoidsetMenuIds(List<UUID> menuIds) The menu ids to filter onvoidsetMinimumPrice(BigDecimal minimumPrice) The minimum price to filter onvoidThe name of the menu to filter onvoidsetParentRestaurantId(UUID parentRestaurantId) The parent restaurant id to filter onvoidThe average rating of restaurants to filter onvoidsetRestaurantIds(List<UUID> restaurantIds) The restaurant id to filter onvoidsetVisible(Boolean visible) A flag to filter menus on if they are visible to users or nottoString()Methods inherited from class com.dzidzi.dto.merge.AbstractFindRequest
getLimit, getOrderBy, getPage, getSortBy, setLimit, setOrderBy, setPage, setSortBy
-
Constructor Details
-
FindMenuRequest
public FindMenuRequest()
-
-
Method Details
-
getMenuIds
-
getRestaurantIds
-
getCategory
The menu category to filter on -
getMinimumPrice
The minimum price to filter on -
getMaximumPrice
The maximum price to filter on -
getName
The name of the menu to filter on -
getParentRestaurantId
The parent restaurant id to filter on -
getRating
The average rating of restaurants to filter on -
getVisible
A flag to filter menus on if they are visible to users or not -
getDistance
The distance to filter menu 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 -
setMinimumPrice
The minimum price to filter on -
setMaximumPrice
The maximum price to filter on -
setName
The name of the menu to filter on -
setParentRestaurantId
The parent restaurant id to filter on -
setRating
The average rating of restaurants to filter on -
setVisible
A flag to filter menus on if they are visible to users or not -
setDistance
The distance to filter menu on. This is only taken into action when a user withUserRole.USERis logged in. -
setLatitude
public void setLatitude(double latitude) The latitude -
setLongitude
public void setLongitude(double longitude) The longitude -
setRestaurantIds
The restaurant id to filter on -
setMenuIds
The menu ids to filter on -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-