public abstract class PublisherModel extends Object
Modifier and Type | Field and Description |
---|---|
static PublisherModel |
open |
static PublisherModel |
publishers |
static PublisherModel |
subscribers |
Constructor and Description |
---|
PublisherModel() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canPublish(Node node,
org.xmpp.packet.JID entity)
Returns true if the entity is allowed to publish items to the specified node.
|
abstract String |
getName()
Returns the name as defined by the JEP-60 spec.
|
static PublisherModel |
valueOf(String name)
Returns the specific subclass of PublisherModel as specified by the publisher
model name.
|
public static final PublisherModel open
public static final PublisherModel publishers
public static final PublisherModel subscribers
public static PublisherModel valueOf(String name)
name
- the name of the subsclass.public abstract String getName()
public abstract boolean canPublish(Node node, org.xmpp.packet.JID entity)
node
- the node that may get a new published item by the specified entity.entity
- the JID of the entity that wants to publish an item to the node.Copyright © 2003-2008 Jive Software.