Package io.tesler.core.service.impl
Class BaseFileService
- java.lang.Object
-
- io.tesler.core.service.impl.BaseFileService
-
- All Implemented Interfaces:
FileService
@Service public class BaseFileService extends Object implements FileService
-
-
Constructor Summary
Constructors Constructor Description BaseFileService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getContent(FileEntity entity)
void
remove(Long fileId)
FileEntity
save(String name, String type, boolean temporary, byte[] content)
FileEntity
save(String name, String type, boolean temporary, byte[] content, LOV storageType)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.tesler.core.service.FileService
saveUpload
-
-
-
-
Field Detail
-
jpaDao
protected final JpaDao jpaDao
-
-
Method Detail
-
save
public FileEntity save(String name, String type, boolean temporary, byte[] content)
- Specified by:
save
in interfaceFileService
-
save
public FileEntity save(String name, String type, boolean temporary, byte[] content, LOV storageType)
- Specified by:
save
in interfaceFileService
-
getContent
public byte[] getContent(FileEntity entity)
- Specified by:
getContent
in interfaceFileService
-
remove
public void remove(Long fileId)
- Specified by:
remove
in interfaceFileService
-
-