Class OnlyPublishers

    • Constructor Detail

      • OnlyPublishers

        public OnlyPublishers()
    • Method Detail

      • canPublish

        public boolean canPublish​(Node node,
                                  org.xmpp.packet.JID entity)
        Description copied from class: PublisherModel
        Returns true if the entity is allowed to publish items to the specified node.
        Specified by:
        canPublish in class PublisherModel
        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

        public String getName()
        Description copied from class: PublisherModel
        Returns the name as defined by the JEP-60 spec.
        Specified by:
        getName in class PublisherModel
        Returns:
        the name as defined by the JEP-60 spec.