public interface IAttachmentService
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Attachment attachment) |
void |
delete(long attachmentId) |
java.util.List<Attachment> |
find(java.lang.String creator) |
java.util.List<Attachment> |
find(java.lang.String creator,
java.lang.String filename) |
java.util.List<Attachment> |
findAll(int offset,
int maxresults) |
Attachment |
get(long attachmentId) |
Attachment |
get(java.lang.String guid) |
boolean |
isPersistenceIntoDatabaseRequired()
Boolean indicating whether or not attachment data is stored into the database.
|
Attachment |
save(Attachment attachment,
java.lang.String username,
javax.servlet.http.HttpServletRequest request)
Saves the metadata about the attachment to the database and persists the attachment to the
configured documentPersistenceStrategy store.
|
Attachment get(long attachmentId)
Attachment get(java.lang.String guid)
java.util.List<Attachment> find(java.lang.String creator)
java.util.List<Attachment> find(java.lang.String creator, java.lang.String filename)
java.util.List<Attachment> findAll(int offset, int maxresults)
Attachment save(Attachment attachment, java.lang.String username, javax.servlet.http.HttpServletRequest request)
attachment - Attachment to persistusername - username of the user uploading the documentrequest - HttpServlet request. Will be null with a data import operationvoid delete(Attachment attachment)
void delete(long attachmentId)
boolean isPersistenceIntoDatabaseRequired()
Copyright © 2019 Jasig. All Rights Reserved.