Class DuraStoreRetrievalSource

    • Constructor Detail

      • DuraStoreRetrievalSource

        public DuraStoreRetrievalSource​(ContentStore store,
                                        List<String> spaces,
                                        boolean allSpaces)
    • Method Detail

      • getNextContentItem

        public ContentItem getNextContentItem()
        Description copied from interface: RetrievalSource
        Provides the next content item to be processed, cycles through all spaces as necessary. Returns null when there are no further content ids to process.
        Specified by:
        getNextContentItem in interface RetrievalSource
        Returns:
        the next content item to be processed
      • getNextSpace

        protected void getNextSpace()
      • getSourceProperties

        public Map<String,​String> getSourceProperties​(ContentItem contentItem)
        Description copied from interface: RetrievalSource
        Retrieves the Duracloud properties for the specified ContentItem.
        Specified by:
        getSourceProperties in interface RetrievalSource
        Parameters:
        contentItem - the file whose properties to retrieve
        Returns:
        the Map of Duracloud properties
      • getSourceChecksum

        public String getSourceChecksum​(ContentItem contentItem)
        Description copied from interface: RetrievalSource
        Provides the checksum of the specified source file based on the file's properties.
        Specified by:
        getSourceChecksum in interface RetrievalSource
        Parameters:
        contentItem - the file to consider
        Returns:
        MD5 checksum of the given file