Package org.cxbox.core.file.service
Class CxboxFileServiceSimple
- java.lang.Object
-
- org.cxbox.core.file.service.CxboxFileServiceSimple
-
- All Implemented Interfaces:
CxboxFileService
@Service @ConditionalOnMissingBean(CxboxFileService.class) public class CxboxFileServiceSimple extends Object implements CxboxFileService
-
-
Field Summary
Fields Modifier and Type Field Description static StringUNIQUE_PREFIX_SEPARATOR
-
Constructor Summary
Constructors Constructor Description CxboxFileServiceSimple(String fileFolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileDownloadDtodownload(@NonNull String id, String source)voidremove(@NonNull String id, String source)Stringupload(@NonNull FileDownloadDto file, String source)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cxbox.core.file.service.CxboxFileService
upload
-
-
-
-
Field Detail
-
UNIQUE_PREFIX_SEPARATOR
public static final String UNIQUE_PREFIX_SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CxboxFileServiceSimple
public CxboxFileServiceSimple(String fileFolder)
-
-
Method Detail
-
upload
public String upload(@NonNull @NonNull FileDownloadDto file, @Nullable String source)
- Specified by:
uploadin interfaceCxboxFileService- Parameters:
file- entity to be savedsource- (deprecated)- Returns:
- unique file id
-
download
public FileDownloadDto download(@NonNull @NonNull String id, @Nullable String source)
- Specified by:
downloadin interfaceCxboxFileService- Parameters:
id- unique file id, that was returned by upload(...) methodsource- (deprecated)- Returns:
- file entity
-
remove
public void remove(@NonNull @NonNull String id, @Nullable String source)- Specified by:
removein interfaceCxboxFileService- Parameters:
id- unique file id, that was returned by upload(...) methodsource- (deprecated)
-
-