|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectc408h006.OmniEditor
OmniEditor allows multiple users access to shared data. It is the web service through which all clients are connected to the shared data. Clients perform changes/actions on files by sending messages to the OmniEditor Web Service. A client must first be connected to the OmniEditor in order to perform any action on a file.
Constructor Summary | |
OmniEditor()
Constructs an instance of this class. |
Method Summary | |
java.lang.String |
disConnect(int id,
java.lang.String fileName)
Disconnect a User from the OmniEditor system. |
FileState |
getFileState(int id,
java.lang.String fileName)
Return the current state of the file. |
int |
makeConnection(java.lang.String fileName)
Establishes a connection to a file specified by the user. |
java.lang.String |
sendCommand(Command c)
Send the command to be performed on the file to appropriate Connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OmniEditor()
Method Detail |
public int makeConnection(java.lang.String fileName)
fileName
- The name of the file to connect to
public java.lang.String disConnect(int id, java.lang.String fileName)
id
- The id of the User to disconnectfileName
- The file the User is connected to
public java.lang.String sendCommand(Command c)
c
- A Command object which contains the command to be performed and the
name of the file on which to perform the command
public FileState getFileState(int id, java.lang.String fileName)
id
- The id of the User who is requesting the FileStatefileName
- The name of the file who's FileState is being
requested
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |