类 FileServiceImpl

java.lang.Object
plus.hiver.common.base.HiverBaseServiceImpl<File,Long,FileDao>
plus.hiver.rustfs.serviceimpl.FileServiceImpl
所有已实现的接口:
plus.hiver.common.base.HiverBaseService<File,Long>, FileService

@Service @CacheConfig(cacheNames="file") public class FileServiceImpl extends plus.hiver.common.base.HiverBaseServiceImpl<File,Long,FileDao> implements FileService
文件管理接口实现

尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负

作者:
Yazhi Li
  • 字段概要

    从类继承的字段 plus.hiver.common.base.HiverBaseServiceImpl

    dao
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    清空回收站
    void
    collect(Long id, Boolean getCurrUser)
    收藏
    void
    copy(Long id, Boolean getCurrUser)
    创建副本
    void
    delete(Long[] ids, Boolean getCurrUser)
    删除
    void
    通过categoryId删除
    get(Long id)
     
    org.springframework.data.domain.Page<File>
    getFileList(File file, plus.hiver.common.vo.SearchVo searchVo, plus.hiver.common.vo.PageVo pageVo, Boolean getCurrUser)
    多条件获取列表
    void
    rename(Long id, String newKey, String newTitle, Boolean getCurrUser)
    重命名
    void
    trash(Long id, Boolean getCurrUser)
    回收站操作

    从类继承的方法 plus.hiver.common.base.HiverBaseServiceImpl

    count, delete, delete, delete, deleteAllById, findAll, findAll, findAll, findById, flush, getAll, getTotalCount, save, saveOrUpdateAll, update

    从类继承的方法 java.lang.Object

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

    从接口继承的方法 plus.hiver.common.base.HiverBaseService

    count, delete, delete, delete, deleteAllById, findAll, findAll, findAll, findById, flush, getAll, getTotalCount, save, saveOrUpdateAll, update
  • 构造器详细资料

    • FileServiceImpl

      public FileServiceImpl(FileDao dao)
  • 方法详细资料

    • get

      @Cacheable(key="#id") public File get(Long id)
      指定者:
      get 在接口中 plus.hiver.common.base.HiverBaseService<File,Long>
      覆盖:
      get 在类中 plus.hiver.common.base.HiverBaseServiceImpl<File,Long,FileDao>
    • getFileList

      public org.springframework.data.domain.Page<File> getFileList(File file, plus.hiver.common.vo.SearchVo searchVo, plus.hiver.common.vo.PageVo pageVo, Boolean getCurrUser)
      从接口复制的说明: FileService
      多条件获取列表
      指定者:
      getFileList 在接口中 FileService
      参数:
      file - 查询条件
      searchVo - 搜索条件
      pageVo - 分页条件
      getCurrUser - 是否获取当前用户
      返回:
      结果
    • trash

      public void trash(Long id, Boolean getCurrUser)
      从接口复制的说明: FileService
      回收站操作
      指定者:
      trash 在接口中 FileService
      参数:
      id - 主键
      getCurrUser - 是否获取当前用户
    • collect

      public void collect(Long id, Boolean getCurrUser)
      从接口复制的说明: FileService
      收藏
      指定者:
      collect 在接口中 FileService
      参数:
      id - 主键
      getCurrUser - 是否获取当前用户
    • rename

      @CacheEvict(key="#id") public void rename(Long id, String newKey, String newTitle, Boolean getCurrUser)
      从接口复制的说明: FileService
      重命名
      指定者:
      rename 在接口中 FileService
      参数:
      id - 主键
      newKey - 新key
      newTitle - 新标题
      getCurrUser - 是否获取当前用户
    • copy

      public void copy(Long id, Boolean getCurrUser)
      从接口复制的说明: FileService
      创建副本
      指定者:
      copy 在接口中 FileService
      参数:
      id - 主键
      getCurrUser - 是否获取当前用户
    • delete

      public void delete(Long[] ids, Boolean getCurrUser)
      从接口复制的说明: FileService
      删除
      指定者:
      delete 在接口中 FileService
      参数:
      ids - 主键数组
      getCurrUser - 是否获取当前用户
    • clearTrash

      public void clearTrash()
      从接口复制的说明: FileService
      清空回收站
      指定者:
      clearTrash 在接口中 FileService
    • deleteByCategoryId

      public void deleteByCategoryId(Long categoryId)
      从接口复制的说明: FileService
      通过categoryId删除
      指定者:
      deleteByCategoryId 在接口中 FileService
      参数:
      categoryId - 分类id