@Bean(name="message-archive", parents={Xep0136MessageArchivingProcessor.class,Xep0313MessageArchiveManagementProcessor.class}, active=true) public class MessageArchivePlugin extends tigase.xmpp.impl.annotation.AnnotatedXMPPProcessor implements tigase.xmpp.XMPPProcessorIfc, tigase.kernel.beans.RegistrarBean
Modifier and Type | Field and Description |
---|---|
static String |
ARCHIVE |
protected tigase.xmpp.jid.JID |
componentJid |
static String |
DEFAULT_SAVE |
protected static String |
ID |
static String |
MSG_ARCHIVE_PATHS |
static String |
MUC_SAVE |
static String |
OWNER_JID |
protected static String |
SETTINGS |
Constructor and Description |
---|
MessageArchivePlugin() |
Modifier and Type | Method and Description |
---|---|
String[] |
getArchivingMatchers() |
tigase.xmpp.jid.JID |
getComponentJid() |
StoreMethod |
getDefaultStoreMethod(tigase.xmpp.XMPPResourceConnection session) |
StoreMethod |
getRequiredStoreMethod(tigase.xmpp.XMPPResourceConnection session) |
StoreMuc |
getRequiredStoreMucMessages(tigase.xmpp.XMPPResourceConnection session) |
Settings |
getSettings(tigase.xmpp.XMPPResourceConnection session) |
Settings |
loadSettings(tigase.xmpp.XMPPResourceConnection session) |
void |
process(tigase.server.Packet packet,
tigase.xmpp.XMPPResourceConnection session,
tigase.db.NonAuthUserRepository repo,
Queue<tigase.server.Packet> results,
Map<String,Object> settings) |
void |
register(tigase.kernel.core.Kernel kernel) |
void |
setArchivingMatchers(String[] matcherStrs) |
void |
setComponentJid(tigase.xmpp.jid.JID componentJid) |
void |
unregister(tigase.kernel.core.Kernel kernel) |
id, supDiscoFeatures, supElementNamePaths, supNamespaces, supStreamFeatures, supTypes
canHandle, compareTo, concurrentThreadsPerQueue, getComponentInfo, getInstance, getQueueSize, getStatistics, getThreadsNo, init, isSupporting, supElements, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canHandle, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, getStatistics, id, init, isSupporting, supDiscoFeatures, supElementNamePaths, supElements, supNamespaces, supStreamFeatures, supTypes
compareTo
public static final String DEFAULT_SAVE
public static final String MUC_SAVE
public static final String OWNER_JID
public static final String ARCHIVE
public static final String MSG_ARCHIVE_PATHS
protected static final String ID
protected static final String SETTINGS
@ConfigField(desc="Message archiving component JID", alias="component-jid") protected tigase.xmpp.jid.JID componentJid
public void process(tigase.server.Packet packet, tigase.xmpp.XMPPResourceConnection session, tigase.db.NonAuthUserRepository repo, Queue<tigase.server.Packet> results, Map<String,Object> settings) throws tigase.xmpp.XMPPException
process
in interface tigase.xmpp.XMPPProcessorIfc
tigase.xmpp.XMPPException
public void register(tigase.kernel.core.Kernel kernel)
register
in interface tigase.kernel.beans.RegistrarBean
public void unregister(tigase.kernel.core.Kernel kernel)
unregister
in interface tigase.kernel.beans.RegistrarBean
public String[] getArchivingMatchers()
public void setArchivingMatchers(String[] matcherStrs)
public tigase.xmpp.jid.JID getComponentJid()
public void setComponentJid(tigase.xmpp.jid.JID componentJid)
public StoreMethod getDefaultStoreMethod(tigase.xmpp.XMPPResourceConnection session)
public StoreMethod getRequiredStoreMethod(tigase.xmpp.XMPPResourceConnection session)
public Settings getSettings(tigase.xmpp.XMPPResourceConnection session) throws tigase.xmpp.NotAuthorizedException
tigase.xmpp.NotAuthorizedException
public StoreMuc getRequiredStoreMucMessages(tigase.xmpp.XMPPResourceConnection session)
public Settings loadSettings(tigase.xmpp.XMPPResourceConnection session) throws tigase.xmpp.NotAuthorizedException
tigase.xmpp.NotAuthorizedException
Copyright © 2012–2019 "Tigase, Inc.". All rights reserved.