Class MinIoStorageService

  • All Implemented Interfaces:
    IStorageService

    @Service
    @ConditionalOnProperty(value="nae.storage.minio.enabled",
                           havingValue="true")
    public class MinIoStorageService
    extends java.lang.Object
    implements IStorageService
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MINIO_TYPE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected io.minio.MinioClient client​(java.lang.String host)  
      Storage createStorage​(Data data)  
      void delete​(StorageField<?> field, java.lang.String path)  
      java.io.InputStream get​(StorageField<?> field, java.lang.String path)  
      static java.lang.String getBucketOrDefault​(java.lang.String bucket)  
      java.lang.String getPath​(java.lang.String caseId, java.lang.String fieldId, java.lang.String name)  
      java.lang.String getPreviewPath​(java.lang.String caseId, java.lang.String fieldId, java.lang.String name)  
      java.lang.String getType()  
      boolean save​(StorageField<?> field, java.lang.String path, java.io.InputStream stream)  
      boolean save​(StorageField<?> field, java.lang.String path, org.springframework.web.multipart.MultipartFile file)  
      void setProperties​(MinIoProperties properties)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait