| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<AccessModel>
org.jivesoftware.smackx.pubsub.AccessModel
public enum AccessModel
This enumeration represents the access models for the pubsub node as defined in the pubsub specification section 16.4.3
| Enum Constant Summary | |
|---|---|
| authorizeSubscription request must be approved and only subscribers may retrieve items | |
| openAnyone may subscribe and retrieve items | |
| presenceAnyone with a presence subscription of both or from may subscribe and retrieve items | |
| rosterAnyone in the specified roster group(s) may subscribe and retrieve items | |
| whitelistOnly those on a whitelist may subscribe and retrieve items | |
| Method Summary | |
|---|---|
| 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. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
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
| Method Detail | 
|---|
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 name
NullPointerException - if the argument is null| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||