Package org.ametys.core.upload
Interface UploadManager
- All Superinterfaces:
Component
- All Known Implementing Classes:
FSUploadManager
Manager for retrieving uploaded files.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUpload
(UserIdentity user, String id) Retrieves a previous file uploaded by an user.storeUpload
(UserIdentity user, String filename, InputStream is) Stores a file uploaded by an user.
-
Field Details
-
ROLE
Avalon role.
-
-
Method Details
-
storeUpload
Stores a file uploaded by an user.- Parameters:
user
- the user.filename
- the upload filename.is
- the upload data.- Returns:
- the upload.
- Throws:
IOException
- if an error occurs.
-
getUpload
Retrieves a previous file uploaded by an user.- Parameters:
user
- the user.id
- the upload id.- Returns:
- the upload.
- Throws:
NoSuchElementException
- if there is no upload for this parameters.
-