Class FlavorQuery

java.lang.Object
org.xwiki.extension.repository.search.ExtensionQuery
org.xwiki.platform.flavor.FlavorQuery

public class FlavorQuery extends org.xwiki.extension.repository.search.ExtensionQuery
A query to an extension repository returning only flavors.
Since:
7.1M2
Version:
$Id: 4c327ab94c86e7736c3236c6cacd3053316e8019 $
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.xwiki.extension.repository.search.ExtensionQuery

    org.xwiki.extension.repository.search.ExtensionQuery.COMPARISON, org.xwiki.extension.repository.search.ExtensionQuery.Filter, org.xwiki.extension.repository.search.ExtensionQuery.ORDER, org.xwiki.extension.repository.search.ExtensionQuery.SortClause
  • Constructor Summary

    Constructors
    Constructor
    Description
    No filtering.
     
    FlavorQuery(org.xwiki.extension.repository.search.ExtensionQuery query)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Add a filter on the flavors' name.
    Add a filter on the flavors' summary.
    orderByName(org.xwiki.extension.repository.search.ExtensionQuery.ORDER order)
    Order the results by name.
    orderByRating(org.xwiki.extension.repository.search.ExtensionQuery.ORDER order)
    Order the results by rating.

    Methods inherited from class org.xwiki.extension.repository.search.ExtensionQuery

    addFilter, addFilters, addSort, getFilters, getLimit, getOffset, getQuery, getSortClauses, setFilters, setLimit, setOffset, setSortClauses

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FlavorQuery

      public FlavorQuery()
      No filtering. Usually return all flavors.
    • FlavorQuery

      public FlavorQuery(String query)
      Parameters:
      query - the query to execute
    • FlavorQuery

      public FlavorQuery(org.xwiki.extension.repository.search.ExtensionQuery query)
      Parameters:
      query - the query to duplicate
  • Method Details

    • filterByName

      public FlavorQuery filterByName(String name)
      Add a filter on the flavors' name.
      Parameters:
      name - name of the flavor to find
      Returns:
      this query.
    • filterBySummary

      public FlavorQuery filterBySummary(String summary)
      Add a filter on the flavors' summary.
      Parameters:
      summary - a summary to find on the extension repository
      Returns:
      this query.
    • orderByName

      public FlavorQuery orderByName(org.xwiki.extension.repository.search.ExtensionQuery.ORDER order)
      Order the results by name.
      Parameters:
      order - asc or desc
      Returns:
      this query.
    • orderByRating

      public FlavorQuery orderByRating(org.xwiki.extension.repository.search.ExtensionQuery.ORDER order)
      Order the results by rating.
      Parameters:
      order - asc or desc
      Returns:
      this query.