com.evdb.javaapi.operations
Class VenueOperations

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

public class VenueOperations
extends BaseOperations

Venue object operations

Author:
tylerv

Field Summary
 
Fields inherited from class com.evdb.javaapi.operations.BaseOperations
serverCommunication
 
Constructor Summary
VenueOperations()
           
 
Method Summary
 void addComment(java.lang.String svid, Comment comment)
          Add a comment to an event
 void addImage(java.lang.String svid, Image image)
          Add an image to the given event
 void addLink(java.lang.String svid, Link link)
          Add a link to the venue
 int addProperty(java.lang.String svid, Property property)
          Add a property
 void addTags(java.lang.String svid, java.util.List<Tag> tagList)
          Add tags to a venue
 Venue create(Venue v)
          Create a new venue
 void deleteComment(Comment comment)
          Delete a comment
 void deleteImage(java.lang.String svid, Image image)
          Remove the image
 void deleteLink(Link link)
          Remove a link from the venue
 void deleteProperty(java.lang.String svid, Property property)
          Delete a property
 void deleteTags(java.lang.String svid, java.util.List<Tag> tagList)
          Add tags to an venue
 Venue get(java.lang.String svid)
          Return a venue from an SVID
 java.util.List<Tag> getTags(java.lang.String svid)
          List the tags for a given SVID
 Venue modify(Venue v)
          Modify a venue
 void modifyComment(Comment comment)
          Modify a comment
 void restore(java.lang.String svid)
          Restores (i.e.
 SearchResult search(VenueSearchRequest searchRequest)
          Venue search request
 void withdraw(java.lang.String svid, java.lang.String withdrawNote)
          Withdraws an venue
 
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

VenueOperations

public VenueOperations()
Method Detail

get

public Venue get(java.lang.String svid)
          throws EVDBRuntimeException,
                 EVDBAPIException
Return a venue from an SVID

Parameters:
svid - SVID of the venue to lookup
Returns:
the venue object
Throws:
EVDBRuntimeException
EVDBAPIException

create

public Venue create(Venue v)
             throws EVDBRuntimeException,
                    EVDBAPIException
Create a new venue

Parameters:
v -
Returns:
The newly created Venue
Throws:
EVDBRuntimeException
EVDBAPIException

modify

public Venue modify(Venue v)
             throws EVDBRuntimeException,
                    EVDBAPIException
Modify a venue

Parameters:
v -
Returns:
Venue the modified Venue
Throws:
EVDBRuntimeException
EVDBAPIException

withdraw

public void withdraw(java.lang.String svid,
                     java.lang.String withdrawNote)
              throws EVDBRuntimeException,
                     EVDBAPIException
Withdraws an venue

Parameters:
svid - SVID of the venue to withdraw
withdrawNote - Note explaining the withdraw
Throws:
java.lang.Exception
EVDBRuntimeException
EVDBAPIException

restore

public void restore(java.lang.String svid)
             throws EVDBRuntimeException,
                    EVDBAPIException
Restores (i.e. un-withdraws) a venue

Parameters:
svid - SVID of the venue to restore
Throws:
java.lang.Exception
EVDBRuntimeException
EVDBAPIException

addTags

public void addTags(java.lang.String svid,
                    java.util.List<Tag> tagList)
             throws EVDBRuntimeException,
                    EVDBAPIException
Add tags to a venue

Parameters:
svid - SVID
tagList - The list of tags to add
Throws:
EVDBRuntimeException
EVDBAPIException

deleteTags

public void deleteTags(java.lang.String svid,
                       java.util.List<Tag> tagList)
                throws EVDBRuntimeException,
                       EVDBAPIException
Add tags to an venue

Parameters:
svid - Venue SVID
tagList - The list of tags to add
Throws:
EVDBRuntimeException
EVDBAPIException

getTags

public java.util.List<Tag> getTags(java.lang.String svid)
                            throws EVDBRuntimeException,
                                   EVDBAPIException
List the tags for a given SVID

Parameters:
svid -
Returns:
List
Throws:
EVDBRuntimeException
EVDBAPIException

addComment

public void addComment(java.lang.String svid,
                       Comment comment)
                throws EVDBRuntimeException,
                       EVDBAPIException
Add a comment to an event

Parameters:
svid -
comment -
Throws:
EVDBRuntimeException
EVDBAPIException

modifyComment

public void modifyComment(Comment comment)
                   throws EVDBRuntimeException,
                          EVDBAPIException
Modify a comment

Parameters:
comment -
Throws:
EVDBRuntimeException
EVDBAPIException

deleteComment

public void deleteComment(Comment comment)
                   throws EVDBRuntimeException,
                          EVDBAPIException
Delete a comment

Parameters:
comment -
Throws:
EVDBRuntimeException
EVDBAPIException

addLink

public void addLink(java.lang.String svid,
                    Link link)
             throws EVDBRuntimeException,
                    EVDBAPIException
Add a link to the venue

Parameters:
svid - the venue id
link -
Throws:
EVDBRuntimeException
EVDBAPIException

deleteLink

public void deleteLink(Link link)
                throws EVDBRuntimeException,
                       EVDBAPIException
Remove a link from the venue

Parameters:
link -
Throws:
EVDBRuntimeException
EVDBAPIException

addImage

public void addImage(java.lang.String svid,
                     Image image)
              throws EVDBRuntimeException,
                     EVDBAPIException
Add an image to the given event

Parameters:
svid -
image -
Throws:
EVDBRuntimeException
EVDBAPIException

deleteImage

public void deleteImage(java.lang.String svid,
                        Image image)
                 throws EVDBRuntimeException,
                        EVDBAPIException
Remove the image

Parameters:
svid -
image -
Throws:
EVDBRuntimeException
EVDBAPIException

deleteProperty

public void deleteProperty(java.lang.String svid,
                           Property property)
                    throws EVDBRuntimeException,
                           EVDBAPIException
Delete a property

Parameters:
svid -
property -
Throws:
EVDBRuntimeException
EVDBAPIException

addProperty

public int addProperty(java.lang.String svid,
                       Property property)
                throws EVDBRuntimeException,
                       EVDBAPIException
Add a property

Parameters:
svid -
property -
Throws:
EVDBRuntimeException
EVDBAPIException

search

public SearchResult search(VenueSearchRequest searchRequest)
                    throws EVDBRuntimeException,
                           EVDBAPIException
Venue search request

Parameters:
searchRequest -
Returns:
Search result object
Throws:
java.lang.Exception
EVDBRuntimeException
EVDBAPIException


Copyright © 2007 Eventful Inc. All Rights Reserved.