|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--MicroTAPAS.RepertoireBase
Implementation of the repertoire base service, Director has an instance of it
| Field Summary | |
private java.util.Hashtable |
playInstances
To store active plays along with their manuscripts |
| Constructor Summary | |
RepertoireBase()
Constructor to fill data field values |
|
| Method Summary | |
boolean |
empty()
Simple utility to check if the numer of active Plays are zero |
Item |
listPlays()
Utility to list all active Plays for Debug purposes |
Play |
playPluggedIn(java.lang.String pPlayId,
java.lang.String pPlayVer)
Looks up a specified version of a specified play among the active plays |
RequestResult |
playPlugIn(Play pPlay,
long id)
Inserts a specified Play into the RepertoireBase if not already there |
RequestResult |
playPlugOut(java.lang.String pPlayId,
java.lang.String pPlayVer,
long id)
Removes a specified or all versions of a specified Play from the RepertoireBase if it was there |
Play[] |
playsPluggedIn(java.lang.String pPlayId)
Looks up all versions of a specified play among the active plays |
Play |
validRole(java.lang.String pRole)
Checks validity of a specified Role by finding the corresponding Play for it |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.Hashtable playInstances
| Constructor Detail |
public RepertoireBase()
| Method Detail |
public Play playPluggedIn(java.lang.String pPlayId,
java.lang.String pPlayVer)
pPlayId - Play identifier of the play to be foundpPlayVer - Play version of the play to be found
public Play[] playsPluggedIn(java.lang.String pPlayId)
pPlayId - Play identifier of the play of which all versions to be found
public RequestResult playPlugIn(Play pPlay,
long id)
throws java.lang.Exception
pPlay - The Play to be inserted
java.lang.Exception
public RequestResult playPlugOut(java.lang.String pPlayId,
java.lang.String pPlayVer,
long id)
throws java.lang.Exception
pPlayId - Identifier of the Play to be removedpPlayVer - Version of the Play to be removed, null means all versions of the Play to be removed
java.lang.Exceptionpublic Play validRole(java.lang.String pRole)
pRole - Role to look up corresponding Play for
public boolean empty()
public Item listPlays()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||