WebFlow.Collaborator
Class CollaboratorImpl

WebFlow.Collaborator.CollaboratorImpl

public class CollaboratorImpl

This class is for the collaborative visualization using the client-pull. Each user has this module for the collaboration


Constructor Summary
CollaboratorImpl(org.omg.CORBA.Object peer, java.lang.String msg)
          Constructor for Collaborator module
 
Method Summary
 byte[] getBinaryBlock()
          get binary block and read it.
 int getCollabMode()
          get the collaboration mode
 void getEvent(org.omg.CORBA.Object to)
          receiving from the WebFlow event invocation from the master
 boolean getEventFlag()
          get event status
 boolean getIsMaster()
          get the control type
 java.lang.String getUserId()
          get User I.D.
 boolean readFile(java.lang.String username)
          Read the JSP page
 void runfireEvent(java.lang.String eventID, java.lang.String eventType)
          Invoke the event.
 void setCollabMode(int mode)
          set the collaboration mode
 void setCollabProperties(java.lang.String propspath)
          set the propertiy file.
 void setEventFlag(boolean flag)
          set event flag
 void setIsMaster(boolean flag)
          set Master or slave
 void setUserId(java.lang.String username)
          set user name as I.D.
 java.lang.String test()
          Testing whether or not the collaborator mudole is up
 void writeFile(java.lang.String username, java.lang.String urlname)
          Downloading the file and save it.
 void writeJPG(java.lang.String username, java.lang.String urlname)
          Download the file and save it which is transformed as the JSP page.
 void writeJSP(java.lang.String username)
          If you join the collaborative session, the JSP page will be generated forchecking your event from the master
 void writeJSPInitial(java.lang.String username)
          Before you get the JSP page, You will get the intial JSP page for generating your JSP page.
 void writePullFile(java.lang.String username, java.lang.String urlname)
          Download the file and save it which is transformed as Client pull page.
 

Constructor Detail

CollaboratorImpl

public CollaboratorImpl(org.omg.CORBA.Object peer,
                        java.lang.String msg)
                 throws WebFlow.NullPointerException
Constructor for Collaborator module
Method Detail

test

public java.lang.String test()
Testing whether or not the collaborator mudole is up
Returns:
returns String

setCollabProperties

public void setCollabProperties(java.lang.String propspath)
set the propertiy file.
Parameters:
propspath - property file path

getEvent

public void getEvent(org.omg.CORBA.Object to)
receiving from the WebFlow event invocation from the master
Parameters:
to - CORBA Object

writeJSP

public void writeJSP(java.lang.String username)
If you join the collaborative session, the JSP page will be generated forchecking your event from the master
Parameters:
username - User name

writeJSPInitial

public void writeJSPInitial(java.lang.String username)
Before you get the JSP page, You will get the intial JSP page for generating your JSP page.
Parameters:
username - User name

writeFile

public void writeFile(java.lang.String username,
                      java.lang.String urlname)
Downloading the file and save it.
Parameters:
username - User Name
urlname - Url name

writeJPG

public void writeJPG(java.lang.String username,
                     java.lang.String urlname)
Download the file and save it which is transformed as the JSP page.
Parameters:
username - User Name
urlname - URL name

writePullFile

public void writePullFile(java.lang.String username,
                          java.lang.String urlname)
Download the file and save it which is transformed as Client pull page.
Parameters:
username - User Name
urlname - URL name

readFile

public boolean readFile(java.lang.String username)
Read the JSP page
Parameters:
username - User Name
Returns:
boolean

getBinaryBlock

public byte[] getBinaryBlock()
get binary block and read it.
Returns:
byte array

runfireEvent

public void runfireEvent(java.lang.String eventID,
                         java.lang.String eventType)
Invoke the event.
Parameters:
eventID - Event I.D.
eventType - what kind of your event

setEventFlag

public void setEventFlag(boolean flag)
set event flag
Parameters:
flag - use boolean type

setUserId

public void setUserId(java.lang.String username)
set user name as I.D.
Parameters:
username - User Name

setIsMaster

public void setIsMaster(boolean flag)
set Master or slave
Parameters:
flag - set master or slave

setCollabMode

public void setCollabMode(int mode)
set the collaboration mode
Parameters:
mode - group number

getEventFlag

public boolean getEventFlag()
get event status
Returns:
returns boolean

getUserId

public java.lang.String getUserId()
get User I.D.
Returns:
returns user I.D.

getIsMaster

public boolean getIsMaster()
get the control type
Returns:
returns the control type

getCollabMode

public int getCollabMode()
get the collaboration mode
Returns:
returns the mode