public class S3Config extends LegacyCoreConfig
Modifier and Type | Field and Description |
---|---|
protected com.amazonaws.services.s3.AmazonS3 |
amazonS3 |
protected java.lang.String |
awsAccessKey |
protected java.lang.String |
awsRegion |
protected java.lang.String |
awsSecretAccessKey |
protected java.lang.String |
filePathAttrName |
protected java.lang.String |
objectNameAttrName |
protected java.lang.String |
objectTypeAttrName |
protected java.lang.String |
s3BucketName |
annotationConfig, config, dictionaryService, extensionMap, mimeTypeToFileExtension, objectTypeConfig, objectTypesByRepoName, redactionConfig, wsCoreConfig
Modifier | Constructor and Description |
---|---|
protected |
S3Config() |
|
S3Config(org.apache.commons.configuration.HierarchicalConfiguration config) |
Modifier and Type | Method and Description |
---|---|
com.amazonaws.services.s3.AmazonS3 |
getAmazonS3()
Returns the AmazonS3 client
|
java.lang.String |
getFilePathAttrName() |
java.lang.String |
getObjectNameAttrName()
The name of the solr attribute that is used to store the object name.
|
java.lang.String |
getObjectTypeAttrName() |
java.lang.String |
getS3BucketName()
Returns the S3 bucket name
|
void |
init()
Verifies the core environment, while initializing properties and tables with environment data.
|
void |
setObjectNameAttrName(java.lang.String objectNameAttrName) |
getAnnotationConfig, getExtensionMap, getMimeTypeToFileExtension, getObjectTypeConfig, getObjectTypesByRepoName, getRedactionConfig, getWSCoreConfig, initContentFormatMaps, initObjectTypes, initWSCoreConfig, setAnnotationConfig, setDictionaryService, setRedactionConfig
protected com.amazonaws.services.s3.AmazonS3 amazonS3
@Value(value="${aws.region}") protected java.lang.String awsRegion
@Value(value="${aws.s3.bucket.name}") protected java.lang.String s3BucketName
@Value(value="${s3.objectTypeAttrName}") protected java.lang.String objectTypeAttrName
@Value(value="${s3.objectNameAttrName}") protected java.lang.String objectNameAttrName
@Value(value="${s3.filePathAttrName}") protected java.lang.String filePathAttrName
@Value(value="${aws.accessKey}") protected java.lang.String awsAccessKey
@Value(value="${aws.secretAccessKey}") protected java.lang.String awsSecretAccessKey
protected S3Config()
public S3Config(org.apache.commons.configuration.HierarchicalConfiguration config)
public void init() throws OCException
LegacyCoreConfig
init
in interface ILegacyCoreConfig
init
in class LegacyCoreConfig
OCException
public java.lang.String getObjectNameAttrName()
public void setObjectNameAttrName(java.lang.String objectNameAttrName)
public com.amazonaws.services.s3.AmazonS3 getAmazonS3()
public java.lang.String getS3BucketName()
public java.lang.String getObjectTypeAttrName()
public java.lang.String getFilePathAttrName()