Package mops.businesslogic.directory
Class ZipServiceImpl
- java.lang.Object
-
- mops.businesslogic.directory.ZipServiceImpl
-
- All Implemented Interfaces:
ZipService
@Service public class ZipServiceImpl extends java.lang.Object implements ZipService
Zips content from File Storage.
-
-
Constructor Summary
Constructors Constructor Description ZipServiceImpl(DirectoryService directoryService, FileService fileService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
zipDirectory(Account account, long dirId, java.io.OutputStream outputStream)
Zips a directory and all its contents.
-
-
-
Constructor Detail
-
ZipServiceImpl
public ZipServiceImpl(DirectoryService directoryService, FileService fileService)
-
-
Method Detail
-
zipDirectory
public void zipDirectory(Account account, long dirId, java.io.OutputStream outputStream) throws MopsException
Zips a directory and all its contents.- Specified by:
zipDirectory
in interfaceZipService
- Parameters:
account
- user credentialsdirId
- id of the directory to be zippedoutputStream
- output stream to write the zipped contents to- Throws:
MopsException
-
-