Class MongoFileUploadRepository
java.lang.Object
tigase.mongodb.http.MongoFileUploadRepository
- All Implemented Interfaces:
tigase.db.DataSourceAware<MongoDataSource>, tigase.http.upload.db.FileUploadRepository<MongoDataSource>
@Deprecated
public class MongoFileUploadRepository
extends Object
implements tigase.http.upload.db.FileUploadRepository<MongoDataSource>
Deprecated.
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontigase.http.upload.db.FileUploadRepository.SlotallocateSlot(tigase.xmpp.jid.BareJID sender, String slotId, String filename, long filesize, String contentType) Deprecated.tigase.http.upload.db.FileUploadRepository.SlotDeprecated.longgetUsedSpaceForDomain(String domain) Deprecated.longgetUsedSpaceForUser(tigase.xmpp.jid.BareJID user) Deprecated.List<tigase.http.upload.db.FileUploadRepository.Slot> listExpiredSlots(tigase.xmpp.jid.BareJID domain, LocalDateTime before, int limit) Deprecated.List<tigase.http.upload.db.FileUploadRepository.Slot> querySlots(String domain, String afterId, int limit) Deprecated.List<tigase.http.upload.db.FileUploadRepository.Slot> querySlots(tigase.xmpp.jid.BareJID user, String afterId, int limit) Deprecated.voidremoveExpiredSlots(tigase.xmpp.jid.BareJID domain, LocalDateTime before, int limit) Deprecated.voidremoveSlot(tigase.xmpp.jid.BareJID user, String slotId) Deprecated.voidsetDataSource(MongoDataSource dataSource) Deprecated.voidupdateSlot(tigase.xmpp.jid.BareJID userJid, String slotId) Deprecated.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.http.upload.db.FileUploadRepository
allocateSlot
-
Constructor Details
-
MongoFileUploadRepository
public MongoFileUploadRepository()Deprecated.
-
-
Method Details
-
allocateSlot
public tigase.http.upload.db.FileUploadRepository.Slot allocateSlot(tigase.xmpp.jid.BareJID sender, String slotId, String filename, long filesize, String contentType) throws tigase.db.TigaseDBException Deprecated.- Specified by:
allocateSlotin 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 Deprecated.- Specified by:
getSlotin 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 Deprecated.- Specified by:
listExpiredSlotsin 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 Deprecated.- Specified by:
removeExpiredSlotsin interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>- Throws:
tigase.db.TigaseDBException
-
getUsedSpaceForDomain
Deprecated.- Specified by:
getUsedSpaceForDomainin interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>- Throws:
tigase.db.TigaseDBException
-
getUsedSpaceForUser
public long getUsedSpaceForUser(tigase.xmpp.jid.BareJID user) throws tigase.db.TigaseDBException Deprecated.- Specified by:
getUsedSpaceForUserin interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>- Throws:
tigase.db.TigaseDBException
-
querySlots
public List<tigase.http.upload.db.FileUploadRepository.Slot> querySlots(tigase.xmpp.jid.BareJID user, String afterId, int limit) throws tigase.db.TigaseDBException Deprecated.- Specified by:
querySlotsin interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>- Throws:
tigase.db.TigaseDBException
-
querySlots
public List<tigase.http.upload.db.FileUploadRepository.Slot> querySlots(String domain, String afterId, int limit) throws tigase.db.TigaseDBException Deprecated.- Specified by:
querySlotsin interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>- Throws:
tigase.db.TigaseDBException
-
removeSlot
public void removeSlot(tigase.xmpp.jid.BareJID user, String slotId) throws tigase.db.TigaseDBException Deprecated.- Specified by:
removeSlotin interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>- Throws:
tigase.db.TigaseDBException
-
setDataSource
Deprecated.- Specified by:
setDataSourcein interfacetigase.db.DataSourceAware<MongoDataSource>
-
updateSlot
public void updateSlot(tigase.xmpp.jid.BareJID userJid, String slotId) throws tigase.db.TigaseDBException Deprecated.- Specified by:
updateSlotin interfacetigase.http.upload.db.FileUploadRepository<MongoDataSource>- Throws:
tigase.db.TigaseDBException
-