Class CMISQueryOptions

java.lang.Object
org.alfresco.repo.search.impl.querymodel.QueryOptions
org.alfresco.opencmis.search.CMISQueryOptions

public class CMISQueryOptions extends QueryOptions
The options for a CMIS query
Author:
andyh
  • Constructor Details

    • CMISQueryOptions

      public CMISQueryOptions(String query, StoreRef storeRef)
      Create a CMISQueryOptions instance with the default options other than the query and store ref. The query will be run using the locale returned by I18NUtil.getLocale()
      Parameters:
      query - - the query to run
      storeRef - - the store against which to run the query
    • CMISQueryOptions

      public CMISQueryOptions(String query, StoreRef storeRef, Locale locale)
      Create a CMISQueryOptions instance with the default options other than the query, store ref and locale.
      Parameters:
      query - - the query to run
      storeRef - - the store against which to run the query
  • Method Details

    • create

      public static CMISQueryOptions create(SearchParameters searchParameters)
    • getCmisVersion

      public org.apache.chemistry.opencmis.commons.enums.CmisVersion getCmisVersion()
    • setCmisVersion

      public void setCmisVersion(org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
    • getQueryMode

      public CMISQueryOptions.CMISQueryMode getQueryMode()
      Get the query mode.
      Returns:
      the queryMode
    • setQueryMode

      public void setQueryMode(CMISQueryOptions.CMISQueryMode queryMode)
      Set the query mode.
      Parameters:
      queryMode - the queryMode to set
    • getAsSearchParmeters

      public SearchParameters getAsSearchParmeters()
      Overrides:
      getAsSearchParmeters in class QueryOptions
      Returns:
      SearchParameters