Class AmazonS3DocumentProcessUtility

  • Direct Known Subclasses:
    GenericDocumentProcess

    public class AmazonS3DocumentProcessUtility
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addAllMetaData​(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, org.apache.tika.metadata.Metadata metadata2)
      Adds available meta data to repository documetn
      protected void addRawMetadata​(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, com.amazonaws.services.s3.model.ObjectMetadata objectMetadata)  
      protected java.lang.String getDocumentURI​(S3Artifact s3Artifact)
      Constructs document URI for s3artifact
      protected S3Artifact getS3Artifact​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AmazonS3DocumentProcessUtility

        public AmazonS3DocumentProcessUtility()
    • 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.ManifoldCFException
        Adds available meta data to repository documetn
        Parameters:
        rd - repository document
        metadata2 -
        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)