Class AmazonS3DocumentProcessUtility
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.amazons3.AmazonS3DocumentProcessUtility
-
- Direct Known Subclasses:
GenericDocumentProcess
public class AmazonS3DocumentProcessUtility extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AmazonS3DocumentProcessUtility()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAllMetaData(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, org.apache.tika.metadata.Metadata metadata2)Adds available meta data to repository documetnprotected voidaddRawMetadata(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, com.amazonaws.services.s3.model.ObjectMetadata objectMetadata)protected java.lang.StringgetDocumentURI(S3Artifact s3Artifact)Constructs document URI for s3artifactprotected S3ArtifactgetS3Artifact(java.lang.String documentIdentifier)Get the s3artifact (document) using the document identifier ( bucket,key)protected java.lang.String[]getUsers(java.util.Set<com.amazonaws.services.s3.model.Grant> grants)Get users has the the access the to artifact
-
-
-
Method Detail
-
getUsers
protected java.lang.String[] getUsers(java.util.Set<com.amazonaws.services.s3.model.Grant> grants)
Get users has the the access the to artifact- Parameters:
grants- available for artifact- Returns:
-
getDocumentURI
protected java.lang.String getDocumentURI(S3Artifact s3Artifact)
Constructs document URI for s3artifact- Parameters:
s3Artifact-- Returns:
-
addAllMetaData
protected void addAllMetaData(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, org.apache.tika.metadata.Metadata metadata2) throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionAdds available meta data to repository documetn- Parameters:
rd- repository documentmetadata2-- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getS3Artifact
protected S3Artifact getS3Artifact(java.lang.String documentIdentifier) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Get the s3artifact (document) using the document identifier ( bucket,key)- Parameters:
documentIdentifier-- Returns:
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
addRawMetadata
protected void addRawMetadata(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, com.amazonaws.services.s3.model.ObjectMetadata objectMetadata)
-
-