Package tigase.mongodb.http
Class MongoFileUploadRepository
java.lang.Object
tigase.mongodb.http.MongoFileUploadRepository
- All Implemented Interfaces:
tigase.db.DataSourceAware<MongoDataSource>
,tigase.http.upload.db.FileUploadRepository<MongoDataSource>
public class MongoFileUploadRepository
extends Object
implements tigase.http.upload.db.FileUploadRepository<MongoDataSource>
Created by andrzej on 14.03.2017.
-
Nested Class Summary
Nested classes/interfaces inherited from interface tigase.http.upload.db.FileUploadRepository
tigase.http.upload.db.FileUploadRepository.Slot
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontigase.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
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)
-
Constructor Details
-
MongoFileUploadRepository
public MongoFileUploadRepository()
-
-
Method Details
-
allocateSlot
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 - Specified by:
allocateSlot
in interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>
- Throws:
tigase.db.TigaseDBException
-
getSlot
public tigase.http.upload.db.FileUploadRepository.Slot getSlot(tigase.xmpp.jid.BareJID sender, String slotId) throws tigase.db.TigaseDBException - Specified by:
getSlot
in interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>
- Throws:
tigase.db.TigaseDBException
-
listExpiredSlots
public List<tigase.http.upload.db.FileUploadRepository.Slot> listExpiredSlots(tigase.xmpp.jid.BareJID domain, LocalDateTime before, int limit) throws tigase.db.TigaseDBException - Specified by:
listExpiredSlots
in interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>
- Throws:
tigase.db.TigaseDBException
-
removeExpiredSlots
public void removeExpiredSlots(tigase.xmpp.jid.BareJID domain, LocalDateTime before, int limit) throws tigase.db.TigaseDBException - Specified by:
removeExpiredSlots
in interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>
- Throws:
tigase.db.TigaseDBException
-
setDataSource
- Specified by:
setDataSource
in interfacetigase.db.DataSourceAware<MongoDataSource>
-
updateSlot
public void updateSlot(tigase.xmpp.jid.BareJID userJid, String slotId) throws tigase.db.TigaseDBException - Specified by:
updateSlot
in interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>
- Throws:
tigase.db.TigaseDBException
-