Class VocabularySearchRequest

java.lang.Object
com.persequor.event.VocabularySearchRequest

public final class VocabularySearchRequest extends Object
Parametrized query used for searching vocabularies
  • Method Details

    • build

      public static VocabularySearchRequest build(VocabularyUri vocabularyUri)
    • getVocabularyUri

      public VocabularyUri getVocabularyUri()
    • getVocabularyType

      public Vocabulary.Type getVocabularyType()
    • getElementId

      public ElementUri getElementId()
    • setElementId

      public VocabularySearchRequest setElementId(ElementUri elementId)
    • isIncludeAttributes

      public boolean isIncludeAttributes()
    • setIncludeAttributes

      public VocabularySearchRequest setIncludeAttributes(boolean includeAttributes)
    • getAttributeFilters

      public Set<String> getAttributeFilters()
    • addAttributeFilters

      public VocabularySearchRequest addAttributeFilters(String... attributeFilters)
    • isIncludeChildList

      public boolean isIncludeChildList()
    • setIncludeChildList

      public VocabularySearchRequest setIncludeChildList(boolean includeChildList)
    • getFromDate

      public Date getFromDate()
    • setFromDate

      public VocabularySearchRequest setFromDate(Date fromDate)
    • getToDate

      public Date getToDate()
    • setToDate

      public VocabularySearchRequest setToDate(Date toDate)
    • getAttributeMatch

      public Map<String,List<String>> getAttributeMatch()
    • addAttributeMatch

      public VocabularySearchRequest addAttributeMatch(String attribute, String... valueMatches)
    • getHasAttributes

      public Set<String> getHasAttributes()
    • addHasAttributes

      public VocabularySearchRequest addHasAttributes(String... hasAttributes)
    • setAttributeFilters

      public VocabularySearchRequest setAttributeFilters(Collection<String> attributeNames)
      Clear all attributes and if the provided collection is not null use all the attributes from that collection

      Attribute filters are used to filter out attributes by their names

      Parameters:
      attributeNames - collection of attributes names to allow
      Returns:
      instance of this request
    • setAttributeMatch

      public VocabularySearchRequest setAttributeMatch(Map<String,List<String>> attributeMatch)
      Clear all attributes and if the provided collection is not null use all the attributes from that collection

      Attribute matchers are used to filter out attributes by value and matching name

      Parameters:
      attributeMatch - allowed values for matching attribute name
      Returns:
      instance of this request
    • setHasAttributes

      public VocabularySearchRequest setHasAttributes(Collection<String> hasAttributes)
      Clear all attributes and if the provided collection is not null use all the attributes from that collection

      Has attributes is used to filter out vocabulary elements that don't have any of the required attributes

      Parameters:
      hasAttributes - need vocabulary element attributes
      Returns:
      instance of this request
    • equals

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

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

      public void setVocabularyUri(VocabularyUri uri)