public class SelectionApiPublisher
extends java.lang.Object
window.MBAPI.selectionwindow.MBAPI.selection.saveScratchBasket(theWidgetId, theTabId, theName, theDescription, theFromDate, theToDate, theDownloadLimit, theIsPublic, thePosAction) for example)| Constructor and Description |
|---|
SelectionApiPublisher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCurrentSelectionToScratchBasket()
Add the current selection's contents into our current scratch basket
|
static void |
addToSavedSelection(java.lang.String theResolverString,
int theSavedSelectionId,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
Add items defined by the resolver string to the save selection
|
static void |
addToSavedSelectionBundle(int theSelectionBundle,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback) |
static java.util.List<java.lang.Integer> |
asIntegerList(com.google.gwt.core.client.JsArrayInteger theArray)
Returns a List of Integer type for the specified JsArrayInteger.
|
static void |
changeSelection(com.google.gwt.core.client.JsArrayInteger theAssetIdsToAdd,
com.google.gwt.core.client.JsArrayInteger theAssetIdsToRemove,
boolean theKeepCurrentSelection,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
Changes the current selection by selecting the assets to add and deselecting the assets to remove.
|
static void |
clearCurrentCart()
Remove the current tabs assets
|
static void |
clearCurrentSelection(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
Clear all assets in the current selection
|
static void |
createSelection(java.lang.String theName,
java.lang.String theDescription,
boolean thePublic,
java.lang.String theResolverString,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
Create a new selection with whatever is in the current selection.
|
static void |
deleteSavedSelection(int theSelectionId,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
remove a saved selection
|
static void |
doFetchAssetIds(java.lang.String theResolverUrl,
int thePage,
int thePageSize,
com.google.gwt.core.client.JavaScriptObject theCallback)
This is not a JavaScript callable method
|
static void |
doGetCurrentPage(com.google.gwt.core.client.JavaScriptObject theCallback)
Internal method for calling server and doing get the current page.
|
static void |
doGetNextPage(com.google.gwt.core.client.JavaScriptObject theCallback)
Internal method for calling server and doing get the next page.
|
static void |
doGetPreviousPage(com.google.gwt.core.client.JavaScriptObject theCallback)
Internal method for calling server and doing get the previous page.
|
static void |
fetchAssetIds(java.lang.String theResolverUrl,
int thePage,
int thePageSize,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
Fetch list of asset ids from the url with page and offset
|
static void |
getCurrentPage(jb.gwt_main_modules.base_widgets.client.events.selectionchangelistener.SelectionRetrievalCallback theCallback)
Gets the current page of selections.
|
static int |
getCurrentSelectionCount()
Get the current count of assets in the selection
|
static float |
getCurrentSelectionSize()
Gets the current size of assets in the selection.
|
static void |
getNextPage(jb.gwt_main_modules.base_widgets.client.events.selectionchangelistener.SelectionRetrievalCallback theCallback)
Gets the next page of selections.
|
static void |
getPreviousPage(jb.gwt_main_modules.base_widgets.client.events.selectionchangelistener.SelectionRetrievalCallback theCallback)
Gets the previous page of selections.
|
static java.lang.String |
getScratchBasketResolverString()
Get the resolver string for the scratch basket displayed on the current workspace
|
static int |
getScratchBasketSize()
Get the number of assets in our current scratch basket
|
static void |
getSelectionIdFromName(java.lang.String theName,
com.google.gwt.core.client.JavaScriptObject theCallback)
Get a selection id from a selection name
|
static jb.gwt_main_modules.base_widgets.client.events.selectionchangelistener.SelectionManager |
getSelectionManager()
Gets the selection manager.
|
static void |
initializeScratchBasketAPI(jb.gwt_main_modules.scratchbasket.client.ScratchBasketController theInstance) |
static void |
loadCurrentScratchBasket()
Swap the current scratch basket into the main view
|
static void |
removeCurrentSelectionFromScratchBasket()
Remove the current selection's contents from our current scratch basket
|
static void |
removeFromSavedSelection(int theSavedSelectionId,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
Remove assets in the current selection from the selection passed in
|
static void |
removeFromSavedSelectionBundle(int theSelectionBundle,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback) |
static void |
saveScratchBasket(java.lang.String theWidgetId,
java.lang.String theTabId,
java.lang.String theName,
java.lang.String theDescription,
java.lang.String theFromDate,
java.lang.String theToDate,
int theDownloadLimit,
boolean theIsPublic,
com.google.gwt.core.client.JavaScriptObject thePosAction)
Saves the current Scratch Basket with the specified Scratch Basket parameters, as either a public or private selection.
|
static void |
selectAllAssets(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
Select all assets on the current view page
|
static void |
selectAsset(int theAssetId)
Select the asset (show the gray badge container
|
static void |
setupAPI()
Initialize the selection API namespace object.
|
static void |
setupJavascriptAPIs()
Setup javascript APIs.
|
public static jb.gwt_main_modules.base_widgets.client.events.selectionchangelistener.SelectionManager getSelectionManager()
public static void setupJavascriptAPIs()
public static void setupAPI()
public static void initializeScratchBasketAPI(jb.gwt_main_modules.scratchbasket.client.ScratchBasketController theInstance)
public static void saveScratchBasket(java.lang.String theWidgetId,
java.lang.String theTabId,
java.lang.String theName,
java.lang.String theDescription,
java.lang.String theFromDate,
java.lang.String theToDate,
int theDownloadLimit,
boolean theIsPublic,
com.google.gwt.core.client.JavaScriptObject thePosAction)
theWidgetId - the widget id of the Scratch BaskettheTabId - the tab id of the Scratch BaskettheName - the name of the selectiontheDescription - the description of the selectiontheFromDate - the from date in yyyy-MM-dd formattheToDate - the to date in yyyy-MM-dd formattheDownloadLimit - number of times selection can be downloadedtheIsPublic - true if selection should be saved as public (for group), otherwise selection is saved as privatethePosAction - the on success actionpublic static void getSelectionIdFromName(java.lang.String theName,
com.google.gwt.core.client.JavaScriptObject theCallback)
theName - the selection's nametheCallback - passed back the selection idpublic static void createSelection(java.lang.String theName,
java.lang.String theDescription,
boolean thePublic,
java.lang.String theResolverString,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
theName - name of the new selectiontheDescription - description of the new selectionthePublic - is the new selection publictheResolverString - the resolver string defining some assetstheCallback - the callback to inform when we're donepublic static void addToSavedSelection(java.lang.String theResolverString,
int theSavedSelectionId,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
theResolverString - the resolver string defining some assetstheSavedSelectionId - the selection idtheCallback - the callback to inform when we're donepublic static void removeFromSavedSelection(int theSavedSelectionId,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
theSavedSelectionId - Selection id to remove fromtheCallback - once removal is done, function to informpublic static void removeFromSavedSelectionBundle(int theSelectionBundle,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
public static void addToSavedSelectionBundle(int theSelectionBundle,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
public static void deleteSavedSelection(int theSelectionId,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
theSelectionId - id of the selectiontheCallback - function to inform when the operation is successfulpublic static int getCurrentSelectionCount()
public static float getCurrentSelectionSize()
public static void selectAllAssets(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
theCallback - public static void clearCurrentSelection(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
theCallback - public static java.util.List<java.lang.Integer> asIntegerList(com.google.gwt.core.client.JsArrayInteger theArray)
theArray - The JsArrayIntegerpublic static void changeSelection(com.google.gwt.core.client.JsArrayInteger theAssetIdsToAdd,
com.google.gwt.core.client.JsArrayInteger theAssetIdsToRemove,
boolean theKeepCurrentSelection,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
theAssetIdsToAdd - the asset ids to select (must be on the current page in the view widget).theAssetIdsToRemove - the asset ids to remove (must be on the current page in the view widget).theKeepCurrentSelection - specifies whether to keep or to clear the current selection before applying the adds/removestheCallback - the callback to call on success.public static void selectAsset(int theAssetId)
theAssetId - the asset id to select (must be on the current page in the view widget).public static java.lang.String getScratchBasketResolverString()
public static void loadCurrentScratchBasket()
public static void addCurrentSelectionToScratchBasket()
public static void removeCurrentSelectionFromScratchBasket()
public static void clearCurrentCart()
public static int getScratchBasketSize()
public static void fetchAssetIds(java.lang.String theResolverUrl,
int thePage,
int thePageSize,
jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback)
theResolverUrl - the resolver url that describes the assets to fetchthePage - the page numberthePageSize - the size of the pagetheCallback - a callback to give an array of record ids back topublic static void doFetchAssetIds(java.lang.String theResolverUrl,
int thePage,
int thePageSize,
com.google.gwt.core.client.JavaScriptObject theCallback)
theResolverUrl - thePage - thePageSize - theCallback - public static void doGetCurrentPage(com.google.gwt.core.client.JavaScriptObject theCallback)
theCallback - the callbackpublic static void doGetNextPage(com.google.gwt.core.client.JavaScriptObject theCallback)
theCallback - the callbackpublic static void doGetPreviousPage(com.google.gwt.core.client.JavaScriptObject theCallback)
theCallback - the callbackpublic static void getCurrentPage(jb.gwt_main_modules.base_widgets.client.events.selectionchangelistener.SelectionRetrievalCallback theCallback)
theCallback - the callbackpublic static void getNextPage(jb.gwt_main_modules.base_widgets.client.events.selectionchangelistener.SelectionRetrievalCallback theCallback)
theCallback - the callbackpublic static void getPreviousPage(jb.gwt_main_modules.base_widgets.client.events.selectionchangelistener.SelectionRetrievalCallback theCallback)
theCallback - the callbackCopyright © 2026 MediaBeacon, Inc. All Rights Reserved.