Interface FileStorageService


  • public interface FileStorageService
    Provides access to local or remote file.
    Author:
    P.Piernik
    • Method Detail

      • storeFile

        java.net.URI storeFile​(byte[] content,
                               java.lang.String ownerType,
                               java.lang.String ownerId)
                        throws pl.edu.icm.unity.exceptions.EngineException
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • storeFileInWorkspace

        pl.edu.icm.unity.base.file.FileData storeFileInWorkspace​(byte[] content,
                                                                 java.lang.String workspacePath)
                                                          throws pl.edu.icm.unity.exceptions.EngineException
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • readFileFromWorkspace

        pl.edu.icm.unity.base.file.FileData readFileFromWorkspace​(java.lang.String workspacePath)
                                                           throws pl.edu.icm.unity.exceptions.EngineException
        Throws:
        pl.edu.icm.unity.exceptions.EngineException