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
ConstructorDescriptionUploadServiceImpl
(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 anUpload
containing the uploaded file.
-
Constructor Details
-
UploadServiceImpl
public UploadServiceImpl(Context context, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
getUpload
Description copied from interface:UploadService
Returns anUpload
containing the uploaded file.- Specified by:
getUpload
in 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:UploadService
Same asUploadService.getUpload(java.lang.String)
but instead of passing a uri the uuid of the upload will be passed.- Specified by:
getBinaryByUploadUuid
in interfaceUploadService
- Parameters:
uuid
- The uuid of theTemp_upload
entity- Returns:
- an
Binary
representing the requested file. - Throws:
UploadServiceException
- if the file can't be found.
-