public class JSVersionManager extends JSBaseScriptableObject
| Constructor and Description |
|---|
JSVersionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
jsFunction_createNewVersion(int theSourceAssetId,
IFileObject theNewVersion,
java.lang.String theComment,
boolean theIsReplaceName,
boolean theIsReplaceMetadata)
Copy theSourceAsset to the Versions folder, rename with version, and refresh the droplet in memory with new information.
|
int |
jsFunction_getVersionCount(int theAssetId,
java.lang.String theRootDirectory,
org.mozilla.javascript.NativeArray theCategoriesArray)
Returns the number of versions for the specified asset, root directory, and version categories.
|
ManagedFile[] |
jsFunction_getVersions(int theAssetId,
org.mozilla.javascript.NativeArray theCategoriesArray,
int theVersionsMax)
Returns the assets that are versions for the specified asset, root directory, and version categories.
|
void |
jsFunction_makeVersionOf(int theParentAssetId,
int theChildAssetId,
java.lang.String theVersionName)
Link the two assets as if one is a version of the other.
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, 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, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, 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, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic int jsFunction_getVersionCount(int theAssetId,
java.lang.String theRootDirectory,
org.mozilla.javascript.NativeArray theCategoriesArray)
theAssetId - the specified asset's asset idtheRootDirectory - the root directory (commonly "")theCategoriesArray - a string array of version categories: "Peers", "Named", "Parents", "Children", "Self"public ManagedFile[] jsFunction_getVersions(int theAssetId, org.mozilla.javascript.NativeArray theCategoriesArray, int theVersionsMax)
theAssetId - the specified asset's asset idtheCategoriesArray - a string array of version categories: "Peers", "Named", "Parents", "Children", "Self"theVersionsMax - the maximum number of versions to returnpublic void jsFunction_makeVersionOf(int theParentAssetId,
int theChildAssetId,
java.lang.String theVersionName)
theParentAssetId - the "primary" assettheChildAssetId - the "child" assettheVersionName - what is the version called?public void jsFunction_createNewVersion(int theSourceAssetId,
IFileObject theNewVersion,
java.lang.String theComment,
boolean theIsReplaceName,
boolean theIsReplaceMetadata)
theSourceAssetId - the current version idCopyright © 2026 MediaBeacon, Inc. All Rights Reserved.