Package org.alfresco.opencmis.search
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CMISQueryOptions.CMISQueryMode
-
Nested classes/interfaces inherited from class org.alfresco.repo.search.impl.querymodel.QueryOptions
QueryOptions.Connective
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CMISQueryOptions
create(SearchParameters searchParameters)
SearchParameters
getAsSearchParmeters()
org.apache.chemistry.opencmis.commons.enums.CmisVersion
getCmisVersion()
CMISQueryOptions.CMISQueryMode
getQueryMode()
Get the query mode.void
setCmisVersion(org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
void
setQueryMode(CMISQueryOptions.CMISQueryMode queryMode)
Set the query mode.-
Methods inherited from class org.alfresco.repo.search.impl.querymodel.QueryOptions
addQueryTemplate, getDefaultFieldName, getDefaultFTSConnective, getDefaultFTSFieldConnective, getExcludeTenantFilter, getLocales, getMaxItems, getMaxPermissionChecks, getMaxPermissionCheckTimeMillis, getMaxRawResultSetSizeForInMemorySort, getMlAnalaysisMode, getQuery, getQueryConsistency, getQueryParameterDefinitions, getQueryTemplates, getSinceTxId, getSkipCount, getStores, getUseInMemorySort, isBulkFetchEnabled, isIncludeInTransactionData, setBulkFetchEnabled, setDefaultFieldName, setDefaultFTSConnective, setDefaultFTSFieldConnective, setExcludeTenantFilter, setIncludeInTransactionData, setLocales, setMaxItems, setMaxPermissionChecks, setMaxPermissionCheckTimeMillis, setMaxRawResultSetSizeForInMemorySort, setMlAnalaysisMode, setQuery, setQueryConsistency, setQueryParameterDefinitions, setSinceTxId, setSkipCount, setStores, setUseInMemorySort
-
-
-
-
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 runstoreRef
- - 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 runstoreRef
- - the store against which to run the query
-
-
Method Detail
-
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 classQueryOptions
- Returns:
- SearchParameters
-
-