|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scohen.juploadr.uploadapi.ImageUploadApi
org.scohen.juploadr.uploadapi.flickrrest.RestFlickrApi
This is the REST based implementation of the FlickrApi
| Field Summary | |
Configuration |
config
|
static java.lang.String |
FLICKR_API_KEY
|
static java.lang.String |
FLICKR_SHARED_SECRET
|
| Fields inherited from class org.scohen.juploadr.uploadapi.ImageUploadApi |
icon |
| Constructor Summary | |
RestFlickrApi()
|
|
| Method Summary | |
static void |
addPhotoSet(PhotoSet set)
|
java.util.List |
allAccounts()
Get a list of all the accounts in this protocol implementation |
boolean |
authenticate(Account account)
Authenticate with the new flickr auth api. |
boolean |
executeMethod(FlickrMethod method)
|
java.lang.Class[] |
getConfiurationDialogs()
Returns the class names of configuration dialogs for this API. |
Account |
getCurrentAccount()
Returns the currently enabled account |
static ImageUploadApi |
getInstance()
|
java.lang.String |
getSiteName()
Returns the friendly name of the upload site. |
void |
initialize()
Do any initialization stuff that needs to be done. |
boolean |
isCurrentAccountNullAccount()
|
Account |
newAccount(java.lang.String name)
Creates a new account with the given name |
void |
postProcessAllUploads(java.util.Collection images)
Event handler that is fired after all photos have finished uploading |
void |
postProcessUpload(UploadCompleteEvent e,
ImageAttributes atts)
|
void |
setCurrentAccount(Account account)
Sets the currently enabled acconut to the one passed in |
static void |
setPhotoSets(java.util.List sets)
|
PopupHandler |
thumbnailRightClicked(Decorations parent,
JUploadr uploadr,
ImageAttributes clicked)
|
void |
upload(UploadImage imageAttributes,
UploadStatusMonitor monitor)
Uploads the image and data in imageAttributes for Flickr
user userInfo and notifying monitor of
upload bar. |
PopupHandler |
windowRightClicked(Decorations parent,
JUploadr clicked)
|
| Methods inherited from class org.scohen.juploadr.uploadapi.ImageUploadApi |
allAccountsForAllApis, authenticateCurrentAccount, changeImplementation, getIcon, getRegisteredImplemtations, isCurrentAccountAuthenticated, versionCheck |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String FLICKR_SHARED_SECRET
public static final java.lang.String FLICKR_API_KEY
public Configuration config
| Constructor Detail |
public RestFlickrApi()
| Method Detail |
public static ImageUploadApi getInstance()
public java.lang.String getSiteName()
ImageUploadApi
getSiteName in class ImageUploadApi
public void upload(UploadImage imageAttributes,
UploadStatusMonitor monitor)
throws UploadFailedException,
CommunicationException
ImageUploadApiimageAttributes for Flickr
user userInfo and notifying monitor of
upload bar.
upload in class ImageUploadApiimageAttributes - the image to be uploadedmonitor - The monitor that should be notified of upload bar
UploadFailedException - When a problem occurs during the uploading
CommunicationExceptionorg.scohen.juploadr.uploadapi.ImageUploadApi#upload(org.scohen.juploadr.uploadapi.UserInfo,
org.scohen.juploadr.app.UploadImage,
org.scohen.juploadr.event.UploadStatusMonitor)public Account getCurrentAccount()
ImageUploadApi
getCurrentAccount in class ImageUploadApipublic Account newAccount(java.lang.String name)
ImageUploadApi
newAccount in class ImageUploadApiname - the name to give the account
public void setCurrentAccount(Account account)
ImageUploadApi
setCurrentAccount in class ImageUploadApiaccount - the account to enable.public java.util.List allAccounts()
ImageUploadApi
allAccounts in class ImageUploadApipublic boolean isCurrentAccountNullAccount()
isCurrentAccountNullAccount in class ImageUploadApi
public boolean authenticate(Account account)
throws ProtocolException,
CommunicationException
ImageUploadApi
authenticate in class ImageUploadApiProtocolException
CommunicationExceptionpublic void initialize()
ImageUploadApi
initialize in class ImageUploadApipublic java.lang.Class[] getConfiurationDialogs()
ImageUploadApi
getConfiurationDialogs in class ImageUploadApi
public PopupHandler windowRightClicked(Decorations parent,
JUploadr clicked)
windowRightClicked in class ImageUploadApi
public PopupHandler thumbnailRightClicked(Decorations parent,
JUploadr uploadr,
ImageAttributes clicked)
thumbnailRightClicked in class ImageUploadApipublic static void setPhotoSets(java.util.List sets)
public static void addPhotoSet(PhotoSet set)
public void postProcessUpload(UploadCompleteEvent e,
ImageAttributes atts)
postProcessUpload in class ImageUploadApipublic void postProcessAllUploads(java.util.Collection images)
ImageUploadApi
postProcessAllUploads in class ImageUploadApiimages - All the photos that have been uploaded: consists of
ImageAttributes objectspublic boolean executeMethod(FlickrMethod method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||