Class FileService

java.lang.Object
cn.sparrow.permission.service.FileService
@Service public class FileServiceextends Object
  • Constructor Details

    • FileService

      @Autowired public  FileService(StorageService storageService)
  • Method Details

    • dowload

      @PreAuthorize("") public  org.springframework.core.io.Resource  dowload(String id) throws Exception
      Throws:
      Exception
    • share

      @PreAuthorize("") public  void  share(String fileId, FilePermission filePermission)
    • forward

      @PreAuthorize("") public  void  forward(String fileId)
    • addPermissions

      public  void  addPermissions(FilePermission filePermission)
    • delPermissions

      public  void  delPermissions(FilePermission filePermission)
    • upload

      public  String  upload(org.springframework.web.multipart.MultipartFile file)