com.google.code.facebookapi
Enum FacebookExtendedPerm

java.lang.Object
  extended by java.lang.Enum<FacebookExtendedPerm>
      extended by com.google.code.facebookapi.FacebookExtendedPerm
All Implemented Interfaces:
java.io.Serializable, java.lang.CharSequence, java.lang.Comparable<FacebookExtendedPerm>

Deprecated. this class exists for legacy support only. Please use Permission instead.

@Deprecated
public enum FacebookExtendedPerm
extends java.lang.Enum<FacebookExtendedPerm>
implements java.lang.CharSequence

An enumeration of the extended permissions available for applications using the Facebook API.
Send users to the result of authorizationUrl(String, CharSequence) to request a permission.


Enum Constant Summary
MARKETPLACE
          Deprecated. this class exists for legacy support only. Please use Permission instead.
PHOTO_UPLOAD
          Deprecated. this class exists for legacy support only. Please use Permission instead.
SMS
          Deprecated. this class exists for legacy support only. Please use Permission instead.
STATUS_UPDATE
          Deprecated. this class exists for legacy support only. Please use Permission instead.
 
Field Summary
static java.lang.String PERM_AUTHORIZE_ADDR
          Deprecated. The unchanging part of the URL to use for authorizing extended permissions.
 
Method Summary
static java.net.URL authorizationUrl(java.lang.String apiKey, java.lang.CharSequence permission)
          Deprecated. this class exists for legacy support only. Please use Permission instead.
static java.net.URL authorizationUrl(java.lang.String apiKey, FacebookExtendedPerm permission)
          Deprecated. this class exists for legacy support only. Please use Permission instead.
 char charAt(int index)
          Deprecated.  
 java.lang.String getPermissionName()
          Deprecated. this class exists for legacy support only. Please use Permission instead.
 int length()
          Deprecated.  
 void setPermissionName(java.lang.String permissionName)
          Deprecated. this class exists for legacy support only. Please use Permission instead.
 java.lang.CharSequence subSequence(int start, int end)
          Deprecated.  
 java.lang.String toString()
          Deprecated.  
static FacebookExtendedPerm valueOf(java.lang.String name)
          Deprecated. Returns the enum constant of this type with the specified name.
static FacebookExtendedPerm[] values()
          Deprecated. 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STATUS_UPDATE

@Deprecated
public static final FacebookExtendedPerm STATUS_UPDATE
Deprecated. this class exists for legacy support only. Please use Permission instead.
Required for users_setStatus method

See Also:
FacebookRestClient#users_setStatus

PHOTO_UPLOAD

@Deprecated
public static final FacebookExtendedPerm PHOTO_UPLOAD
Deprecated. this class exists for legacy support only. Please use Permission instead.
Required for photos_upload and photos_addTag API methods

See Also:
FacebookRestClient#photos_upload, FacebookRestClient#photos_addTag

MARKETPLACE

@Deprecated
public static final FacebookExtendedPerm MARKETPLACE
Deprecated. this class exists for legacy support only. Please use Permission instead.
Required for marketplace_createListing and marketplace_removeListing API methods

See Also:
FacebookRestClient#marketplace_createListing, FacebookRestClient#marketplace_editListing, FacebookRestClient#marketplace_removeListing(Long)

SMS

@Deprecated
public static final FacebookExtendedPerm SMS
Deprecated. this class exists for legacy support only. Please use Permission instead.
Required for sending SMS to the user

See Also:
FacebookRestClient#sms_canSend, FacebookRestClient#sms_sendMessage
Field Detail

PERM_AUTHORIZE_ADDR

public static final java.lang.String PERM_AUTHORIZE_ADDR
Deprecated. 
The unchanging part of the URL to use for authorizing extended permissions.

See Also:
Constant Field Values
Method Detail

values

public static FacebookExtendedPerm[] values()
Deprecated. 
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 (FacebookExtendedPerm c : FacebookExtendedPerm.values())
    System.out.println(c);

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

valueOf

public static FacebookExtendedPerm valueOf(java.lang.String name)
Deprecated. 
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
java.lang.NullPointerException - if the argument is null

setPermissionName

@Deprecated
public void setPermissionName(java.lang.String permissionName)
Deprecated. this class exists for legacy support only. Please use Permission instead.

Parameters:
permissionName -

getPermissionName

@Deprecated
public java.lang.String getPermissionName()
Deprecated. this class exists for legacy support only. Please use Permission instead.

Returns:
the name by which the Facebook Platform refers to this permission.

authorizationUrl

@Deprecated
public static java.net.URL authorizationUrl(java.lang.String apiKey,
                                                       FacebookExtendedPerm permission)
                                     throws java.io.IOException
Deprecated. this class exists for legacy support only. Please use Permission instead.

The URL to which to send the user to request the extended permission.

Parameters:
apiKey -
permission -
Returns:
a URL
Throws:
java.io.IOException - if something bad happens.

authorizationUrl

@Deprecated
public static java.net.URL authorizationUrl(java.lang.String apiKey,
                                                       java.lang.CharSequence permission)
                                     throws java.io.IOException
Deprecated. this class exists for legacy support only. Please use Permission instead.

The URL to which to send the user to request the extended permission.

Parameters:
apiKey -
permission -
Returns:
a URL
Throws:
java.io.IOException - if something bad happens.

charAt

public char charAt(int index)
Deprecated. 
Specified by:
charAt in interface java.lang.CharSequence

length

public int length()
Deprecated. 
Specified by:
length in interface java.lang.CharSequence

subSequence

public java.lang.CharSequence subSequence(int start,
                                          int end)
Deprecated. 
Specified by:
subSequence in interface java.lang.CharSequence

toString

public java.lang.String toString()
Deprecated. 
Specified by:
toString in interface java.lang.CharSequence
Overrides:
toString in class java.lang.Enum<FacebookExtendedPerm>


Copyright © 2010. All Rights Reserved.