public class JSVersionManager extends JSBaseScriptableObject
Constructor and Description |
---|
JSVersionManager() |
Modifier and Type | Method and Description |
---|---|
int |
(JavaScript Function) 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[] |
(JavaScript Function) 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 |
(JavaScript Function) makeVersionOf(int theParentAssetId,
int theChildAssetId,
java.lang.String theVersionName)
Link the two assets as if one is a version of the other.
|
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, getExternalArrayData, getExternalArrayLength, 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, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public int (JavaScript Function) 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[] (JavaScript Function) 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 (JavaScript Function) makeVersionOf(int theParentAssetId, int theChildAssetId, java.lang.String theVersionName)
theParentAssetId
- the "primary" assettheChildAssetId
- the "child" assettheVersionName
- what is the version called?Copyright © 2017 MediaBeacon, Inc. All Rights Reserved.