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 ofPEPService
instances.- Author:
- Guus der Kinderen, guus.der.kinderen@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
Log
-
Constructor Summary
Constructors Constructor Description PEPServiceManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PEPService
create(org.xmpp.packet.JID owner)
PEPService
getPEPService(String jid)
Deprecated.Replaced bygetPEPService(JID)
PEPService
getPEPService(String jid, boolean autoCreate)
Deprecated.Replaced bygetPEPService(JID, boolean)
PEPService
getPEPService(PubSubService.UniqueIdentifier uniqueIdentifier)
Retrieves a PEP service -- attempting first from memory, then from the database.PEPService
getPEPService(PubSubService.UniqueIdentifier uniqueIdentifier, boolean autoCreate)
Retrieves a PEP service -- attempting first from memory, then from the database.PEPService
getPEPService(org.xmpp.packet.JID jid)
Retrieves a PEP service -- attempting first from memory, then from the database.PEPService
getPEPService(org.xmpp.packet.JID jid, boolean autoCreate)
Retrieves a PEP service -- attempting first from memory, then from the database.boolean
hasCachedService(org.xmpp.packet.JID owner)
void
process(PEPService service, org.xmpp.packet.IQ iq)
void
remove(org.xmpp.packet.JID owner)
Deletes thePEPService
belonging to the specified owner.void
start()
void
start(PEPService pepService)
void
stop()
void
unload(PEPService service)
-
-
-
Method Detail
-
getPEPService
public PEPService getPEPService(PubSubService.UniqueIdentifier uniqueIdentifier)
Retrieves a PEP service -- attempting first from memory, then from the database. This method will automatically create a PEP service if one does not exist.- Parameters:
uniqueIdentifier
- the unique identifier of the PEP service.- Returns:
- the requested PEP service.
-
getPEPService
public PEPService getPEPService(PubSubService.UniqueIdentifier uniqueIdentifier, boolean autoCreate)
Retrieves a PEP service -- attempting first from memory, then from the database. This method can automatically create a PEP service if one does not exist.- Parameters:
uniqueIdentifier
- the unique identifier of the PEP service.autoCreate
- true if a PEP service that does not yet exist needs to be created.- Returns:
- the requested PEP service if found or null if not found.
-
getPEPService
public PEPService getPEPService(org.xmpp.packet.JID jid)
Retrieves a PEP service -- attempting first from memory, then from the database. This method will automatically create a PEP service if one does not exist.- Parameters:
jid
- the JID of the user that owns the PEP service.- Returns:
- the requested PEP service.
-
getPEPService
public PEPService getPEPService(org.xmpp.packet.JID jid, boolean autoCreate)
Retrieves a PEP service -- attempting first from memory, then from the database. This method can automatically create a PEP service if one does not exist.- Parameters:
jid
- the JID of the user that owns the PEP service.autoCreate
- true if a PEP service that does not yet exist needs to be created.- Returns:
- the requested PEP service if found or null if not found.
-
getPEPService
@Deprecated public PEPService getPEPService(String jid)
Deprecated.Replaced bygetPEPService(JID)
Retrieves a PEP service -- attempting first from memory, then from the database. This method will automatically create a PEP service if one does not exist.- Parameters:
jid
- the bare JID of the user that owns the PEP service.- Returns:
- the requested PEP service.
-
getPEPService
@Deprecated public PEPService getPEPService(String jid, boolean autoCreate)
Deprecated.Replaced bygetPEPService(JID, boolean)
Retrieves a PEP service -- attempting first from memory, then from the database. This method can automatically create a PEP service if one does not exist.- Parameters:
jid
- the bare JID of the user that owns the PEP service.autoCreate
- true if a PEP service that does not yet exist needs to be created.- 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 thePEPService
belonging 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)
-
-