@Service(value="cuba_FileStorageService") public class FileStorageServiceBean extends java.lang.Object implements FileStorageService
Modifier and Type | Field and Description |
---|---|
protected FileStorageAPI |
fileStorageAPI |
NAME
Constructor and Description |
---|
FileStorageServiceBean() |
Modifier and Type | Method and Description |
---|---|
boolean |
fileExists(FileDescriptor fileDescr) |
byte[] |
loadFile(FileDescriptor fileDescr) |
void |
removeFile(FileDescriptor fileDescr) |
void |
saveFile(FileDescriptor fileDescr,
byte[] data) |
@Inject protected FileStorageAPI fileStorageAPI
public void saveFile(FileDescriptor fileDescr, byte[] data) throws FileStorageException
saveFile
in interface FileStorageService
FileStorageException
public void removeFile(FileDescriptor fileDescr) throws FileStorageException
removeFile
in interface FileStorageService
FileStorageException
public byte[] loadFile(FileDescriptor fileDescr) throws FileStorageException
loadFile
in interface FileStorageService
FileStorageException
public boolean fileExists(FileDescriptor fileDescr) throws FileStorageException
fileExists
in interface FileStorageService
FileStorageException