public enum AccessModel extends java.lang.Enum<AccessModel>
Defines who may subscribe to a node.
Enum Constant and Description |
---|
AUTHORIZE
The node owner must approve all subscription requests, and only subscribers may retrieve items from the node.
|
OPEN
Any entity may subscribe to the node (i.e., without the necessity for subscription approval) and any entity may retrieve items from the node (i.e., without being subscribed); this SHOULD be the default access model for generic pubsub services.
|
PRESENCE
Any entity in the specified roster group(s) may subscribe to the node and retrieve items from the node; this access model applies mainly to instant messaging systems.
|
ROSTER
Any entity in the specified roster group(s) may subscribe to the node and retrieve items from the node; this access model applies mainly to instant messaging systems.
|
WHITELIST
An entity may subscribe or retrieve items only if on a whitelist managed by the node owner.
|
Modifier and Type | Method and Description |
---|---|
static AccessModel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccessModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessModel AUTHORIZE
public static final AccessModel OPEN
public static final AccessModel PRESENCE
public static final AccessModel ROSTER
public static final AccessModel WHITELIST
public static AccessModel[] values()
for (AccessModel c : AccessModel.values()) System.out.println(c);
public static AccessModel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2014–2019 XMPP.rocks. All rights reserved.