/** * 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 url The URL of an XSL transformation */ public void setDataformXSLT(String url) { addField(ConfigureNodeFields.dataform_xslt, FormField.Type.text_single); setAnswer(ConfigureNodeFields.dataform_xslt.getFieldName(), url); }
public String getFieldName() { return "pubsub#" + toString(); } }
/** * Set the maximum number of items to persisted to this node if {@link #isPersistItems()} is * true. * * @param max The maximum number of items to persist */ public void setMaxItems(int max) { addField(ConfigureNodeFields.max_items, FormField.Type.text_single); setAnswer(ConfigureNodeFields.max_items.getFieldName(), max); }
public String getFieldName() { return "pubsub#" + toString(); } }
/** * Sets the maximum payload size in bytes. * * @param max The maximum payload size */ public void setMaxPayloadSize(int max) { addField(ConfigureNodeFields.max_payload_size, FormField.Type.text_single); setAnswer(ConfigureNodeFields.max_payload_size.getFieldName(), max); }
/** * Sets the type of node data, usually specified by the namespace of the payload (if any). * * @param type The type of node data */ public void setDataType(String type) { addField(ConfigureNodeFields.type, FormField.Type.text_single); setAnswer(ConfigureNodeFields.type.getFieldName(), type); }
/** * Sets the multi user chat rooms that are specified as reply rooms. * * @param replyRooms The multi user chat room to use as reply rooms */ public void setReplyRoom(List<String> replyRooms) { addField(ConfigureNodeFields.replyroom, FormField.Type.list_multi); setAnswer(ConfigureNodeFields.replyroom.getFieldName(), replyRooms); }
/** * Sets a human readable title for the node. * * @param title The node title */ @Override public void setTitle(String title) { addField(ConfigureNodeFields.title, FormField.Type.text_single); setAnswer(ConfigureNodeFields.title.getFieldName(), title); }
/** * Set the JID's in the whitelist of users that can associate child nodes with the collection * node. This is only relevant if {@link #getChildrenAssociationPolicy()} is set to * {@link ChildrenAssociationPolicy#whitelist}. * * @param whitelist The list of JID's */ public void setChildrenAssociationWhitelist(List<String> whitelist) { addField(ConfigureNodeFields.children_association_whitelist, FormField.Type.jid_multi); setAnswer(ConfigureNodeFields.children_association_whitelist.getFieldName(), whitelist); }
/** * Set the maximum number of child nodes that can be associated with a collection node. * * @param max The maximum number of child nodes. */ public void setChildrenMax(int max) { addField(ConfigureNodeFields.children_max, FormField.Type.text_single); setAnswer(ConfigureNodeFields.children_max.getFieldName(), max); }
/** * Sets whether subscribers should be notified when the node is deleted. * * @param notify true if subscribers should be notified, false otherwise */ public void setNotifyDelete(boolean notify) { addField(ConfigureNodeFields.notify_delete, FormField.Type.bool); setAnswer(ConfigureNodeFields.notify_delete.getFieldName(), notify); }
/** * Sets whether subscribers should be notified when items are deleted * from the node. * * @param notify true if subscribers should be notified, false otherwise */ public void setNotifyRetract(boolean notify) { addField(ConfigureNodeFields.notify_retract, FormField.Type.bool); setAnswer(ConfigureNodeFields.notify_retract.getFieldName(), notify); }
/** * Sets the roster groups that are allowed to subscribe and retrieve items. * * @param groups The roster groups */ public void setRosterGroupsAllowed(List<String> groups) { addField(ConfigureNodeFields.roster_groups_allowed, FormField.Type.list_multi); setAnswer(ConfigureNodeFields.roster_groups_allowed.getFieldName(), groups); }
/** * Set 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 */ public void setBodyXSLT(String bodyXslt) { addField(ConfigureNodeFields.body_xslt, FormField.Type.text_single); setAnswer(ConfigureNodeFields.body_xslt.getFieldName(), bodyXslt); }
/** * Sets the collection node which the node is affiliated with. * * @param collection The node id of the collection node */ public void setCollection(String collection) { addField(ConfigureNodeFields.collection, FormField.Type.text_single); setAnswer(ConfigureNodeFields.collection.getFieldName(), collection); }
/** * Sets whether items should be persisted in the node. * * @param persist true if items should be persisted, false otherwise */ public void setPersistentItems(boolean persist) { addField(ConfigureNodeFields.persist_items, FormField.Type.bool); setAnswer(ConfigureNodeFields.persist_items.getFieldName(), persist); }
/** * Sets the specific JID's for reply to. * * @param replyTos The JID's to reply to */ public void setReplyTo(List<String> replyTos) { addField(ConfigureNodeFields.replyto, FormField.Type.list_multi); setAnswer(ConfigureNodeFields.replyto.getFieldName(), replyTos); }
/** * Set the list of child node ids that are associated with a collection node. * * @param children */ public void setChildren(List<String> children) { addField(ConfigureNodeFields.children, FormField.Type.text_multi); setAnswer(ConfigureNodeFields.children.getFieldName(), children); }
/** * Sets the policy that determines who may associate children with the node. * * @param policy The policy being set */ public void setChildrenAssociationPolicy(ChildrenAssociationPolicy policy) { addField(ConfigureNodeFields.children_association_policy, FormField.Type.list_single); List<String> values = new ArrayList<>(1); values.add(policy.toString()); setAnswer(ConfigureNodeFields.children_association_policy.getFieldName(), values); }
/** * Sets whether the node will deliver payloads with event notifications. * * @param deliver true if the payload will be delivered, false otherwise */ public void setDeliverPayloads(boolean deliver) { addField(ConfigureNodeFields.deliver_payloads, FormField.Type.bool); setAnswer(ConfigureNodeFields.deliver_payloads.getFieldName(), deliver); }