/** * Gets 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 */ public String getDataformXSLT() { return getFieldValue(ConfigureNodeFields.dataform_xslt); }
/** * Gets the human readable node title. * * @return The node title */ @Override public String getTitle() { return getFieldValue(ConfigureNodeFields.title); }
/** * Returns the URL of an XSL transformation which can be applied to payloads in order to * generate an appropriate message body element. * * @return URL to an XSL */ public String getBodyXSLT() { return getFieldValue(ConfigureNodeFields.body_xslt); }
/** * Gets the collection node which the node is affiliated with. * * @return The collection node id */ public String getCollection() { return getFieldValue(ConfigureNodeFields.collection); }
/** * Gets the maximum number of items to persisted to this node if {@link #isPersistItems()} is * true. * * @return The maximum number of items to persist */ public int getMaxItems() { return Integer.parseInt(getFieldValue(ConfigureNodeFields.max_items)); }
/** * Gets the maximum payload size in bytes. * * @return The maximum payload size */ public int getMaxPayloadSize() { return Integer.parseInt(getFieldValue(ConfigureNodeFields.max_payload_size)); }
/** * Gets the maximum number of child nodes that can be associated with the collection node. * * @return The maximum number of child nodes */ public int getChildrenMax() { return Integer.parseInt(getFieldValue(ConfigureNodeFields.children_max)); }
/** * Does the node deliver payloads with event notifications. * * @return true if it does, false otherwise */ public boolean isDeliverPayloads() { return parseBoolean(getFieldValue(ConfigureNodeFields.deliver_payloads)); }
/** * Determines if subscriptions are allowed. * * @return true if subscriptions are allowed, false otherwise */ public boolean isSubscribe() { return parseBoolean(getFieldValue(ConfigureNodeFields.subscribe)); }
/** * Get the currently configured {@link AccessModel}, null if it is not set. * * @return The current {@link AccessModel} */ public AccessModel getAccessModel() { String value = getFieldValue(ConfigureNodeFields.access_model); if (value == null) return null; else return AccessModel.valueOf(value); }
/** * Returns the policy that determines who may associate children with the node. * * @return The current policy */ public ChildrenAssociationPolicy getChildrenAssociationPolicy() { String value = getFieldValue(ConfigureNodeFields.children_association_policy); if (value == null) return null; else return ChildrenAssociationPolicy.valueOf(value); }
/** * Gets the publishing model for the node, which determines who may publish to it. * * @return The publishing model */ public PublishModel getPublishModel() { String value = getFieldValue(ConfigureNodeFields.publish_model); if (value == null) return null; else return PublishModel.valueOf(value); }
/** * Determines who should get replies to items. * * @return Who should get the reply */ public ItemReply getItemReply() { String value = getFieldValue(ConfigureNodeFields.itemreply); if (value == null) return null; else return ItemReply.valueOf(value); }
/** * Gets the node type. * * @return The node type */ public NodeType getNodeType() { String value = getFieldValue(ConfigureNodeFields.node_type); if (value == null) return null; else return NodeType.valueOf(value); }
/** * Determines whether subscribers should be notified when the node is deleted. * * @return true if subscribers should be notified, false otherwise */ public boolean isNotifyDelete() { return parseBoolean(getFieldValue(ConfigureNodeFields.notify_delete)); }
/** * Determines if subscribers should be notified when the configuration changes. * * @return true if they should be notified, false otherwise */ public boolean isNotifyConfig() { return parseBoolean(getFieldValue(ConfigureNodeFields.notify_config)); }
/** * Determines the type of notifications which are sent. * * @return NotificationType for the node configuration * @since 4.3 */ public NotificationType getNotificationType() { String value = getFieldValue(ConfigureNodeFields.notification_type); if (value == null) return null; return NotificationType.valueOf(value); }
/** * Determines whether subscribers should be notified when items are deleted * from the node. * * @return true if subscribers should be notified, false otherwise */ public boolean isNotifyRetract() { return parseBoolean(getFieldValue(ConfigureNodeFields.notify_retract)); }
/** * Determines whether items should be persisted in the node. * * @return true if items are persisted */ public boolean isPersistItems() { return parseBoolean(getFieldValue(ConfigureNodeFields.persist_items)); }
/** * Determines whether to deliver notifications to available users only. * * @return true if users must be available */ public boolean isPresenceBasedDelivery() { return parseBoolean(getFieldValue(ConfigureNodeFields.presence_based_delivery)); }