it.geosolutions.geonetwork.util
Enum GNPriv
java.lang.Object
java.lang.Enum<GNPriv>
it.geosolutions.geonetwork.util.GNPriv
- All Implemented Interfaces:
- Serializable, Comparable<GNPriv>
public enum GNPriv
- extends Enum<GNPriv>
Operation privileges as required by GeoNetwork.
Operations are defined as a string of digits, each representing a granted privilege:
- 0: view
- 1: download
- 2: editing
- 3: notify
- 4: dynamic
- 5: featured
- Author:
- ETj (etj at geo-solutions.it)
|
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. |
VIEW
public static final GNPriv VIEW
DOWNLOAD
public static final GNPriv DOWNLOAD
EDITING
public static final GNPriv EDITING
NOTIFY
public static final GNPriv NOTIFY
DYNAMIC
public static final GNPriv DYNAMIC
FEATURED
public static final GNPriv FEATURED
values
public static GNPriv[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (GNPriv c : GNPriv.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GNPriv valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getId
public int getId()
get
public static GNPriv get(int id)
Copyright © 2011 GeoSolutions. All Rights Reserved.