public interface FileUploadRepository<DS extends tigase.db.DataSource>
extends tigase.db.DataSourceAware<DS>
| Modifier and Type | Interface and Description |
|---|---|
static class |
FileUploadRepository.Slot |
| Modifier and Type | Method and Description |
|---|---|
FileUploadRepository.Slot |
allocateSlot(tigase.xmpp.jid.JID sender,
String slotId,
String filename,
long filesize,
String contentType)
Create slot in database for file upload.
|
FileUploadRepository.Slot |
getSlot(tigase.xmpp.jid.BareJID sender,
String slotId)
Retrieves information from database about slot
|
List<FileUploadRepository.Slot> |
listExpiredSlots(tigase.xmpp.jid.BareJID domain,
LocalDateTime before,
int limit)
Retrieves list of ids of expired slots
|
void |
removeExpiredSlots(tigase.xmpp.jid.BareJID domain,
LocalDateTime before,
int limit)
Removes metadata of expired slots
|
void |
updateSlot(tigase.xmpp.jid.BareJID sender,
String slotId)
Looks for slot for particular sender with exact slot id, file name and file size
|
FileUploadRepository.Slot allocateSlot(tigase.xmpp.jid.JID sender, String slotId, String filename, long filesize, String contentType) throws tigase.db.TigaseDBException
sender - slotId - filename - filesize - contentType - tigase.db.TigaseDBExceptionvoid updateSlot(tigase.xmpp.jid.BareJID sender,
String slotId)
throws tigase.db.TigaseDBException
sender - slotId - tigase.db.TigaseDBExceptionFileUploadRepository.Slot getSlot(tigase.xmpp.jid.BareJID sender, String slotId) throws tigase.db.TigaseDBException
tigase.db.TigaseDBExceptionList<FileUploadRepository.Slot> listExpiredSlots(tigase.xmpp.jid.BareJID domain, LocalDateTime before, int limit) throws tigase.db.TigaseDBException
tigase.db.TigaseDBExceptionvoid removeExpiredSlots(tigase.xmpp.jid.BareJID domain,
LocalDateTime before,
int limit)
throws tigase.db.TigaseDBException
tigase.db.TigaseDBExceptionCopyright © 2013–2021 Tigase. All rights reserved.