@Service(value="cuba_LocalFileExchangeService") public class LocalFileExchangeServiceBean extends java.lang.Object implements LocalFileExchangeService
Modifier and Type | Field and Description |
---|---|
protected DataManager |
dataManager |
protected FileStorageAPI |
fileStorage |
NAME
Constructor and Description |
---|
LocalFileExchangeServiceBean() |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
downloadFile(FileDescriptor fileDescriptor) |
void |
uploadFile(java.io.InputStream inputStream,
FileDescriptor fileDescriptor) |
@Inject protected FileStorageAPI fileStorage
@Inject protected DataManager dataManager
public void uploadFile(java.io.InputStream inputStream, FileDescriptor fileDescriptor) throws FileStorageException
uploadFile
in interface LocalFileExchangeService
FileStorageException
public java.io.InputStream downloadFile(FileDescriptor fileDescriptor) throws FileStorageException
downloadFile
in interface LocalFileExchangeService
FileStorageException