disciplex.basic
Class LateCommerService

java.lang.Object
  |
  +--disciplex.basic.LateCommerService
All Implemented Interfaces:
ConnectionListener, Service

public class LateCommerService
extends java.lang.Object
implements Service, ConnectionListener

The main task for the LateCommerService is to privide late commers with the current document, that is being collaborated on. The service adds it self as a service at the Controller and as a connection listener at the Controller. When a client logs on, an addSubtreeCommand is sent to the client if a document exits. The addSubtreeCommand contains all the documents that is in the repository. If the client has subscribed with rules, these are used accordingly.

Copyright (c) 2002 Rutgers, The State University of New Jersey

Since:
Disciple v3.0
Version:
$Revision: 1.2 $

Constructor Summary
LateCommerService()
           
LateCommerService(Controller control)
           
 
Method Summary
 void connectionAdded(Connection connection, org.w3c.dom.Element status)
           
 void connectionChanged(Connection connection, org.w3c.dom.Element status)
           
 void connectionRemoved(Connection connection)
           
 Controller getController()
           
 void setController(Controller controller)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LateCommerService

public LateCommerService()

LateCommerService

public LateCommerService(Controller control)
Method Detail

connectionChanged

public void connectionChanged(Connection connection,
                              org.w3c.dom.Element status)
Specified by:
connectionChanged in interface ConnectionListener
Parameters:
connection -
status -

connectionAdded

public void connectionAdded(Connection connection,
                            org.w3c.dom.Element status)
Specified by:
connectionAdded in interface ConnectionListener
Parameters:
connection -
status -

connectionRemoved

public void connectionRemoved(Connection connection)
Specified by:
connectionRemoved in interface ConnectionListener
Parameters:
connection -

getController

public Controller getController()
Specified by:
getController in interface Service
Returns:
disciple.core.Controller

setController

public void setController(Controller controller)
Specified by:
setController in interface Service
Parameters:
controller -
Since:
Disciple v3.0


Copyright (c) 2003 Rutgers, The State University of New Jersey