Package ch.tocco.nice2.web.core.impl
Class UploadServiceImpl
java.lang.Object
ch.tocco.nice2.web.core.impl.UploadServiceImpl
- All Implemented Interfaces:
UploadService
-
Constructor Summary
ConstructorsConstructorDescriptionUploadServiceImpl(Context context, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetBinaryByUploadUuid(UUID uuid) Same asUploadService.getUpload(java.lang.String)but instead of passing a uri the uuid of the upload will be passed.Returns anUploadcontaining the uploaded file.
-
Constructor Details
-
UploadServiceImpl
public UploadServiceImpl(Context context, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
getUpload
Description copied from interface:UploadServiceReturns anUploadcontaining the uploaded file.- Specified by:
getUploadin interfaceUploadService- Parameters:
id- The id of the upload (which has probably been returned by the UploadServlet).- Returns:
- an
Upload. - Throws:
UploadServiceException- if something goes wrong.
-
getBinaryByUploadUuid
Description copied from interface:UploadServiceSame asUploadService.getUpload(java.lang.String)but instead of passing a uri the uuid of the upload will be passed.- Specified by:
getBinaryByUploadUuidin interfaceUploadService- Parameters:
uuid- The uuid of theTemp_uploadentity- Returns:
- an
Binaryrepresenting the requested file. - Throws:
UploadServiceException- if the file can't be found.
-