Record Class SearchMatchRequest

java.lang.Object
java.lang.Record
io.meeds.social.search.model.SearchMatchRequest
Record Components:
viewer - the user who searches, with their memberships
term - the keyword as the host processed it for its own query
spaceIds - the spaces the search is restricted to, empty for all
limit - the number of results the search shows
locale - the viewer's language, for the labels of what matched

public record SearchMatchRequest(org.exoplatform.services.security.Identity viewer, String term, List<Long> spaceIds, int limit, Locale locale) extends Record
What a search contributor is asked for.
Since:
8.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    SearchMatchRequest(org.exoplatform.services.security.Identity viewer, String term, List<Long> spaceIds, int limit, Locale locale)
    Creates an instance of a SearchMatchRequest record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the limit record component.
    Returns the value of the locale record component.
    Returns the value of the spaceIds record component.
    Returns the value of the term record component.
    final String
    Returns a string representation of this record class.
    org.exoplatform.services.security.Identity
    Returns the value of the viewer record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SearchMatchRequest

      public SearchMatchRequest(org.exoplatform.services.security.Identity viewer, String term, List<Long> spaceIds, int limit, Locale locale)
      Creates an instance of a SearchMatchRequest record class.
      Parameters:
      viewer - the value for the viewer record component
      term - the value for the term record component
      spaceIds - the value for the spaceIds record component
      limit - the value for the limit record component
      locale - the value for the locale record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • viewer

      public org.exoplatform.services.security.Identity viewer()
      Returns the value of the viewer record component.
      Returns:
      the value of the viewer record component
    • term

      public String term()
      Returns the value of the term record component.
      Returns:
      the value of the term record component
    • spaceIds

      public List<Long> spaceIds()
      Returns the value of the spaceIds record component.
      Returns:
      the value of the spaceIds record component
    • limit

      public int limit()
      Returns the value of the limit record component.
      Returns:
      the value of the limit record component
    • locale

      public Locale locale()
      Returns the value of the locale record component.
      Returns:
      the value of the locale record component