public class JSSearchManager extends JSBaseScriptableObject
Constructor and Description |
---|
JSSearchManager() |
Modifier and Type | Method and Description |
---|---|
void |
(JavaScript Function) delete(int theId)
Deletes the specified search.
|
SolrConfigWrapper |
(JavaScript Function) getR3SearchConfig(java.lang.String theWidgetId)
Get r3search config from a widget id for a widget on some workspace.
|
SearchWrapper |
(JavaScript Function) getSearch(int theSearchId)
Get a saved search object by id number.
|
SearchWrapper |
(JavaScript Function) getSearchByName(java.lang.String theName)
Get a saved search object by name.
|
int |
(JavaScript Function) save(SearchWrapper theSearch,
User theUser)
Saves the given GWTSearchVO and returns its id.
|
void |
(JavaScript Function) searchByResolverUrl(java.lang.String theResolverUrl,
int theUserId,
org.mozilla.javascript.Function theCallback)
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 |
(JavaScript Function) update(SearchWrapper theSearch,
User theUser)
Update the given GWTSearchVO
|
JSMap |
(JavaScript Getter) conditions() |
JSMap |
(JavaScript Getter) conjunctions() |
JSMap |
(JavaScript Getter) sortOrderings()
Get an array of valid sort orderings
|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size
public JSMap (JavaScript Getter) conjunctions()
public JSMap (JavaScript Getter) conditions()
public JSMap (JavaScript Getter) sortOrderings()
public void (JavaScript Function) searchByResolverUrl(java.lang.String theResolverUrl, int theUserId, org.mozilla.javascript.Function theCallback) throws 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.IterationException
ManagedFile
public SearchWrapper (JavaScript Function) getSearch(int theSearchId) throws SearchErrorException
theSearchId
- The search id to look upSearchErrorException
public SearchWrapper (JavaScript Function) getSearchByName(java.lang.String theName) throws SearchErrorException
theName
- The search name to look upSearchErrorException
- if an error occurs (usually there's more than 1 search with that name)public void (JavaScript Function) update(SearchWrapper theSearch, User theUser) throws NotLoggedInException
theSearch
- the search to updateNotLoggedInException
- not logged inpublic int (JavaScript Function) save(SearchWrapper theSearch, User theUser) throws NotLoggedInException
theSearch
- the search to saveNotLoggedInException
- not logged inpublic void (JavaScript Function) delete(int theId) throws NotLoggedInException
theId
- the search idNotLoggedInException
- not logged inpublic SolrConfigWrapper (JavaScript Function) getR3SearchConfig(java.lang.String theWidgetId) throws SearchException
theWidgetId
- the widget id to get the config fromSearchException
Copyright © 2016 MediaBeacon, Inc. All Rights Reserved.