com.aetrion.flickr.auth
Class Permission

java.lang.Object
  extended by com.aetrion.flickr.auth.Permission
All Implemented Interfaces:
java.io.Serializable

public class Permission
extends java.lang.Object
implements java.io.Serializable

Enum class for Permissions defined for auth results.

Author:
Anthony Eden
See Also:
Serialized Form

Field Summary
static Permission DELETE
          Delete (and Write, Read).
static int DELETE_TYPE
          Type value for Delete Permission (and Write, Read).
static Permission NONE
          No permissions.
static int NONE_TYPE
          Type value for no permissions If no permissions are requested, the application will only display public photos.
static Permission READ
          Read Permission.
static int READ_TYPE
          Type value for Read Permission.
static Permission WRITE
          Write (and Read).
static int WRITE_TYPE
          Type value for Write Permission (and Read).
 
Method Summary
static Permission fromString(java.lang.String permission)
          Convert the permission String to a Permission object.
 int getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE_TYPE

public static final int NONE_TYPE
Type value for no permissions If no permissions are requested, the application will only display public photos.

See Also:
Constant Field Values

READ_TYPE

public static final int READ_TYPE
Type value for Read Permission. You will be able to see all your photos via the application. (This includes your private photos.)

See Also:
Constant Field Values

WRITE_TYPE

public static final int WRITE_TYPE
Type value for Write Permission (and Read). You will be able to see all your photos, upload new photos, and add, edit or delete photo metadata (titles, descriptions, tags, etc.).

See Also:
Constant Field Values

DELETE_TYPE

public static final int DELETE_TYPE
Type value for Delete Permission (and Write, Read). You are able to delete Flickr photos via the application.

See Also:
Constant Field Values

NONE

public static final Permission NONE
No permissions. If no permissions are requested, the application will only display public photos.


READ

public static final Permission READ
Read Permission. You will be able to see all your photos via the application. (This includes your private photos.)


WRITE

public static final Permission WRITE
Write (and Read). You will be able to see all your photos, upload new photos, and add, edit or delete photo metadata (titles, descriptions, tags, etc.).


DELETE

public static final Permission DELETE
Delete (and Write, Read). You are able to delete Flickr photos via the application.

Method Detail

getType

public int getType()

fromString

public static Permission fromString(java.lang.String permission)
Convert the permission String to a Permission object.

Parameters:
permission - The permission String
Returns:
The Permission object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.