@Override
public String createEntityExtractUrl(DataStore store, String installPath, ImageFormat format, DataObject dataObject) {
// for S3, no need to do anything, just return template url for
// extract template. but we need to set object acl as public_read to
// make the url accessible
S3TO s3 = (S3TO)getStoreTO(store);
String key = installPath;
s_logger.info("Generating pre-signed s3 entity extraction URL.");
Date expiration = new Date();
long milliSeconds = expiration.getTime();
// get extract url expiration interval set in global configuration (in seconds)
String urlExpirationInterval = _configDao.getValue(Config.ExtractURLExpirationInterval.toString());
int expirationInterval = NumbersUtil.parseInt(urlExpirationInterval, 14400);
milliSeconds += 1000 * expirationInterval; // expired after configured interval (in milliseconds)
expiration.setTime(milliSeconds);
URL s3url = S3Utils.generatePresignedUrl(s3, s3.getBucketName(), key, expiration);
s_logger.info("Pre-Signed URL = " + s3url.toString());
return s3url.toString();
}