it.geosolutions.geonetwork.util
Enum GNPriv

java.lang.Object
  extended by java.lang.Enum<GNPriv>
      extended by it.geosolutions.geonetwork.util.GNPriv
All Implemented Interfaces:
Serializable, Comparable<GNPriv>

public enum GNPriv
extends 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:

Anyway the DB init scripts in geonetwork define

 (note the differences starting from id 4).

We'll align to this latter definitions. Anyway, you may use the GNPrivAlt enum as alternative in case you need it.

Author:
ETj (etj at geo-solutions.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

VIEW

public static final GNPriv VIEW
priv #0


DOWNLOAD

public static final GNPriv DOWNLOAD
priv #1


EDITING

public static final GNPriv EDITING
priv #2


NOTIFY

public static final GNPriv NOTIFY
priv #3


DYNAMIC

public static final GNPriv DYNAMIC
priv #5


FEATURED

public static final GNPriv FEATURED
priv #6

Method Detail

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-2012 GeoSolutions. All Rights Reserved.