Class PublishOptions.Builder
- java.lang.Object
-
- rocks.xmpp.extensions.data.model.DataForm.Builder<PublishOptions.Builder>
-
- rocks.xmpp.extensions.pubsub.model.PublishOptions.Builder
-
- Enclosing class:
- PublishOptions
public static final class PublishOptions.Builder extends DataForm.Builder<PublishOptions.Builder>
A builder class to build the publish options form. If not provided the default data form type isDataForm.Type.SUBMIT
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublishOptions.Builder
accessModel(AccessModel accessModel)
PublishOptions
build()
Builds the publish options.PublishOptions.Builder
persistItems(boolean persistItems)
PublishOptions.Builder
rosterGroupsAllowed(Collection<String> rosterGroupsAllowed)
PublishOptions.Builder
sendLastPublishedItem(SendLastPublishedItem sendLastPublishedItem)
-
Methods inherited from class rocks.xmpp.extensions.data.model.DataForm.Builder
fields, formType, instructions, items, pages, reportedFields, title, type
-
-
-
-
Method Detail
-
accessModel
public final PublishOptions.Builder accessModel(AccessModel accessModel)
-
persistItems
public final PublishOptions.Builder persistItems(boolean persistItems)
-
sendLastPublishedItem
public final PublishOptions.Builder sendLastPublishedItem(SendLastPublishedItem sendLastPublishedItem)
-
rosterGroupsAllowed
public final PublishOptions.Builder rosterGroupsAllowed(Collection<String> rosterGroupsAllowed)
-
build
public PublishOptions build()
Builds the publish options.- Returns:
- The publish options.
-
-