public class JSS3Manager extends JSBaseScriptableObject
| Constructor and Description |
|---|
JSS3Manager() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
jsFunction_copyAssetsWithPresignedUrl(java.lang.String thePresignedUrl,
java.lang.String theFileName) |
boolean |
jsFunction_copyObject(java.lang.String theCurrentObjectKey,
java.lang.String theNewObjectKey)
Copy an object in the current S3 Bucket
|
boolean |
jsFunction_copyObjectToAlternateBucket(java.lang.String theCurrentBucket,
java.lang.String theCurrentObjectKey,
java.lang.String theNewBucket,
java.lang.String theNewObjectKey)
Copy an object between buckets
|
int |
jsFunction_createPlaceholderWithObjectKey(java.lang.String theUsername,
java.lang.String theObjectKey,
java.lang.String theFileName,
java.lang.String theDestination) |
java.lang.String |
jsFunction_createXmpSyncedFile(java.lang.String theRelativePath,
java.lang.String theOutFilePath,
boolean thePutInBucket)
get a file from s3 and sync the xmp from the given place holder path
|
void |
jsFunction_deleteObject(java.lang.String theObjectKey) |
int |
jsFunction_doS3Upload(java.lang.String theUsername,
FileBase theFile,
java.lang.String theDestination)
Upload the file from the workflow to S3 and init placeholder
|
java.lang.String |
jsFunction_doS3UploadAsync(java.lang.String theUsername,
FileBase theFile,
java.lang.String theDestination)
Upload the file from the workflow to S3 and submit request to create a placeholder asset.
|
java.util.List |
jsFunction_getAwsRenditionKeyData(int theAssetID)
Returns the AWS form S3 Rendition Object Key as List
|
void |
jsFunction_getFilesFromS3(org.mozilla.javascript.NativeArray theObjectKeys)
pull s3 files down to the object key location
|
java.lang.String |
jsFunction_getObjectKey(java.lang.String thePath)
get the object key for the droplet with this path
|
long |
jsFunction_getObjectSize(java.lang.String theObjectKey) |
java.lang.String |
jsFunction_getPlaceHolderPathForKey(java.lang.String theKey,
java.lang.String theUsername)
get the path for the place holder from the object key
|
java.lang.String |
jsFunction_getS3FilePath(java.lang.String theAssetId,
boolean theSyncXmp)
Returns the absolute path to the cached file from S3
|
java.lang.String |
jsFunction_getS3Url(int theAssetId)
Gets a temporary S3 url for the given asset.
|
java.lang.String |
jsFunction_getTranscodingObjectKey(java.lang.String thePath,
java.lang.String theProfile)
get the object key for the droplet with this path and the given video profile.
|
java.lang.String |
jsFunction_moveAndSyncS3Objects(java.lang.String theUploadTime,
org.mozilla.javascript.NativeArray theObjectKeys,
java.lang.String theUsername,
int theTotal,
boolean theSkipArchives)
sync the assets from s3 to MB
|
boolean |
jsFunction_publishRenditionToS3(FileBase theFile,
java.lang.String thePresetName,
int thePrimaryAssetID)
Upload rendition file to S3.
|
void |
jsFunction_putObject(java.lang.String theKey,
IFileObject theFile) |
void |
jsFunction_syncMBtoS3(org.mozilla.javascript.NativeArray theAssetIds)
sync files in MB to s3
|
boolean |
jsFunction_unpublishRenditionFromS3(int theAssetID,
java.lang.String thePresetNames)
Unpublish rendition file from S3.
|
java.util.List |
jsFunction_unzipAndUpload(java.lang.String theTempFileName)
Unzipping the files that are already stored in the m-pushtodam folder is performed based on the filename.
|
boolean |
jsFunction_uploadWithToken(java.lang.String theAccessId,
java.lang.String theAccessSecret,
java.lang.String theSessionToken,
java.lang.String theBucket,
java.lang.String theObjectKey,
java.lang.String theAssetPath)
Deprecated.
|
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 java.lang.String jsFunction_getS3Url(int theAssetId)
theAssetId - the asset id to use.@Deprecated
public boolean jsFunction_uploadWithToken(java.lang.String theAccessId,
java.lang.String theAccessSecret,
java.lang.String theSessionToken,
java.lang.String theBucket,
java.lang.String theObjectKey,
java.lang.String theAssetPath)
theAccessId - the temp access idtheAccessSecret - the temp secrettheSessionToken - the required session tokentheBucket - the bucket nametheObjectKey - the object key(file path in bucket)theAssetPath - the file to be uploadedpublic int jsFunction_doS3Upload(java.lang.String theUsername,
FileBase theFile,
java.lang.String theDestination)
throws jb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInException
theUsername - the upload usertheFile - the file being uploadedtheDestination - the destination folderjb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInExceptionpublic java.lang.String jsFunction_copyAssetsWithPresignedUrl(java.lang.String thePresignedUrl,
java.lang.String theFileName)
public int jsFunction_createPlaceholderWithObjectKey(java.lang.String theUsername,
java.lang.String theObjectKey,
java.lang.String theFileName,
java.lang.String theDestination)
throws jb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInException
jb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInExceptionpublic java.lang.String jsFunction_doS3UploadAsync(java.lang.String theUsername,
FileBase theFile,
java.lang.String theDestination)
throws jb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInException
theUsername - the upload usertheFile - the file being uploadedtheDestination - the destination folderjb.gwt_main_modules.base_widgets.client.exceptions.NotLoggedInExceptionpublic boolean jsFunction_publishRenditionToS3(FileBase theFile, java.lang.String thePresetName, int thePrimaryAssetID) throws com.brightech.xmp.model.xmlmodel.MalformedXmpFieldException
theFile - the file being uploadedthePresetName - the preset Name used for generating object ID and logging metricsthePrimaryAssetID - the original asset ID used for generating object ID and logging metricscom.brightech.xmp.model.xmlmodel.MalformedXmpFieldExceptionpublic boolean jsFunction_unpublishRenditionFromS3(int theAssetID,
java.lang.String thePresetNames)
throws com.brightech.xmp.model.xmlmodel.MalformedXmpFieldException
theAssetID - thePresetNames - com.brightech.xmp.model.xmlmodel.MalformedXmpFieldExceptionpublic java.util.List jsFunction_getAwsRenditionKeyData(int theAssetID)
theAssetID - the asset for which Rendition Object Key requiredpublic java.lang.String jsFunction_moveAndSyncS3Objects(java.lang.String theUploadTime,
org.mozilla.javascript.NativeArray theObjectKeys,
java.lang.String theUsername,
int theTotal,
boolean theSkipArchives)
theUploadTime - the progressIdtheObjectKeys - the object keystheUsername - the usertheTotal - the total files in the uploadtheSkipArchives - should we sync archivespublic java.lang.String jsFunction_getObjectKey(java.lang.String thePath)
thePath - the droplets file pathpublic java.lang.String jsFunction_getTranscodingObjectKey(java.lang.String thePath,
java.lang.String theProfile)
thePath - the droplets file paththeProfile - the video profilepublic java.lang.String jsFunction_getPlaceHolderPathForKey(java.lang.String theKey,
java.lang.String theUsername)
theKey - the object keytheUsername - the user namepublic void jsFunction_getFilesFromS3(org.mozilla.javascript.NativeArray theObjectKeys)
theObjectKeys - public void jsFunction_syncMBtoS3(org.mozilla.javascript.NativeArray theAssetIds)
theAssetIds - public boolean jsFunction_copyObject(java.lang.String theCurrentObjectKey,
java.lang.String theNewObjectKey)
theCurrentObjectKey - existing object keytheNewObjectKey - target object key, to be copied topublic boolean jsFunction_copyObjectToAlternateBucket(java.lang.String theCurrentBucket,
java.lang.String theCurrentObjectKey,
java.lang.String theNewBucket,
java.lang.String theNewObjectKey)
theCurrentBucket - Source bucket nametheCurrentObjectKey - Source object key in source buckettheNewBucket - Target bucket nametheNewObjectKey - Target object key in target bucketpublic long jsFunction_getObjectSize(java.lang.String theObjectKey)
theObjectKey - public void jsFunction_deleteObject(java.lang.String theObjectKey)
public void jsFunction_putObject(java.lang.String theKey,
IFileObject theFile)
public java.lang.String jsFunction_getS3FilePath(java.lang.String theAssetId,
boolean theSyncXmp)
theAssetId - The asset IDpublic java.lang.String jsFunction_createXmpSyncedFile(java.lang.String theRelativePath,
java.lang.String theOutFilePath,
boolean thePutInBucket)
theRelativePath - the placeholdertheOutFilePath - the destination filethePutInBucket - should we push the file back to the bucket with the relative path as its keypublic java.util.List jsFunction_unzipAndUpload(java.lang.String theTempFileName)
theTempFileName - Name of the zip file which needs to be extractedCopyright © 2026 MediaBeacon, Inc. All Rights Reserved.