com.aetrion.flickr.photos.licenses
Class LicensesInterface

java.lang.Object
  extended by com.aetrion.flickr.photos.licenses.LicensesInterface

public class LicensesInterface
extends java.lang.Object

Interface for working with copyright licenses.

Author:
Anthony Eden

Field Summary
static java.lang.String METHOD_GET_INFO
           
static java.lang.String METHOD_SET_LICENSE
           
 
Constructor Summary
LicensesInterface(java.lang.String apiKey, java.lang.String sharedSecret, Transport transportAPI)
           
 
Method Summary
 java.util.Collection getInfo()
          Fetches a list of available photo licenses for Flickr.
 void setLicense(java.lang.String photoId, int licenseId)
          Sets the license for a photo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_GET_INFO

public static final java.lang.String METHOD_GET_INFO
See Also:
Constant Field Values

METHOD_SET_LICENSE

public static final java.lang.String METHOD_SET_LICENSE
See Also:
Constant Field Values
Constructor Detail

LicensesInterface

public LicensesInterface(java.lang.String apiKey,
                         java.lang.String sharedSecret,
                         Transport transportAPI)
Method Detail

getInfo

public java.util.Collection getInfo()
                             throws java.io.IOException,
                                    org.xml.sax.SAXException,
                                    FlickrException
Fetches a list of available photo licenses for Flickr. This method does not require authentication.

Returns:
A collection of License objects
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

setLicense

public void setLicense(java.lang.String photoId,
                       int licenseId)
                throws java.io.IOException,
                       org.xml.sax.SAXException,
                       FlickrException
Sets the license for a photo. This method requires authentication with 'write' permission.

Parameters:
photoId - The photo to update the license for.
licenseId - The license to apply, or 0 (zero) to remove the current license.
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException


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