public class JSSavedSelectionManager extends JSBaseScriptableObject
myLogger
Constructor and Description |
---|
JSSavedSelectionManager() |
Modifier and Type | Method and Description |
---|---|
void |
jsFunction_addAssetsToSavedSelection(java.lang.String theResolverUrl,
int theSelectionId)
Adds multiple assets to an existing saved selection
|
void |
jsFunction_addAssetToSavedSelection(int theAssetId,
int theSelectionId)
Adds a single asset to an existing saved selection
|
boolean |
jsFunction_clearCurrentSelection()
Clears the current users selection
|
void |
jsFunction_deleteSelection(int theSelectionId)
Deletes the specified selection.
|
int |
jsFunction_getCurrentSelectionCount()
Returns the number of assets in the selection for the current users current s
|
SavedSelection[] |
jsFunction_getSavedSelectionsForUser(java.lang.String theUserName)
Returns an Array of Saved Selections for a user with theUserName
|
SavedSelection |
jsFunction_getSelection(int theSelectionId)
Returns the SavedSelection for the specified id.
|
int[] |
jsFunction_getSelectionIDFromName(java.lang.String theSelectionName,
int theUserId)
Returns the selection IDs for the given selection name and user id.
|
void |
jsFunction_removeAssetFromSavedSelection(int theAssetId,
int theSelectionId)
Removes a single asset from an existing saved selection
|
void |
jsFunction_removeAssetsFromSavedSelection(java.lang.String theResolverUrl,
int theSelectionId)
Removes multiple assets from an existing saved selection
|
SavedSelection |
jsFunction_saveSelection(java.lang.String theName,
java.lang.String theDescription,
boolean theIsPublic,
boolean theModifiable,
java.lang.String theResolverUrl,
java.lang.Boolean theIsFavorite)
save a selection
|
void |
jsFunction_selectAll(CriteriaWrapper theCriteria)
Selects all assets for the current user
in the context of the given search criteria
|
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 SavedSelection jsFunction_getSelection(int theSelectionId)
theSelectionId
- public SavedSelection jsFunction_saveSelection(java.lang.String theName, java.lang.String theDescription, boolean theIsPublic, boolean theModifiable, java.lang.String theResolverUrl, java.lang.Boolean theIsFavorite)
theName
- name to savetheDescription
- description to savetheIsPublic
- is selection publictheModifiable
- is selection modifiabletheResolverUrl
- the url to define what assets to put in the selectiontheIsFavorite
- is favorite?public void jsFunction_selectAll(CriteriaWrapper theCriteria)
theCriteria
- search for the selection. Accepts null to select everythingpublic int jsFunction_getCurrentSelectionCount()
public boolean jsFunction_clearCurrentSelection()
public SavedSelection[] jsFunction_getSavedSelectionsForUser(java.lang.String theUserName)
theUserName
- public void jsFunction_deleteSelection(int theSelectionId)
theSelectionId
- the selection id of the selection to delete.public void jsFunction_addAssetToSavedSelection(int theAssetId, int theSelectionId)
theAssetId
- asset idtheSelectionId
- the saved selection idpublic void jsFunction_removeAssetFromSavedSelection(int theAssetId, int theSelectionId)
theAssetId
- asset idtheSelectionId
- the saved selection idpublic void jsFunction_addAssetsToSavedSelection(java.lang.String theResolverUrl, int theSelectionId)
theResolverUrl
- the url to define what assets to put in the selectiontheSelectionId
- the saved selection idpublic void jsFunction_removeAssetsFromSavedSelection(java.lang.String theResolverUrl, int theSelectionId)
theResolverUrl
- the url to define what assets to put in the selectiontheSelectionId
- the saved selection idpublic int[] jsFunction_getSelectionIDFromName(java.lang.String theSelectionName, int theUserId)
theSelectionName
- the selection name.theUserId
- the user ID.Copyright © 2023 MediaBeacon, Inc. All Rights Reserved.