|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PaP.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)
Inserts a specified Play into the RepertoireBase if not already there |
RequestResult |
playPlugOut(java.lang.String pPlayId,
java.lang.String pPlayVer)
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 |
|
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 found.pPlayVer
- 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) throws java.lang.Exception
pPlay
- The Play to be insertedpublic RequestResult playPlugOut(java.lang.String pPlayId, java.lang.String pPlayVer) 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 removedpublic Play validRole(java.lang.String pRole)
pRole
- Role to look up corresponding Play forpublic boolean empty()
public Item listPlays()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |