public class JSS3Manager extends JSBaseScriptableObject
Constructor and Description |
---|
JSS3Manager() |
Modifier and Type | Method and Description |
---|---|
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
|
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.
|
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
|
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_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, 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, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, 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, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public 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.NotLoggedInException
public 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.NotLoggedInException
public 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 keyCopyright © 2023 MediaBeacon, Inc. All Rights Reserved.