public class MetadataApiPublisher
extends java.lang.Object
implements jb.gwt_main_modules.base_widgets.client.services.proxy.ActionResolverConstants
window.MBAPI.md
window.MBAPI.md.setField(theCallback, theAssetId, theNamespace, theField, theValue, theFieldType, theAction)
for example)kAutoCompleteParameter, kCreateAssetType, kDownloadBundle, kINDDType, kKeyValueSeparator, kLoadingDockProgressID, kLoadingDockUserName, kLocationToken, kParamSeparator, kSavedSearchType, kSearchParameters, kSearchToken, kSearchType, kSelectionLocked, kSolrWait, kSQLType, kTab_id_key, kTypeSeparator, kWidget_id_key
Constructor and Description |
---|
MetadataApiPublisher() |
Modifier and Type | Method and Description |
---|---|
static void |
batchSetField(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback,
int theAssetId,
com.google.gwt.core.client.JsArrayString theNamespace,
com.google.gwt.core.client.JsArrayString theField,
com.google.gwt.core.client.JsArrayString theValue,
com.google.gwt.core.client.JsArrayString theFieldType,
com.google.gwt.core.client.JsArrayString theAction)
Set multiple fields in a single method
var anAssetId = 345345;
var aNamespaces = new Array();
var aFieldNames = new Array();
var aValues = new Array();
var aFieldTypes = new Array();
var anActions = new Array();
aNamespaces[0] = "http://mediabeacon.com/example/";
aFieldNames[0] = "testField";
aValues[0] = "first value";
aFieldTypes[0] = "Txt";
anActions[0] = "replace";
aNamespaces[1] = "http://mediabeacon.com/example/";
aFieldNames[1] = "sampleField";
aValues[1] = "another keyword";
aFieldTypes[1] = "Txt";
anActions[1] = "replace";
window.MBAPI.md.batchSetField(function(){}, anAssetId, aNamespaces, aFieldNames, aValues, aFieldTypes, anActions);
|
static void |
batchSetFieldByResolver(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback,
java.lang.String theResolverUrl,
com.google.gwt.core.client.JsArrayString theNamespace,
com.google.gwt.core.client.JsArrayString theField,
com.google.gwt.core.client.JsArrayString theValue,
com.google.gwt.core.client.JsArrayString theFieldType,
com.google.gwt.core.client.JsArrayString theAction)
Set multiple fields in a single method
var aResolverString = asset://345345;
var aNamespaces = new Array();
var aFieldNames = new Array();
var aValues = new Array();
var aFieldTypes = new Array();
var anActions = new Array();
aNamespaces[0] = "http://mediabeacon.com/example/";
aFieldNames[0] = "testField";
aValues[0] = "first value";
aFieldTypes[0] = "Txt";
anActions[0] = "replace";
aNamespaces[1] = "http://mediabeacon.com/example/";
aFieldNames[1] = "sampleField";
aValues[1] = "another keyword";
aFieldTypes[1] = "Txt";
anActions[1] = "replace";
window.MBAPI.md.batchSetField(function(){}, aResolverString, aNamespaces, aFieldNames, aValues, aFieldTypes, anActions);
|
static void |
doGetField(com.google.gwt.core.client.JavaScriptObject theCallback,
com.google.gwt.core.client.JsArrayInteger theAssetId,
com.google.gwt.core.client.JsArrayString theArrayString) |
static void |
getAssetsFieldValue(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback,
com.google.gwt.core.client.JsArrayInteger theAssetIds,
java.lang.String theNamespace,
java.lang.String theField)
Deprecated.
|
static void |
getField(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback,
com.google.gwt.core.client.JsArrayInteger theAssetIds,
com.google.gwt.core.client.JsArrayString theFieldIds)
Get metadata for a specific asset
|
static void |
getFieldsForNamespace(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback,
int theAssetId,
java.lang.String theNamespace)
Deprecated.
|
static void |
setField(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback,
int theAssetId,
java.lang.String theNamespace,
java.lang.String theField,
java.lang.String theValue,
java.lang.String theFieldType,
java.lang.String theAction)
Can set the metadata of a specific asset
|
static void |
setupJavascriptAPIs() |
static void |
showBulkEditDialog()
Show the bulk edit dialog
|
public static void setupJavascriptAPIs()
public static void doGetField(com.google.gwt.core.client.JavaScriptObject theCallback, com.google.gwt.core.client.JsArrayInteger theAssetId, com.google.gwt.core.client.JsArrayString theArrayString)
public static void getField(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback, com.google.gwt.core.client.JsArrayInteger theAssetIds, com.google.gwt.core.client.JsArrayString theFieldIds)
theCallback
- the function to return the string value totheAssetIds
- the asset idstheFieldIds
- the metadata field ids@Deprecated public static void getFieldsForNamespace(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback, int theAssetId, java.lang.String theNamespace)
@Deprecated public static void getAssetsFieldValue(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback, com.google.gwt.core.client.JsArrayInteger theAssetIds, java.lang.String theNamespace, java.lang.String theField)
theCallback
- the javascript object to return results totheAssetIds
- list of asset ids to get values fortheNamespace
- the namespace to usetheField
- the field to look uppublic static void setField(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback, int theAssetId, java.lang.String theNamespace, java.lang.String theField, java.lang.String theValue, java.lang.String theFieldType, java.lang.String theAction)
theCallback
- the function that is called once the set action is completetheAssetId
- the asset id to set the metadata totheNamespace
- the metadata namespacetheField
- the metadata field nametheValue
- the value to settheFieldType
- the field type (txt, bag, seq, etc). This param is optionaltheAction
- the action type (replace, add, delete, clearfield, replace_selected). This param is optionalpublic static void batchSetField(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback, int theAssetId, com.google.gwt.core.client.JsArrayString theNamespace, com.google.gwt.core.client.JsArrayString theField, com.google.gwt.core.client.JsArrayString theValue, com.google.gwt.core.client.JsArrayString theFieldType, com.google.gwt.core.client.JsArrayString theAction)
var anAssetId = 345345;
var aNamespaces = new Array();
var aFieldNames = new Array();
var aValues = new Array();
var aFieldTypes = new Array();
var anActions = new Array();
aNamespaces[0] = "http://mediabeacon.com/example/";
aFieldNames[0] = "testField";
aValues[0] = "first value";
aFieldTypes[0] = "Txt";
anActions[0] = "replace";
aNamespaces[1] = "http://mediabeacon.com/example/";
aFieldNames[1] = "sampleField";
aValues[1] = "another keyword";
aFieldTypes[1] = "Txt";
anActions[1] = "replace";
window.MBAPI.md.batchSetField(function(){}, anAssetId, aNamespaces, aFieldNames, aValues, aFieldTypes, anActions);
theCallback
- function to inform when donetheAssetId
- the asset id to set againsttheNamespace
- the namespacestheField
- the fieldstheValue
- values to settheFieldType
- the field type of the field (txt, bag, etc) (optional)theAction
- the action to perform (replace, delete, etc) (optional)public static void batchSetFieldByResolver(jb.gwt_main_modules.base_widgets.client.DefaultCallback theCallback, java.lang.String theResolverUrl, com.google.gwt.core.client.JsArrayString theNamespace, com.google.gwt.core.client.JsArrayString theField, com.google.gwt.core.client.JsArrayString theValue, com.google.gwt.core.client.JsArrayString theFieldType, com.google.gwt.core.client.JsArrayString theAction)
var aResolverString = asset://345345;
var aNamespaces = new Array();
var aFieldNames = new Array();
var aValues = new Array();
var aFieldTypes = new Array();
var anActions = new Array();
aNamespaces[0] = "http://mediabeacon.com/example/";
aFieldNames[0] = "testField";
aValues[0] = "first value";
aFieldTypes[0] = "Txt";
anActions[0] = "replace";
aNamespaces[1] = "http://mediabeacon.com/example/";
aFieldNames[1] = "sampleField";
aValues[1] = "another keyword";
aFieldTypes[1] = "Txt";
anActions[1] = "replace";
window.MBAPI.md.batchSetField(function(){}, aResolverString, aNamespaces, aFieldNames, aValues, aFieldTypes, anActions);
theCallback
- function to inform when donetheResolverUrl
- the resolver url to define selection to apply totheNamespace
- the namespacestheField
- the fieldstheValue
- values to settheFieldType
- the field type of the field (txt, bag, etc) (optional)theAction
- the action to perform (replace, delete, etc) (optional)public static final void showBulkEditDialog()
Copyright © 2023 MediaBeacon, Inc. All Rights Reserved.