public class JSPreviewManager extends JSBaseScriptableObject
Constructor and Description |
---|
JSPreviewManager() |
Modifier and Type | Method and Description |
---|---|
void |
(JavaScript Function) addRequest(java.lang.String theFormat,
int theAssetId,
User theUser,
java.lang.String theOutputPath,
java.lang.String theScale,
java.lang.String theResolution,
java.lang.String theColorspace)
Deprecated.
use (JavaScript Function) addRequestForAsset(int theAssetId, User theUser, Parameters theParameters) instead
|
int |
(JavaScript Function) addRequestForAsset(int theAssetId,
User theUser,
Parameters theParameters)
Add loading dock request to queue.
|
java.lang.String |
(JavaScript Function) addRequestForFile(java.lang.String theFilePath,
java.lang.String theOutPath,
java.lang.String theFormat,
boolean theWait)
Add a request for any file to be converted to a new format.
|
java.lang.String |
(JavaScript Function) addRequestForFileTempOutput(java.lang.String theFilePath,
java.lang.String theFormat,
boolean theWait)
Add a request for any file to be converted to a new format and automatically create a temporary output path.
|
void |
(JavaScript Function) addScriptRequest(ManagedFile theAsset,
java.lang.String theOutputPath,
java.lang.String theScriptPath,
java.lang.Boolean theEditsOriginal,
Parameters theParameters)
Add a request to have the preview system execute a script asynchronously.
|
void |
(JavaScript Function) regeneratePreview(ManagedFile theFile)
Regenerate previews for a specific asset
|
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 void (JavaScript Function) regeneratePreview(ManagedFile theFile) throws FileSystemException
theFile
- the file to regenerate previews forFileSystemException
- exception throw if issue w/filepublic void (JavaScript Function) addRequest(java.lang.String theFormat, int theAssetId, User theUser, java.lang.String theOutputPath, java.lang.String theScale, java.lang.String theResolution, java.lang.String theColorspace)
theFormat
- the format, e.g. "JPEG".theAssetId
- the asset ID, an integer.theUser
- the user object.theOutputPath
- the output path If a custom output path is defined, the request will not appear in the loading dock.theScale
- the scale to convert to. E.g. "50%x50%".theResolution
- the resolution to convert to. E.g. "72dpi", "300dpi", or "350x400" (pixels).theColorspace
- the colorspace to convert to. E.g. "RGB".public void (JavaScript Function) addScriptRequest(ManagedFile theAsset, java.lang.String theOutputPath, java.lang.String theScriptPath, java.lang.Boolean theEditsOriginal, Parameters theParameters)
theAsset
- The original asset to generate a preview of.theOutputPath
- The file to output the preview to.theScriptPath
- The script to run.theEditsOriginal
- Does the script edit the original asset?theParameters
- Additional optional parameters to pass to the script worker (these paramters do not necessarily
propagate to the script itself).public int (JavaScript Function) addRequestForAsset(int theAssetId, User theUser, Parameters theParameters)
theAssetId
- the asset IDtheUser
- the usertheParameters
- the parameters for the conversionpublic java.lang.String (JavaScript Function) addRequestForFile(java.lang.String theFilePath, java.lang.String theOutPath, java.lang.String theFormat, boolean theWait) throws java.net.MalformedURLException
theFilePath
- Full path of file to be convertedtheOutPath
- Full path of conversion outputtheFormat
- Format to convert totheWait
- true
to wait for processing to complete, false
otherwisejava.net.MalformedURLException
- Error creating downoad urlpublic java.lang.String (JavaScript Function) addRequestForFileTempOutput(java.lang.String theFilePath, java.lang.String theFormat, boolean theWait) throws java.io.IOException
theFilePath
- Full path of file to be convertedtheFormat
- Full path of conversion outputtheWait
- true
to wait for processing to complete, false
otherwisejava.io.IOException
- Error creating temp file or download urlCopyright © 2017 MediaBeacon, Inc. All Rights Reserved.