Package org.ametys.core.upload
Interface UploadManager
-
- All Known Implementing Classes:
FSUploadManager
public interface UploadManager
Manager for retrieving uploaded files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Upload
getUpload(UserIdentity user, String id)
Retrieves a previous file uploaded by an user.Upload
storeUpload(UserIdentity user, String filename, InputStream is)
Stores a file uploaded by an user.
-
-
-
Method Detail
-
storeUpload
Upload storeUpload(UserIdentity user, String filename, InputStream is) throws IOException
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
Upload getUpload(UserIdentity user, String id) throws NoSuchElementException
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.
-
-