Class OnlySubscribers
java.lang.Object
org.jivesoftware.openfire.pubsub.models.PublisherModel
org.jivesoftware.openfire.pubsub.models.OnlySubscribers
- All Implemented Interfaces:
Serializable
Subscribers, publishers and owners may publish items to the node.
- Author:
- Matt Tucker
- See Also:
-
Field Summary
Fields inherited from class org.jivesoftware.openfire.pubsub.models.PublisherModel
open, publishers, subscribers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPublish(Node node, org.xmpp.packet.JID entity) Returns true if the entity is allowed to publish items to the specified node.getName()Returns the name as defined by the JEP-60 spec.Methods inherited from class org.jivesoftware.openfire.pubsub.models.PublisherModel
valueOf
-
Constructor Details
-
OnlySubscribers
public OnlySubscribers()
-
-
Method Details
-
canPublish
Description copied from class:PublisherModelReturns true if the entity is allowed to publish items to the specified node.- Specified by:
canPublishin classPublisherModel- Parameters:
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.- Returns:
- true if the subscriber is allowed to publish items to the specified node.
-
getName
Description copied from class:PublisherModelReturns the name as defined by the JEP-60 spec.- Specified by:
getNamein classPublisherModel- Returns:
- the name as defined by the JEP-60 spec.
-