|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.evdb.javaapi.operations.BaseOperations
com.evdb.javaapi.operations.PerformerOperations
public class PerformerOperations
Performer operations
Sample code for dealing with performers:
//Create our operation objects
PerformerOperations po = new PerformerOperations();
Performer p = po.get("P0-123-1234-00");
p.setShortBio("Test API Bio");
po.modify(p);
p = po.get("P0-123-1234-00");
assertEquals(p.getSpid(), "P0-123-1234-00");
assertEquals(p.getName(), "API Test Performer");
assertEquals(p.getShortBio(), "Test API Bio");
| Field Summary |
|---|
| Fields inherited from class com.evdb.javaapi.operations.BaseOperations |
|---|
serverCommunication |
| Constructor Summary | |
|---|---|
PerformerOperations()
|
|
| Method Summary | |
|---|---|
void |
addComment(java.lang.String spid,
Comment comment)
Add a comment to a performer |
void |
addImage(java.lang.String spid,
Image image)
Add an image to the given performer |
void |
addLink(java.lang.String spid,
Link link)
Add a link to the performer |
int |
addProperty(java.lang.String spid,
Property property)
Add a property |
void |
addTags(java.lang.String spid,
java.util.List<Tag> tagList)
Add tags to a performer |
Performer |
create(Performer p)
Create a new performer |
void |
deleteComment(Comment comment)
Delete a comment |
void |
deleteImage(java.lang.String spid,
Image image)
Remove the image |
void |
deleteLink(java.lang.String spid,
Link link)
Remove a link from the performer |
void |
deleteProperty(java.lang.String spid,
Property property)
Delete a property |
void |
deleteTags(java.lang.String spid,
java.util.List<Tag> tagList)
Add tags to an performer |
Performer |
get(java.lang.String spid)
Return a performer from an SPID |
java.util.List<Property> |
getProperties(java.lang.String spid)
Return a list of properties |
java.util.List<Tag> |
getTags(java.lang.String spid)
List the tags for a given SPID |
Performer |
modify(Performer p)
Modify a performer |
void |
modifyComment(Comment comment)
Modify a comment |
void |
restore(java.lang.String spid)
Restores (i.e. |
SearchResult |
search(PerformerSearchRequest searchRequest)
Performer search request |
void |
withdraw(java.lang.String spid,
java.lang.String withdrawNote)
Withdraws an performer |
| Methods inherited from class com.evdb.javaapi.operations.BaseOperations |
|---|
addComment, addImage, addLink, addProperty, deleteComment, deleteImage, 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 |
|---|
public PerformerOperations()
| Method Detail |
|---|
public Performer get(java.lang.String spid)
throws EVDBRuntimeException,
EVDBAPIException
spid - SPID of the performer to lookup
EVDBRuntimeException
EVDBAPIException
public Performer create(Performer p)
throws EVDBRuntimeException,
EVDBAPIException
//create our operation objects
PerformerOperations po = new PerformerOperations();
Performer p = new Performer();
p.setName("API Test");
p.setShortBio("Just a API test");
//now call create
p = po.create(p);
assert(p.getSpid().length() > 0);
//now get the performer
Performer p2 = po.get(p.getSpid());
assertEquals(p2.getName(), "API Test");
assertEquals(p2.getShortBio(), "Just a API test");
p - Performer to create
EVDBRuntimeException
EVDBAPIException
public Performer modify(Performer p)
throws EVDBRuntimeException,
EVDBAPIException
p - Performer to modify
EVDBRuntimeException
EVDBAPIException
public void withdraw(java.lang.String spid,
java.lang.String withdrawNote)
throws EVDBRuntimeException,
EVDBAPIException
spid - SPID of the performer to withdrawwithdrawNote - Note explaining the withdraw
java.lang.Exception
EVDBRuntimeException
EVDBAPIException
public void restore(java.lang.String spid)
throws EVDBRuntimeException,
EVDBAPIException
spid - SVID of the performer to restore
java.lang.Exception
EVDBRuntimeException
EVDBAPIException
public void addTags(java.lang.String spid,
java.util.List<Tag> tagList)
throws EVDBRuntimeException,
EVDBAPIException
spid - SPIDtagList - The list of tags to add
EVDBRuntimeException
EVDBAPIException
public void deleteTags(java.lang.String spid,
java.util.List<Tag> tagList)
throws EVDBRuntimeException,
EVDBAPIException
spid - Performer SPIDtagList - The list of tags to add
EVDBRuntimeException
EVDBAPIException
public java.util.List<Tag> getTags(java.lang.String spid)
throws EVDBRuntimeException,
EVDBAPIException
spid -
EVDBRuntimeException
EVDBAPIException
public void addComment(java.lang.String spid,
Comment comment)
throws EVDBRuntimeException,
EVDBAPIException
spid - SPID of the performer to add the comment tocomment - Comment object
EVDBRuntimeException
EVDBAPIException
public void modifyComment(Comment comment)
throws EVDBRuntimeException,
EVDBAPIException
comment - Comment to modify
EVDBRuntimeException
EVDBAPIException
public void deleteComment(Comment comment)
throws EVDBRuntimeException,
EVDBAPIException
comment - Comment to delete
EVDBRuntimeException
EVDBAPIException
public void addLink(java.lang.String spid,
Link link)
throws EVDBRuntimeException,
EVDBAPIException
spid - SPID to add the link tolink - Link object
EVDBRuntimeException
EVDBAPIException
public void deleteLink(java.lang.String spid,
Link link)
throws EVDBRuntimeException,
EVDBAPIException
deleteLink in class BaseOperationsspid - SPID of the performerlink -
EVDBRuntimeException
EVDBAPIException
public void addImage(java.lang.String spid,
Image image)
throws EVDBRuntimeException,
EVDBAPIException
spid - image -
EVDBRuntimeException
EVDBAPIException
public void deleteImage(java.lang.String spid,
Image image)
throws EVDBRuntimeException,
EVDBAPIException
spid - image -
EVDBRuntimeException
EVDBAPIException
public void deleteProperty(java.lang.String spid,
Property property)
throws EVDBRuntimeException,
EVDBAPIException
spid - property -
EVDBRuntimeException
EVDBAPIException
public int addProperty(java.lang.String spid,
Property property)
throws EVDBRuntimeException,
EVDBAPIException
spid - property -
EVDBRuntimeException
EVDBAPIException
public java.util.List<Property> getProperties(java.lang.String spid)
throws EVDBRuntimeException,
EVDBAPIException
spid -
EVDBRuntimeException
EVDBAPIException
public SearchResult search(PerformerSearchRequest searchRequest)
throws EVDBRuntimeException,
EVDBAPIException
searchRequest - PerformerSearchRequest object
java.lang.Exception
EVDBRuntimeException
EVDBAPIException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||