com.evdb.javaapi.operations
Class ImageOperations

java.lang.Object
  extended by com.evdb.javaapi.operations.BaseOperations
      extended by com.evdb.javaapi.operations.ImageOperations

public class ImageOperations
extends BaseOperations

Image operations

Author:
tylerv

Field Summary
 
Fields inherited from class com.evdb.javaapi.operations.BaseOperations
serverCommunication
 
Constructor Summary
ImageOperations()
           
 
Method Summary
 java.lang.String uploadImageFromLocalFile(java.io.File file, java.lang.String caption)
          Add an image form the local filesystem
 java.lang.String uploadImageFromURL(java.lang.String url, java.lang.String caption)
          Add an image to the EVDB system
 
Methods inherited from class com.evdb.javaapi.operations.BaseOperations
addComment, addImage, addLink, addProperty, deleteComment, deleteImage, deleteLink, deleteProperty, getUnmarshaller, listProperties, listTags, modifyComment, modifyTags, unmarshallRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageOperations

public ImageOperations()
Method Detail

uploadImageFromURL

public java.lang.String uploadImageFromURL(java.lang.String url,
                                           java.lang.String caption)
                                    throws EVDBRuntimeException,
                                           EVDBAPIException
Add an image to the EVDB system

Parameters:
url -
caption -
Returns:
The image ID used
Throws:
EVDBRuntimeException
EVDBAPIException

uploadImageFromLocalFile

public java.lang.String uploadImageFromLocalFile(java.io.File file,
                                                 java.lang.String caption)
                                          throws EVDBRuntimeException,
                                                 EVDBAPIException
Add an image form the local filesystem

Parameters:
file - File to upload
caption -
Returns:
id of the newly added image
Throws:
EVDBRuntimeException
EVDBAPIException


Copyright © 2007 Eventful Inc. All Rights Reserved.