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.
Operations are defined as a string of digits, each representing a granted privilege:

Author:
ETj (etj at geo-solutions.it)

Enum Constant Summary
DOWNLOAD
           
DYNAMIC
           
EDITING
           
FEATURED
           
NOTIFY
           
VIEW
           
 
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

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