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.
  • 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 interface tigase.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 interface tigase.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 interface tigase.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 interface tigase.http.upload.db.FileUploadRepository<MongoDataSource>
      Throws:
      tigase.db.TigaseDBException
    • setDataSource

      public void setDataSource(MongoDataSource dataSource)
      Specified by:
      setDataSource in interface tigase.db.DataSourceAware<MongoDataSource>
    • updateSlot

      public void updateSlot(tigase.xmpp.jid.BareJID userJid, String slotId) throws tigase.db.TigaseDBException
      Specified by:
      updateSlot in interface tigase.http.upload.db.FileUploadRepository<MongoDataSource>
      Throws:
      tigase.db.TigaseDBException