Package tigase.pubsub
Class AbstractPubSubModule
- java.lang.Object
-
- tigase.stats.CounterValue
-
- tigase.stats.Counter
-
- tigase.stats.StatisticHolderImpl
-
- tigase.pubsub.AbstractPubSubModule
-
- All Implemented Interfaces:
tigase.component.modules.Module,tigase.stats.StatisticHolder
- Direct Known Subclasses:
AbstractConfigCreateNode,CapsModule,DefaultConfigModule,ManageAffiliationsModule,ManageSubscriptionModule,NodeDeleteModule,PendingSubscriptionModule,PresenceCollectorModule,PresenceNotifierModule,PublishItemModule,PurgeItemsModule,RetractItemModule,RetrieveAffiliationsModule,RetrieveItemsModule,RetrieveSubscriptionsModule,SubscribeNodeModule,UnsubscribeNodeModule
public abstract class AbstractPubSubModule extends tigase.stats.StatisticHolderImpl implements tigase.component.modules.ModuleBase class for modules of PubSub component. Provides commonly used properties and methods.- Version:
- 5.0.0, 2010.03.27 at 05:24:03 GMT
- Author:
- Artur Hefczyc
-
-
Field Summary
Fields Modifier and Type Field Description protected PubSubConfigconfigprotected static java.util.logging.Loggerlogprotected Logiclogicprotected tigase.component.PacketWriterpacketWriter
-
Constructor Summary
Constructors Constructor Description AbstractPubSubModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static tigase.xml.ElementcreateResultIQ(tigase.xml.Element iq)static java.util.List<tigase.xml.Element>createResultIQArray(tigase.xml.Element iq)protected static java.lang.StringfindBestJid(java.lang.String[] allSubscribers, java.lang.String jid)Deprecated.static java.util.Collection<tigase.xmpp.jid.BareJID>getActiveSubscribers(AbstractNodeConfig nodeConfig, IAffiliations affiliations, ISubscriptions subscriptions)static java.util.Collection<tigase.xmpp.jid.BareJID>getActiveSubscribers(AbstractNodeConfig nodeConfig, tigase.xmpp.jid.BareJID[] jids, IAffiliations affiliations, ISubscriptions subscriptions)protected IPubSubRepositorygetRepository()static java.util.List<tigase.server.Packet>makeArray(tigase.server.Packet... packets)static java.util.List<tigase.xml.Element>makeArray(tigase.xml.Element... elements)-
Methods inherited from class tigase.stats.StatisticHolderImpl
getStatistics, setStatisticsPrefix, statisticExecutedIn
-
Methods inherited from class tigase.stats.Counter
everyHour, everyMinute, everySecond, getPerHour, getPerMinute, getPerSecond
-
Methods inherited from class tigase.stats.CounterValue
getLevel, getName, getValue, inc, setName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
log
protected static final java.util.logging.Logger log
-
config
@Inject protected PubSubConfig config
-
logic
@Inject protected Logic logic
-
packetWriter
@Inject protected tigase.component.PacketWriter packetWriter
-
-
Method Detail
-
createResultIQ
public static tigase.xml.Element createResultIQ(tigase.xml.Element iq)
-
createResultIQArray
public static java.util.List<tigase.xml.Element> createResultIQArray(tigase.xml.Element iq)
-
findBestJid
@Deprecated protected static java.lang.String findBestJid(java.lang.String[] allSubscribers, java.lang.String jid)Deprecated.
-
getActiveSubscribers
public static java.util.Collection<tigase.xmpp.jid.BareJID> getActiveSubscribers(AbstractNodeConfig nodeConfig, tigase.xmpp.jid.BareJID[] jids, IAffiliations affiliations, ISubscriptions subscriptions)
-
getActiveSubscribers
public static java.util.Collection<tigase.xmpp.jid.BareJID> getActiveSubscribers(AbstractNodeConfig nodeConfig, IAffiliations affiliations, ISubscriptions subscriptions) throws tigase.component.exceptions.RepositoryException
- Throws:
tigase.component.exceptions.RepositoryException
-
makeArray
public static java.util.List<tigase.xml.Element> makeArray(tigase.xml.Element... elements)
-
makeArray
public static java.util.List<tigase.server.Packet> makeArray(tigase.server.Packet... packets)
-
getRepository
protected IPubSubRepository getRepository()
-
-