|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GNPriv>
it.geosolutions.geonetwork.util.GNPriv
public enum GNPriv
Operation privileges as required by GeoNetwork.
In the geonetwork services documentation page, operations are defined by their own id, each representing a granted privilege:
We'll align to this latter definitions.
Anyway, you may use the GNPrivAlt
enum as alternative in case you need it.
Enum Constant Summary | |
---|---|
DOWNLOAD
priv #1 |
|
DYNAMIC
priv #5 |
|
EDITING
priv #2 |
|
FEATURED
priv #6 |
|
NOTIFY
priv #3 |
|
VIEW
priv #0 |
Method Summary | |
---|---|
static GNPriv |
get(int id)
|
int |
getId()
|
static GNPriv |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GNPriv[] |
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 GNPriv VIEW
public static final GNPriv DOWNLOAD
public static final GNPriv EDITING
public static final GNPriv NOTIFY
public static final GNPriv DYNAMIC
public static final GNPriv FEATURED
Method Detail |
---|
public static GNPriv[] values()
for (GNPriv c : GNPriv.values()) System.out.println(c);
public static GNPriv 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 nullpublic int getId()
public static GNPriv get(int id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |