Package tigase.archive.unified.db
Class JDBCFlexibleOfflineMessageRetrievalRepository
- java.lang.Object
-
- tigase.server.amp.db.MsgRepository<Long,tigase.db.DataRepository>
-
- tigase.server.amp.db.JDBCMsgRepository
-
- tigase.archive.unified.db.JDBCFlexibleOfflineMessageRetrievalRepository
-
- All Implemented Interfaces:
tigase.db.DataSourceAware<tigase.db.DataRepository>,tigase.db.MsgRepositoryIfc<tigase.db.DataRepository>,tigase.db.OfflineMsgRepositoryIfc,tigase.db.Repository,tigase.db.util.RepositoryVersionAware
public class JDBCFlexibleOfflineMessageRetrievalRepository extends tigase.server.amp.db.JDBCMsgRepository implements tigase.db.util.RepositoryVersionAware- Author:
- andrzej
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJDBCFlexibleOfflineMessageRetrievalRepository.MSG_TYPES-
Nested classes/interfaces inherited from class tigase.server.amp.db.MsgRepository
tigase.server.amp.db.MsgRepository.MsgDBItem<T extends Object>, tigase.server.amp.db.MsgRepository.MsgRepositoryMDBean, tigase.server.amp.db.MsgRepository.OfflineMessagesProcessor
-
-
Constructor Summary
Constructors Constructor Description JDBCFlexibleOfflineMessageRetrievalRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringconvertIdsToString(List<String> ids)intdeleteMessagesToJID(List<String> db_ids, tigase.xmpp.XMPPResourceConnection session)Map<Enum,Long>getMessagesCount(tigase.xmpp.jid.JID to)List<tigase.xml.Element>getMessagesList(tigase.xmpp.jid.JID to)Queue<tigase.xml.Element>loadMessagesToJID(List<String> db_ids, tigase.xmpp.XMPPResourceConnection session, boolean delete, tigase.server.amp.db.MsgRepository.OfflineMessagesProcessor proc)Queue<tigase.xml.Element>loadMessagesToJID(tigase.xmpp.XMPPResourceConnection session, boolean delete, tigase.server.amp.db.MsgRepository.OfflineMessagesProcessor proc)voidsetDataSource(tigase.db.DataRepository data_repo)booleanstoreMessage(tigase.xmpp.jid.JID from, tigase.xmpp.jid.JID to, Date expired, tigase.xml.Element msg, tigase.db.NonAuthUserRepository userRepo)-
Methods inherited from class tigase.server.amp.db.JDBCMsgRepository
deleteMessage, initRepository, loadExpiredQueue, loadExpiredQueue, loadMessagesToJID, parseExpiredMessage, parseLoadedMessages
-
Methods inherited from class tigase.server.amp.db.MsgRepository
getInstance, getMessageExpired, getMsgsStoreLimit, setCondition
-
-
-
-
Method Detail
-
setDataSource
public void setDataSource(tigase.db.DataRepository data_repo)
- Specified by:
setDataSourcein interfacetigase.db.DataSourceAware<tigase.db.DataRepository>- Overrides:
setDataSourcein classtigase.server.amp.db.JDBCMsgRepository
-
getMessagesCount
public Map<Enum,Long> getMessagesCount(tigase.xmpp.jid.JID to)
- Specified by:
getMessagesCountin interfacetigase.db.MsgRepositoryIfc<tigase.db.DataRepository>- Overrides:
getMessagesCountin classtigase.server.amp.db.JDBCMsgRepository
-
getMessagesList
public List<tigase.xml.Element> getMessagesList(tigase.xmpp.jid.JID to)
- Specified by:
getMessagesListin interfacetigase.db.MsgRepositoryIfc<tigase.db.DataRepository>- Overrides:
getMessagesListin classtigase.server.amp.db.JDBCMsgRepository
-
loadMessagesToJID
public Queue<tigase.xml.Element> loadMessagesToJID(tigase.xmpp.XMPPResourceConnection session, boolean delete, tigase.server.amp.db.MsgRepository.OfflineMessagesProcessor proc) throws tigase.db.UserNotFoundException
- Overrides:
loadMessagesToJIDin classtigase.server.amp.db.JDBCMsgRepository- Throws:
tigase.db.UserNotFoundException
-
loadMessagesToJID
public Queue<tigase.xml.Element> loadMessagesToJID(List<String> db_ids, tigase.xmpp.XMPPResourceConnection session, boolean delete, tigase.server.amp.db.MsgRepository.OfflineMessagesProcessor proc) throws tigase.db.UserNotFoundException
- Specified by:
loadMessagesToJIDin interfacetigase.db.MsgRepositoryIfc<tigase.db.DataRepository>- Overrides:
loadMessagesToJIDin classtigase.server.amp.db.JDBCMsgRepository- Throws:
tigase.db.UserNotFoundException
-
deleteMessagesToJID
public int deleteMessagesToJID(List<String> db_ids, tigase.xmpp.XMPPResourceConnection session) throws tigase.db.UserNotFoundException
- Specified by:
deleteMessagesToJIDin interfacetigase.db.MsgRepositoryIfc<tigase.db.DataRepository>- Overrides:
deleteMessagesToJIDin classtigase.server.amp.db.JDBCMsgRepository- Throws:
tigase.db.UserNotFoundException
-
storeMessage
public boolean storeMessage(tigase.xmpp.jid.JID from, tigase.xmpp.jid.JID to, Date expired, tigase.xml.Element msg, tigase.db.NonAuthUserRepository userRepo) throws tigase.db.UserNotFoundException- Specified by:
storeMessagein interfacetigase.db.OfflineMsgRepositoryIfc- Overrides:
storeMessagein classtigase.server.amp.db.JDBCMsgRepository- Throws:
tigase.db.UserNotFoundException
-
-