Class jabberwerx.PEPController
Extends
jabberwerx.PubSubController.
Controller to manage PEP nodes.
Constructor Attributes | Constructor Name and Description |
---|---|
jabberwerx.PEPController(client)
Creates a new PEPController with the given client. |
- Fields borrowed from class jabberwerx.Controller:
- client, name
Method Attributes | Method Name and Description |
---|---|
destroy()
Destroys this PEPController. |
|
node(node, jid)
Return the specified PEPNode. |
- Methods borrowed from class jabberwerx.PubSubController:
- cleanupEntity
- Methods borrowed from class jabberwerx.Controller:
- removeEntity, updateEntity
- Methods borrowed from class jabberwerx.JWModel:
- applyEvent, event, shouldBeSavedWithGraph
- Methods borrowed from class jabberwerx.JWBase:
- getClassName, graphUnserialized, init, invocation, shouldBeSerializedInline, toString, wasUnserialized, willBeSerialized
Class Detail
jabberwerx.PEPController(client)
Creates a new PEPController with the given client.
- Parameters:
- {jabberwerx.Client} client
- The client object to use for communicating to the server
- Throws:
- {TypeError}
- If {client} is not a jabberwerx.Client
Method Detail
destroy()
Destroys this PEPController. This method removes all PEPNodes from the owning client.
{jabberwerx.PEPNode}
node(node, jid)
Return the specified PEPNode. Creates the node if one doesn't already exist. This method overrides the superclass to return PEPNode instances, and to make {jid} an optional argument.
- Parameters:
- {String} node
- the node
- {jabberwerx.JID|String} jid Optional
- The JID.
- Throws:
- {TypeError}
- if {node} is not a string.
- {jabberwerx.JID.InvalidJIDError}
- if {jid} defined and is invalid.
- Returns:
- {jabberwerx.PEPNode} The requested PEPNode.