Package org.jivesoftware.openfire.pep
Class PEPServiceManager
- java.lang.Object
-
- org.jivesoftware.openfire.pep.PEPServiceManager
-
public class PEPServiceManager extends Object
Manages the creation, persistence and removal ofPEPServiceinstances.- Author:
- Guus der Kinderen, guus.der.kinderen@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLog
-
Constructor Summary
Constructors Constructor Description PEPServiceManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PEPServicecreate(org.xmpp.packet.JID owner)PEPServicegetPEPService(String jid)Retrieves a PEP service -- attempting first from memory, then from the database.PEPServicegetPEPService(org.xmpp.packet.JID jid)Retrieves a PEP service -- attempting first from memory, then from the database.booleanhasCachedService(org.xmpp.packet.JID owner)voidprocess(PEPService service, org.xmpp.packet.IQ iq)voidremove(org.xmpp.packet.JID owner)Deletes thePEPServicebelonging to the specified owner.voidstart()voidstart(PEPService pepService)voidstop()voidunload(PEPService service)
-
-
-
Method Detail
-
getPEPService
public PEPService getPEPService(org.xmpp.packet.JID jid)
Retrieves a PEP service -- attempting first from memory, then from the database.- Parameters:
jid- the JID of the user that owns the PEP service.- Returns:
- the requested PEP service if found or null if not found.
-
getPEPService
public PEPService getPEPService(String jid)
Retrieves a PEP service -- attempting first from memory, then from the database.- Parameters:
jid- the bare JID of the user that owns the PEP service.- Returns:
- the requested PEP service if found or null if not found.
-
create
public PEPService create(org.xmpp.packet.JID owner)
-
remove
public void remove(org.xmpp.packet.JID owner)
Deletes thePEPServicebelonging to the specified owner.- Parameters:
owner- The JID of the owner of the service to be deleted.
-
start
public void start(PEPService pepService)
-
start
public void start()
-
stop
public void stop()
-
process
public void process(PEPService service, org.xmpp.packet.IQ iq)
-
hasCachedService
public boolean hasCachedService(org.xmpp.packet.JID owner)
-
unload
public void unload(PEPService service)
-
-