org.jickr
Enum Permission

java.lang.Object
  extended by java.lang.Enum<Permission>
      extended by org.jickr.Permission
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Permission>

public enum Permission
extends java.lang.Enum<Permission>

Authentication Permission allowed. They are ordered as: READ, WRITE, DELETE. Higher permissions also allow access to lower permissions.


Enum Constant Summary
DELETE
          DELETE permission allows the program to delete photos, if the authenticated user has permission to do it on Flickr.
READ
          READ permission allows the program to look at private photos that the authenticated user has permission to see on Flickr.
WRITE
          WRITE permission allows the program to modify data about photos on Flickr, if the authenticated user has permission to do it on Flickr.
 
Method Summary
static Permission valueOf(java.lang.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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

READ

public static final Permission READ
READ permission allows the program to look at private photos that the authenticated user has permission to see on Flickr.


WRITE

public static final Permission WRITE
WRITE permission allows the program to modify data about photos on Flickr, if the authenticated user has permission to do it on Flickr.


DELETE

public static final Permission DELETE
DELETE permission allows the program to delete photos, if the authenticated user has permission to do it on Flickr.

Method Detail

values

public static final Permission[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Permission c : Permission.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Permission valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name