org.alfresco.opencmis.search
Class CMISQueryOptions

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

public class CMISQueryOptions
extends QueryOptions

The options for a CMIS query


Nested Class Summary
static class CMISQueryOptions.CMISQueryMode
           
 
Nested classes/interfaces inherited from class org.alfresco.repo.search.impl.querymodel.QueryOptions
QueryOptions.Connective
 
Constructor Summary
CMISQueryOptions(java.lang.String query, StoreRef storeRef)
          Create a CMISQueryOptions instance with the default options other than the query and store ref.
CMISQueryOptions(java.lang.String query, StoreRef storeRef, java.util.Locale locale)
          Create a CMISQueryOptions instance with the default options other than the query, store ref and locale.
 
Method Summary
static CMISQueryOptions create(SearchParameters searchParameters)
           
 SearchParameters getAsSearchParmeters()
           
 CMISQueryOptions.CMISQueryMode getQueryMode()
          Get the query mode.
 void setQueryMode(CMISQueryOptions.CMISQueryMode queryMode)
          Set the query mode.
 
Methods inherited from class org.alfresco.repo.search.impl.querymodel.QueryOptions
getDefaultFieldName, getDefaultFTSConnective, getDefaultFTSFieldConnective, getLocales, getMaxItems, getMaxPermissionChecks, getMaxPermissionCheckTimeMillis, getMlAnalaysisMode, getQuery, getQueryParameterDefinitions, getSkipCount, getStores, isIncludeInTransactionData, setDefaultFieldName, setDefaultFTSConnective, setDefaultFTSFieldConnective, setIncludeInTransactionData, setLocales, setMaxItems, setMaxPermissionChecks, setMaxPermissionCheckTimeMillis, setMlAnalaysisMode, setQuery, setQueryParameterDefinitions, setSkipCount, setStores
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMISQueryOptions

public CMISQueryOptions(java.lang.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(java.lang.String query,
                        StoreRef storeRef,
                        java.util.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 Detail

create

public static CMISQueryOptions create(SearchParameters searchParameters)

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()
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.