Interface ContentDataFactory

  • All Known Implementing Classes:
    FilesystemContentDataFactory

    public interface ContentDataFactory
    Build a ContentData out of a given ContentStore and a given File within that store
    Since:
    4.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.alfresco.service.cmr.repository.ContentData createContentData​(org.alfresco.repo.content.ContentStore store, java.io.File contentFile)
      Create a ContentData by combining the given ContentStore's root location and the File's path within that store.
    • Method Detail

      • createContentData

        org.alfresco.service.cmr.repository.ContentData createContentData​(org.alfresco.repo.content.ContentStore store,
                                                                          java.io.File contentFile)
        Create a ContentData by combining the given ContentStore's root location and the File's path within that store. The given file must therefore be accessible within the content store's configured root location. The encoding and mimetype will be guessed from the given file.
        Parameters:
        store - The ContentStore in which the file should be
        contentFile - The File to check
        Returns:
        the constructed ContentData