public enum Permission extends Enum<Permission>
http://www.w3.org/wiki/WebAccessControl
and extended for PLAY by reusing publish/subscribe vocabulary from
https://www.oasis-open.org/committees/wsn/.| Enum Constant and Description |
|---|
Notify
The right to notify a new event on a stream resource i.e., to publish events.
|
Read
The right to read from a resource e.g., to query storage.
|
Subscribe
The right to subscribe to a stream resource i.e., to receive events in real-time.
|
Write
The right to write/alter a resrouce such as to add/delete events from storage.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ACL_NS_URI |
static String |
NOTIFY_NS_URI |
static String |
SUBSCRIBE_NS_URI |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getNsUri() |
String |
toString() |
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Permission Read
public static final Permission Write
public static final Permission Notify
public static final Permission Subscribe
public static final String ACL_NS_URI
public static final String NOTIFY_NS_URI
public static final String SUBSCRIBE_NS_URI
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission 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 nullpublic String getNsUri()
public String getName()
public String toString()
toString in class Enum<Permission>Copyright © 2010-2013 OW2 Consortium. All Rights Reserved.