⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node.java

📁 openfire 服务器源码下载
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
     *     * @return the type of payload data to be provided at the node.     */    public String getPayloadType() {        return payloadType;    }    /**     * Returns the URL of an XSL transformation which can be applied to payloads in order     * to generate an appropriate message body element.     *     * @return the URL of an XSL transformation which can be applied to payloads.     */    public String getBodyXSLT() {        return bodyXSLT;    }    /**     * Returns the URL of an XSL transformation which can be applied to the payload format     * in order to generate a valid Data Forms result that the client could display     * using a generic Data Forms rendering engine.     *     * @return the URL of an XSL transformation which can be applied to the payload format.     */    public String getDataformXSLT() {        return dataformXSLT;    }    /**     * Returns the datetime when the node was created.     *     * @return the datetime when the node was created.     */    public Date getCreationDate() {        return creationDate;    }    /**     * Returns the last date when the ndoe's configuration was modified.     *     * @return the last date when the ndoe's configuration was modified.     */    public Date getModificationDate() {        return modificationDate;    }    /**     * Returns the JID of the node creator. This is usually the sender's full JID of the     * IQ packet used for creating the node.     *     * @return the JID of the node creator.     */    public JID getCreator() {        return creator;    }    /**     * Returns the description of the node. This information is really optional and can be     * modified by submiting a completed data form with the new node configuration.     *     * @return the description of the node.     */    public String getDescription() {        return description;    }    /**     * Returns the default language of the node. This information is really optional and can be     * modified by submiting a completed data form with the new node configuration.     *     * @return the default language of the node.     */    public String getLanguage() {        return language;    }    /**     * Returns the JIDs of those to contact with questions. This information is not used by     * the pubsub service. It is meant to be "discovered" by users and redirect any question     * to the returned people to contact.     *     * @return the JIDs of those to contact with questions.     */    public Collection<JID> getContacts() {        return Collections.unmodifiableCollection(contacts);    }    /**     * Adds a new user as a candidate to answer questions about the node.     *     * @param user the JID of the new user.     */    void addContact(JID user) {        contacts.add(user);    }    /**     * Returns the list of nodes contained by this node. Only {@link CollectionNode} may     * contain other nodes.     *     * @return the list of nodes contained by this node.     */    public Collection<Node> getNodes() {        return Collections.emptyList();    }    /**     * Returns the collection node that is containing this node. The only node that     * does not have a parent node is the root collection node.     *     * @return the collection node that is containing this node.     */    public CollectionNode getParent() {        return parent;    }    /**     * Returns the complete hierarchy of parents of this node.     *     * @return the complete hierarchy of parents of this node.     */    public Collection<CollectionNode> getParents() {        Collection<CollectionNode> parents = new ArrayList<CollectionNode>();        CollectionNode myParent = parent;        while (myParent != null) {            parents.add(myParent);            myParent = myParent.getParent();        }        return parents;    }    /**     * Sets whether event notifications will include payloads. Payloads are included when     * publishing new items. However, new items may not always include a payload depending     * on the node configuration. Nodes can be configured to not deliver payloads for performance     * reasons.     *     * @param deliverPayloads true if event notifications will include payloads.     */    void setPayloadDelivered(boolean deliverPayloads) {        this.deliverPayloads = deliverPayloads;    }    void setReplyPolicy(ItemReplyPolicy replyPolicy) {        this.replyPolicy = replyPolicy;    }    /**     * Sets whether subscribers will be notified when the node configuration changes.     *     * @param notifyConfigChanges true if subscribers will be notified when the node     *        configuration changes.     */    void setNotifiedOfConfigChanges(boolean notifyConfigChanges) {        this.notifyConfigChanges = notifyConfigChanges;    }    /**     * Sets whether subscribers will be notified when the node is deleted.     *     * @param notifyDelete true if subscribers will be notified when the node is deleted.     */    void setNotifiedOfDelete(boolean notifyDelete) {        this.notifyDelete = notifyDelete;    }    /**     * Sets whether subscribers will be notified when items are removed from the node.     *     * @param notifyRetract true if subscribers will be notified when items are removed from     *        the node.     */    void setNotifiedOfRetract(boolean notifyRetract) {        this.notifyRetract = notifyRetract;    }    void setPresenceBasedDelivery(boolean presenceBasedDelivery) {        this.presenceBasedDelivery = presenceBasedDelivery;    }    /**     * Sets the publisher model that specifies who is allowed to publish items to the node.     *     * @param publisherModel the publisher model that specifies who is allowed to publish items     *        to the node.     */    void setPublisherModel(PublisherModel publisherModel) {        this.publisherModel = publisherModel;    }    /**     * Sets whether users are allowed to subscribe and unsubscribe.     *     * @param subscriptionEnabled true if users are allowed to subscribe and unsubscribe.     */    void setSubscriptionEnabled(boolean subscriptionEnabled) {        this.subscriptionEnabled = subscriptionEnabled;    }    /**     * Sets whether new subscriptions should be configured to be active. Inactive     * subscriptions will not get event notifications. However, subscribers will be     * notified when a node is deleted no matter the subscription status.     *     * @param subscriptionConfigurationRequired true if new subscriptions should be     *        configured to be active.     */    void setSubscriptionConfigurationRequired(boolean subscriptionConfigurationRequired) {        this.subscriptionConfigurationRequired = subscriptionConfigurationRequired;    }    /**     * Sets the access model that specifies who is allowed to subscribe and retrieve items.     *     * @param accessModel the access model that specifies who is allowed to subscribe and     *        retrieve items.     */    void setAccessModel(AccessModel accessModel) {        this.accessModel = accessModel;    }    /**     * Sets the roster group(s) allowed to subscribe and retrieve items. This information     * is going to be used only when using the     * {@link org.jivesoftware.openfire.pubsub.models.RosterAccess} access model.     *     * @param rosterGroupsAllowed the roster group(s) allowed to subscribe and retrieve items.     */    void setRosterGroupsAllowed(Collection<String> rosterGroupsAllowed) {        this.rosterGroupsAllowed = rosterGroupsAllowed;    }    void setReplyRooms(Collection<JID> replyRooms) {        this.replyRooms = replyRooms;    }    void setReplyTo(Collection<JID> replyTo) {        this.replyTo = replyTo;    }    /**     * Sets the type of payload data to be provided at the node. Usually specified by the     * namespace of the payload (if any).     *     * @param payloadType the type of payload data to be provided at the node.     */    void setPayloadType(String payloadType) {        this.payloadType = payloadType;    }    /**     * Sets the URL of an XSL transformation which can be applied to payloads in order     * to generate an appropriate message body element.     *     * @param bodyXSLT the URL of an XSL transformation which can be applied to payloads.     */    void setBodyXSLT(String bodyXSLT) {        this.bodyXSLT = bodyXSLT;    }    /**     * Sets the URL of an XSL transformation which can be applied to the payload format     * in order to generate a valid Data Forms result that the client could display     * using a generic Data Forms rendering engine.     *     * @param dataformXSLT the URL of an XSL transformation which can be applied to the     *        payload format.     */    void setDataformXSLT(String dataformXSLT) {        this.dataformXSLT = dataformXSLT;    }    void setSavedToDB(boolean savedToDB) {        this.savedToDB = savedToDB;        if (savedToDB && parent != null) {            // Notify the parent that he has a new child :)            parent.addChildNode(this);        }    }    /**     * Sets the datetime when the node was created.     *     * @param creationDate the datetime when the node was created.     */    void setCreationDate(Date creationDate) {        this.creationDate = creationDate;    }    /**     * Sets the last date when the ndoe's configuration was modified.     *     * @param modificationDate the last date when the ndoe's configuration was modified.     */    void setModificationDate(Date modificationDate) {        this.modificationDate = modificationDate;    }    /**     * Sets the description of the node. This information is really optional and can be     * modified by submiting a completed data form with the new node configuration.     *     * @param description the description of the node.     */    void setDescription(String description) {        this.description = description;    }    /**     * Sets the default language of the node. This information is really optional and can be     * modified by submiting a completed data form with the new node configuration.     *     * @param language the default language of the node.     */    void setLanguage(String language) {        this.language = language;    }    /**     * Sets the name of the node. The node may not have a configured name. The node's     * name can be changed by submiting a completed data form.     *     * @param name the name of the node.     */    void setName(String name) {        this.name = name;    }    /**     * Sets the JIDs of those to contact with questions. This information is not used by     * the pubsub service. It is meant to be "discovered" by users and redirect any question     * to the returned people to contact.     *     * @param contacts the JIDs of those to contact 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -