public enum AccessModel extends Enum<AccessModel>
Enum Constant and Description |
---|
authorize
Subscription request must be approved and only subscribers may retrieve items.
|
open
Anyone may subscribe and retrieve items.
|
presence
Anyone with a presence subscription of both or from may subscribe and retrieve items.
|
roster
Anyone in the specified roster group(s) may subscribe and retrieve items.
|
whitelist
Only those on a whitelist may subscribe and retrieve items.
|
Modifier and Type | Method and Description |
---|---|
static AccessModel |
valueOf(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 open
public static final AccessModel authorize
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null