MongoFileUploadRepository

public class MongoFileUploadRepository implements FileUploadRepository<MongoDataSource>

Created by andrzej on 14.03.2017.

Methods

allocateSlot

public Slot allocateSlot(JID sender, String slotId, String filename, long filesize, String contentType)

getSlot

public Slot getSlot(BareJID sender, String slotId)

listExpiredSlots

public List<Slot> listExpiredSlots(BareJID domain, LocalDateTime before, int limit)

removeExpiredSlots

public void removeExpiredSlots(BareJID domain, LocalDateTime before, int limit)

setDataSource

public void setDataSource(MongoDataSource dataSource)

updateSlot

public void updateSlot(BareJID userJid, String slotId)