public class MongoFileUploadRepository extends Object implements tigase.http.upload.db.FileUploadRepository<MongoDataSource>
| Constructor and Description |
|---|
MongoFileUploadRepository() |
| Modifier and Type | Method and Description |
|---|---|
tigase.http.upload.db.FileUploadRepository.Slot |
allocateSlot(tigase.xmpp.jid.JID sender,
String slotId,
String filename,
long filesize,
String contentType) |
tigase.http.upload.db.FileUploadRepository.Slot |
getSlot(tigase.xmpp.jid.BareJID sender,
String slotId) |
List<tigase.http.upload.db.FileUploadRepository.Slot> |
listExpiredSlots(tigase.xmpp.jid.BareJID domain,
LocalDateTime before,
int limit) |
void |
removeExpiredSlots(tigase.xmpp.jid.BareJID domain,
LocalDateTime before,
int limit) |
void |
setDataSource(MongoDataSource dataSource) |
void |
updateSlot(tigase.xmpp.jid.BareJID userJid,
String slotId) |
public tigase.http.upload.db.FileUploadRepository.Slot allocateSlot(tigase.xmpp.jid.JID sender,
String slotId,
String filename,
long filesize,
String contentType)
throws tigase.db.TigaseDBException
allocateSlot in interface tigase.http.upload.db.FileUploadRepository<MongoDataSource>tigase.db.TigaseDBExceptionpublic tigase.http.upload.db.FileUploadRepository.Slot getSlot(tigase.xmpp.jid.BareJID sender,
String slotId)
throws tigase.db.TigaseDBException
getSlot in interface tigase.http.upload.db.FileUploadRepository<MongoDataSource>tigase.db.TigaseDBExceptionpublic List<tigase.http.upload.db.FileUploadRepository.Slot> listExpiredSlots(tigase.xmpp.jid.BareJID domain, LocalDateTime before, int limit) throws tigase.db.TigaseDBException
listExpiredSlots in interface tigase.http.upload.db.FileUploadRepository<MongoDataSource>tigase.db.TigaseDBExceptionpublic void removeExpiredSlots(tigase.xmpp.jid.BareJID domain,
LocalDateTime before,
int limit)
throws tigase.db.TigaseDBException
removeExpiredSlots in interface tigase.http.upload.db.FileUploadRepository<MongoDataSource>tigase.db.TigaseDBExceptionpublic void setDataSource(MongoDataSource dataSource)
setDataSource in interface tigase.db.DataSourceAware<MongoDataSource>public void updateSlot(tigase.xmpp.jid.BareJID userJid,
String slotId)
throws tigase.db.TigaseDBException
updateSlot in interface tigase.http.upload.db.FileUploadRepository<MongoDataSource>tigase.db.TigaseDBExceptionCopyright © 2014–2019 "Tigase, Inc.". All rights reserved.