Package ch.tocco.nice2.web.core.api
Interface UploadService
- All Known Implementing Classes:
UploadServiceImpl
public interface UploadService
-
Method Summary
Modifier and TypeMethodDescriptiongetBinaryByUploadUuid
(UUID uuid) Same asgetUpload(java.lang.String)
but instead of passing a uri the uuid of the upload will be passed.Returns anUpload
containing the uploaded file.
-
Method Details
-
getUpload
Returns anUpload
containing the uploaded file.- 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
Same asgetUpload(java.lang.String)
but instead of passing a uri the uuid of the upload will be passed.- Parameters:
uuid
- The uuid of theTemp_upload
entity- Returns:
- an
Binary
representing the requested file. - Throws:
UploadServiceException
- if the file can't be found.
-