Package org.jivesoftware.openfire.pubsub
Enum Class NodeSubscription.State
- All Implemented Interfaces:
Serializable,Comparable<NodeSubscription.State>,Constable
- Enclosing class:
- NodeSubscription
Subscriptions to a node may exist in several states. Delivery of event notifications
varies according to the subscription state of the user with the node.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe node will never send event notifications or payloads to users in this state.An entity has requested to subscribe to a node and the request has not yet been approved by a node owner.An entity is subscribed to a node.An entity has subscribed but its subscription options have not yet been configured. -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeSubscription.StateReturns the enum constant of this class with the specified name.static NodeSubscription.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
none
The node will never send event notifications or payloads to users in this state. Users with subscription state none and affiliation none are going to be deleted. -
pending
An entity has requested to subscribe to a node and the request has not yet been approved by a node owner. The node will not send event notifications or payloads to the entity while it is in this state. -
unconfigured
An entity has subscribed but its subscription options have not yet been configured. The node will send event notifications or payloads to the entity while it is in this state. Default subscription configuration is going to be assumed. -
subscribed
An entity is subscribed to a node. The node will send all event notifications (and, if configured, payloads) to the entity while it is in this state.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-