Class CxboxFileServiceSimple

java.lang.Object
org.cxbox.core.file.service.CxboxFileServiceSimple
All Implemented Interfaces:
CxboxFileService

public class CxboxFileServiceSimple extends Object implements CxboxFileService
  • Field Details

  • Constructor Details

    • CxboxFileServiceSimple

      public CxboxFileServiceSimple(String fileFolder)
  • Method Details

    • upload

      public String upload(@NonNull @NonNull FileDownloadDto file, @Nullable String source)
      Specified by:
      upload in interface CxboxFileService
      Parameters:
      file - entity to be saved
      source - (deprecated)
      Returns:
      unique file id
    • download

      public FileDownloadDto download(@NonNull @NonNull String id, @Nullable String source)
      Specified by:
      download in interface CxboxFileService
      Parameters:
      id - unique file id, that was returned by upload(...) method
      source - (deprecated)
      Returns:
      file entity
    • remove

      public void remove(@NonNull @NonNull String id, @Nullable String source)
      Specified by:
      remove in interface CxboxFileService
      Parameters:
      id - unique file id, that was returned by upload(...) method
      source - (deprecated)