de.unidu.is.annotation.rework.gui
Class DocumentDetailService

java.lang.Object
  extended byde.unidu.is.annotation.rework.gui.DocumentDetailService
All Implemented Interfaces:
de.izsoz.fiola.dispatcher.EventReciever

public class DocumentDetailService
extends java.lang.Object
implements de.izsoz.fiola.dispatcher.EventReciever

DocumentDetail.java Uses the DocumentAgent to get a document title

Author:
Marc Lechtenfeld

Field Summary
private  java.util.List openSessions
          List of open sessions
protected  ResponseListener responseListener
          Response listener
private  long timeout
          Default timeout
 
Constructor Summary
DocumentDetailService()
          Creates a new instance and registers interest (message performative TELL)
DocumentDetailService(long timeout)
          Creates a new instance and registers interest (message performative TELL)
 
Method Summary
protected  java.lang.String extractTitle(java.lang.String xmlMessage)
          Returns the element "title"
 java.util.List getOpenSessions()
          Returns the open sessions
protected  java.lang.String getReceiverName()
          Returns the receiver agent (DocumentAgent)
 java.lang.String getTitle(java.lang.String documentId)
          Returns the title of the specified document
 boolean handleIZEvent(java.util.EventObject ev)
          Receives responses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

responseListener

protected ResponseListener responseListener
Response listener


openSessions

private java.util.List openSessions
List of open sessions


timeout

private long timeout
Default timeout

Constructor Detail

DocumentDetailService

public DocumentDetailService()
Creates a new instance and registers interest (message performative TELL)


DocumentDetailService

public DocumentDetailService(long timeout)
Creates a new instance and registers interest (message performative TELL)

Method Detail

getTitle

public java.lang.String getTitle(java.lang.String documentId)
Returns the title of the specified document

Parameters:
documentId - ID of the document
Returns:
Title of the document

getReceiverName

protected java.lang.String getReceiverName()
Returns the receiver agent (DocumentAgent)

Returns:
receiver

handleIZEvent

public boolean handleIZEvent(java.util.EventObject ev)
Receives responses

Specified by:
handleIZEvent in interface de.izsoz.fiola.dispatcher.EventReciever
See Also:
EventReciever

getOpenSessions

public java.util.List getOpenSessions()
Returns the open sessions

Returns:
java.util.List

extractTitle

protected java.lang.String extractTitle(java.lang.String xmlMessage)
Returns the element "title"

Parameters:
xmlMessage - XML message