public class JSSearchManager extends JSBaseScriptableObject implements com.brightech.metrics.IMetricsConstants
Modifier and Type | Field and Description |
---|---|
static java.util.List |
myMetricsFields
List of metrics fields.
|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
Constructor and Description |
---|
JSSearchManager() |
Modifier and Type | Method and Description |
---|---|
SearchWrapper |
jsFunction_createQuickSearch(java.lang.String theSearch)
Builds a quick search SearchWrapper object from the provided string
|
void |
jsFunction_delete(int theId)
Deletes the specified search.
|
org.mozilla.javascript.NativeArray |
jsFunction_filterByACL(org.mozilla.javascript.NativeArray theAssets)
Pass array of ids, output ids which are constrained by the current acl's restrictions
|
org.mozilla.javascript.NativeArray |
jsFunction_filterByConditionalDownload(org.mozilla.javascript.NativeArray theAssets)
Pass array of ids, output ids which are constrained by the current acl's conditional download filter
|
void |
jsFunction_flushR3SearchQueue()
Will trigger a synthetic asset update, essentially guaranteeing that after this completes, r3search will have
finished any indexing operations started prior to calling this.
|
SolrConfigWrapper |
jsFunction_getR3SearchConfig(java.lang.String theWidgetId)
Get r3search config from a widget id for a widget on some workspace.
|
SavedSearch[] |
jsFunction_getSavedSearchesForUser(User theUser)
Get an array of saved search objects available to the user
|
SearchWrapper |
jsFunction_getSearch(int theSearchId)
Get a saved search object by id number.
|
SearchWrapper |
jsFunction_getSearchByName(java.lang.String theName)
Get a saved search object by name.
|
java.lang.String |
jsFunction_getSolrAddress()
Gets solr address.
|
org.mozilla.javascript.NativeArray |
jsFunction_getTypeAheadSuggestions(User theUser,
ACL theAcl,
java.lang.String theQuery)
Provides an array of possible words to search on given a the query string
|
void |
jsFunction_reindexAsset(int theAssetId)
reindex the asset in solr
|
int |
jsFunction_save(SearchWrapper theSearch,
User theUser)
Saves the given GWTSearchVO and returns its id.
|
void |
jsFunction_searchByResolverUrl(java.lang.String theResolverUrl,
int theUserId,
org.mozilla.javascript.Function theCallback,
int theLimit)
Given a Resolver URL and a User ID, this will iterate through that set of assets, and call theCallback with a
ManagedFile for each one.
|
void |
jsFunction_update(SearchWrapper theSearch,
User theUser)
Update the given GWTSearchVO
|
void |
jsFunction_waitForSolrIndex(int theAssetId,
org.mozilla.javascript.Function theIndexingActionCallback)
Wait until solr has updated its indexes for this particular asset.
|
void |
jsFunction_waitForSolrIndexingResult(int theAssetId,
java.lang.String theWaitForInitialUpdateTime)
Deprecated.
Use waitForSolrIndex(). This method does not wait for a specific asset, only waits for the queue to clear.
|
void |
jsFunction_waitForSolrIndexingResults(org.mozilla.javascript.NativeArray theAssetIds,
java.lang.String theWaitForInitialUpdateTime)
Deprecated.
Use waitForSolrIndex(). This method does not wait for specific assets, only waits for the queue to clear.
|
JSMap |
jsGet_conditions() |
JSMap |
jsGet_conjunctions() |
JSMap |
jsGet_sortOrderings()
Get an array of valid sort orderings
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public JSMap jsGet_conjunctions()
public JSMap jsGet_conditions()
public JSMap jsGet_sortOrderings()
public void jsFunction_searchByResolverUrl(java.lang.String theResolverUrl, int theUserId, org.mozilla.javascript.Function theCallback, int theLimit) throws jb.gwt_main_modules.base_widgets.client.exceptions.IterationException
theResolverUrl
- A Resolver URL string.theUserId
- The Resolver URL will be evaluated in the context of the User having this ID. (In the case of
selections, etc.)theCallback
- A JavaScript Function which will be called with a ManagedFile for each asset in the Resolver
URL.theLimit
- Stop after this many results.jb.gwt_main_modules.base_widgets.client.exceptions.IterationException
ManagedFile
public SearchWrapper jsFunction_getSearch(int theSearchId)
theSearchId
- The search id to look uppublic SearchWrapper jsFunction_getSearchByName(java.lang.String theName)
theName
- The search name to look uppublic org.mozilla.javascript.NativeArray jsFunction_filterByACL(org.mozilla.javascript.NativeArray theAssets)
theAssets
- array of asset idspublic org.mozilla.javascript.NativeArray jsFunction_filterByConditionalDownload(org.mozilla.javascript.NativeArray theAssets)
theAssets
- array of asset idspublic SavedSearch[] jsFunction_getSavedSearchesForUser(User theUser)
theUser
- public SearchWrapper jsFunction_createQuickSearch(java.lang.String theSearch)
theSearch
- public void jsFunction_update(SearchWrapper theSearch, User theUser) throws jb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInException
theSearch
- the search to updatejb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInException
- not logged inpublic int jsFunction_save(SearchWrapper theSearch, User theUser) throws jb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInException
theSearch
- the search to savejb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInException
- not logged inpublic void jsFunction_delete(int theId) throws jb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInException
theId
- the search idjb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInException
- not logged inpublic java.lang.String jsFunction_getSolrAddress()
public SolrConfigWrapper jsFunction_getR3SearchConfig(java.lang.String theWidgetId) throws com.brightech.mb.web.search.SearchException
theWidgetId
- the widget id to get the config fromcom.brightech.mb.web.search.SearchException
public void jsFunction_waitForSolrIndexingResults(org.mozilla.javascript.NativeArray theAssetIds, java.lang.String theWaitForInitialUpdateTime)
theAssetIds
- the list of assets to check ontheWaitForInitialUpdateTime
- if true, waits for the asset's initial update time, otherwise doesn't.public void jsFunction_waitForSolrIndexingResult(int theAssetId, java.lang.String theWaitForInitialUpdateTime)
theAssetId
- this is ignored. Use waitForSolrIndextheWaitForInitialUpdateTime
- This is ignored, it is impossible to use safely in this manner. Use waitForSolrIndex.public void jsFunction_waitForSolrIndex(int theAssetId, org.mozilla.javascript.Function theIndexingActionCallback)
theAssetId
- the id of the asset to wait for the index in solrtheIndexingActionCallback
- function to call that will trigger the re-index of the assetpublic void jsFunction_flushR3SearchQueue()
public void jsFunction_reindexAsset(int theAssetId)
theAssetId
- the asset idpublic org.mozilla.javascript.NativeArray jsFunction_getTypeAheadSuggestions(User theUser, ACL theAcl, java.lang.String theQuery)
theUser
- theAcl
- theQuery
- String used to get suggestions. "test" could find results for "test.xmp" or "test1.xmp"Copyright © 2023 MediaBeacon, Inc. All Rights Reserved.