Class FindRestaurantRequest

java.lang.Object
com.dzidzi.dto.merge.AbstractFindRequest
com.dzidzi.dto.restaurant.FindRestaurantRequest

public class FindRestaurantRequest extends AbstractFindRequest
FindRestaurantRequest represents the DTO request containing the objects used to filter restaurant.
  • Constructor Details

    • FindRestaurantRequest

      public FindRestaurantRequest()
  • Method Details

    • getRestaurantIds

      public List<UUID> getRestaurantIds()
    • getRestaurantName

      public String getRestaurantName()
      The name of the restaurant to filter on
    • getRating

      public Float getRating()
      The average rating of restaurants to filter on
    • getEmail

      public String getEmail()
      The email of the restaurant to filter on
    • getUsername

      public String getUsername()
      The username of the restaurant to filter on
    • getVisible

      public Boolean getVisible()
      A flag to filter restaurant on if they are visible to users or not
    • getCategory

      public MenuCategory getCategory()
      Menu category to filter restaurant on.
    • getParentRestaurantId

      public UUID getParentRestaurantId()
      The parent restaurant id to filter on
    • getDistance

      public Integer getDistance()
      The distance to filter restaurant on. This is only taken into action when a user with UserRole.USER is logged in.
    • getLatitude

      public double getLatitude()
      The latitude
    • getLongitude

      public double getLongitude()
      The longitude
    • getPage

      public int getPage()
      The page number to fetch
      Overrides:
      getPage in class AbstractFindRequest
    • setRestaurantName

      public void setRestaurantName(String restaurantName)
      The name of the restaurant to filter on
    • setRating

      public void setRating(Float rating)
      The average rating of restaurants to filter on
    • setEmail

      public void setEmail(String email)
      The email of the restaurant to filter on
    • setUsername

      public void setUsername(String username)
      The username of the restaurant to filter on
    • setVisible

      public void setVisible(Boolean visible)
      A flag to filter restaurant on if they are visible to users or not
    • setCategory

      public void setCategory(MenuCategory category)
      Menu category to filter restaurant on.
    • setParentRestaurantId

      public void setParentRestaurantId(UUID parentRestaurantId)
      The parent restaurant id to filter on
    • setDistance

      public void setDistance(Integer distance)
      The distance to filter restaurant on. This is only taken into action when a user with UserRole.USER is logged in.
    • setRestaurantIds

      public void setRestaurantIds(List<UUID> restaurantIds)
      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:
      setPage in class AbstractFindRequest
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object