Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw
Class CVWAdminTool  view CVWAdminTool download CVWAdminTool.java

java.lang.Object
  extended byjava.util.Observable
      extended byorg.mitre.cvw.CVWObject
          extended byorg.mitre.cvw.CVWAdminTool
All Implemented Interfaces:
ObjectValues, java.io.Serializable

public class CVWAdminTool
extends CVWObject

CLASS DESCRIPTION

Version:
1.0

Field Summary
(package private)  AdminServerMgr adminServerMgr
           
private static CVWAdminTool at
           
(package private)  AdminThreadReader atThreadReader
           
(package private)  AdminThreadWriter atThreadWriter
           
(package private) static boolean clientServerProtocolSync
           
(package private) static java.lang.Float currentClientAdminVersion
           
(package private) static java.lang.Float currentClientServerEndVersion
           
(package private) static java.lang.Float currentClientServerStartVersion
           
(package private)  boolean isOpen
           
(package private)  CVWCoordinator jcvw
           
(package private)  java.lang.String localHost
           
(package private)  int port
           
 
Fields inherited from class org.mitre.cvw.CVWObject
ACCESS, ACL, cached, createdOn, desc, GETINFO, icon, lastModifiedBy, lastModifiedOn, location, MEMBERS, metaDataType, name, ObjectTypes, objNum, owner, owners, sessile, type, typeValue
 
Fields inherited from class java.util.Observable
 
Fields inherited from interface org.mitre.cvw.ObjectValues
BALLOT, CHECKEDOUTDOC, CHECKOUT, CURRONLINEUSER, CURRUSER, DISCONNECTED, DOC, DOC_SC, DOCBUSY, DOCCHECKIN, DOCCOPY, DOCCREATE, DOCCREATEBACKGROUND, DOCCREATEDATE, DOCCREATOR, DOCCREATORONLY, DOCDELETE, DOCDESC, DOCEDITORS, DOCEXPORT, DOCINFO, DOCMIMETYPE, DOCOPEN, DOCSETDESC, DOCSTATUS, DOCTYPE, DOCUMENT, DROP, FLOOR, FOLDER, FOLDER_SC, FORM, FORMFOLDER, GETALLTYPES, GETCHECKEDDOCS, GETDOCTEXTS, GETDOCTEXTSCO, GETEXTDESC, GROUP, IMAGEMENU, NOTCHECKEDOUTDOC, NOTE, NOTE_SC, ONLINEUSER, PROXY, PROXYWIN, RECORDER, REMOTE, REMOTEUSER, REVERT, REVISION, ROOM, ROOMKEY, SETDOCATTRS, SETDOCNAME, STANDARD, TAKE, UNKNOWN, URL, URL_SC, USER, USERSTAT, WB, WHITEBOARD, WHITEBOARD_SC
 
Constructor Summary
(package private) CVWAdminTool()
          Constructor
 
Method Summary
(package private)  void closeWindow()
           
 void debugMsg(java.lang.String message)
          Displays debugging lines associated with the Admin Tool if debugging is turned on
 void errorMsg(java.lang.String message)
          Displays errorMessages associated with the Admin Tool
static CVWAdminTool getInstance()
          Returns the current instance of CVWAdminTool, this is a singleton class.
 int getPort()
          FUNCTION DESCRIPTION
 java.lang.String[] getStartCmd()
          This builds the command string that is executed to launch the Admin Tool
 void msg(java.lang.String message)
          A synchronized wrapper for processMsg
 void open()
          This opens the Admin Tool
(package private)  void processMsg(java.lang.String msg)
          This processes requests from the Admin Tool & acts upon them
 void sendFloorCreateResult(int problem)
          This returns the result of a floor creation attempt.
 void sendFloorDeleteResult(int done, java.lang.String message)
          This returns the result of a floor delete attempt.
 void sendFloorModifyResult(int problem)
          This returns the result of a floor modification attempt.
 void sendHomeInfo(java.lang.String home)
          This function sends a user's home info the admin tool.
private  void sendMapDataToAdminTool()
          This sends the Admin Tool the latest room & floor data
 void sendMOTD(java.lang.String motd)
          This function sends the MOTD to the admin tool.
(package private)  void sendMsg(java.lang.String msg)
           
 void sendRecorderCreateResult(java.lang.String prob, java.lang.String name)
          This returns the result of a recorder create attempt.
 void sendRoomModifyInfo(java.lang.String objnum, java.lang.String name, java.lang.String desc)
          This returns the information for modifying a room, i.e.
 void sendSystemPrefs(java.util.Enumeration keys, java.util.Enumeration elements)
          This function sends the system prefs to the admin tool.
 void sendUserCreateResult(int problem, java.lang.String person, java.lang.String login, java.lang.String user, java.lang.String gender, java.lang.String proxy, java.lang.String office, java.lang.String phone, java.lang.String email, java.lang.String badge, java.lang.String icon, java.lang.String home)
          This returns the result of a user create attempt.
 void sendUserCreateStatus(java.lang.String message)
          This sends progress status of a user creation attempt.
 void sendUserDeleteResult(int done, java.lang.String message)
          This returns the result of a user delete attempt.
 void sendUserModifyResult(int problem, java.lang.String person, java.lang.String login, java.lang.String user, java.lang.String gender, java.lang.String proxy, java.lang.String office, java.lang.String phone, java.lang.String email, java.lang.String badge, java.lang.String icon, java.lang.String home, java.lang.String password)
          This returns the result of a user modification attempt.
 void sendUserModifyStatus(java.lang.String message)
          This sends progress status of a user modify attempt.
static void setClientServerProtocolVersion(java.lang.String fromVersion, java.lang.String toVersion)
          This function is a stub.
 void setPort(int port)
          FUNCTION DESCRIPTION
(package private)  void setThreadReader(AdminThreadReader atThreadReader)
           
(package private)  void setThreadWriter(AdminThreadWriter atThreadWriter)
           
(package private)  void showWindow()
           
(package private)  void startServerMgr()
          This launches the Admin Server Manager that opens a socket for communication with the Admin Tool and handles the dispatch of comms on that socket
 void verifyResult(java.lang.String caller, java.util.Enumeration keys, java.util.Enumeration elements)
          This function sends a user's data to the admin tool.
 
Methods inherited from class org.mitre.cvw.CVWObject
autoOpenObject, buildObjNumStrVector, changed, checkQuota, confirmDelete, convertBooleanToIntString, create, deleteResultError, displayError, doDropTake, get3rdPanel, getBaseName, getBaseType, getCreatedDateForDisplay, getDateForDetailDisplay, getDateForDisplay, getDetailName, getFederatedName, getIcon, getImage, getInfo, getMetaDataType, getModifiedBy, getModifiedByName, getModifiedDateForDisplay, getName, getObjectCreateMCP, getObjectFrame, getObjectModifyMCP, getObjectPanel, getObjectPanel, getObjectTypes, getObjectTypeStrings, getObjNum, getObjNumStr, getOwnerName, getOwners, getRawDetailName, getStringFromType, getStringFromType, getTopLocation, getType, getTypeFromString, handleShortcutError, has3rdPanel, initObjectTypes, isCached, isShortcut, moveObject, moveObject, moveResult, newCommand, newObjNumString, objectCopy, objectCopyResult, objectCreate, objectCreate, objectCreateError, objectCreateResult, objectModify, objectModify, paramString, prepTextForServer, setCached, setMetaDataType, setName, setOwners, setRawDetailName, setValues, setValues, showDeleteDialog, startDeleteDialog, startInfoDialog, startInfoDialog, startOpen, toString, updateACLResult, updateDetailInfo, updateOwners, updateOwnersResult
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

atThreadReader

transient AdminThreadReader atThreadReader

atThreadWriter

transient AdminThreadWriter atThreadWriter

clientServerProtocolSync

static boolean clientServerProtocolSync

currentClientServerStartVersion

static java.lang.Float currentClientServerStartVersion

currentClientServerEndVersion

static java.lang.Float currentClientServerEndVersion

currentClientAdminVersion

static java.lang.Float currentClientAdminVersion

jcvw

CVWCoordinator jcvw

adminServerMgr

AdminServerMgr adminServerMgr

localHost

java.lang.String localHost

port

int port

isOpen

boolean isOpen

at

private static CVWAdminTool at
Constructor Detail

CVWAdminTool

CVWAdminTool()
Constructor

Method Detail

open

public void open()
This opens the Admin Tool


getStartCmd

public java.lang.String[] getStartCmd()
This builds the command string that is executed to launch the Admin Tool


startServerMgr

void startServerMgr()
This launches the Admin Server Manager that opens a socket for communication with the Admin Tool and handles the dispatch of comms on that socket


setPort

public void setPort(int port)
FUNCTION DESCRIPTION


getPort

public int getPort()
FUNCTION DESCRIPTION


errorMsg

public void errorMsg(java.lang.String message)
Displays errorMessages associated with the Admin Tool


debugMsg

public void debugMsg(java.lang.String message)
Displays debugging lines associated with the Admin Tool if debugging is turned on


msg

public void msg(java.lang.String message)
A synchronized wrapper for processMsg


sendMsg

void sendMsg(java.lang.String msg)

setThreadReader

void setThreadReader(AdminThreadReader atThreadReader)

setThreadWriter

void setThreadWriter(AdminThreadWriter atThreadWriter)

processMsg

void processMsg(java.lang.String msg)
This processes requests from the Admin Tool & acts upon them


showWindow

void showWindow()

closeWindow

void closeWindow()

getInstance

public static CVWAdminTool getInstance()
Returns the current instance of CVWAdminTool, this is a singleton class.


setClientServerProtocolVersion

public static void setClientServerProtocolVersion(java.lang.String fromVersion,
                                                  java.lang.String toVersion)
This function is a stub. It is not used now, but will be needed when real MCP commands are written for the admin tool (right now it uses depricated non-protocol MCP commands).


verifyResult

public void verifyResult(java.lang.String caller,
                         java.util.Enumeration keys,
                         java.util.Enumeration elements)
This function sends a user's data to the admin tool. It is sent in response to a #$#x-verify-request from the admin tool to the moo server.


sendHomeInfo

public void sendHomeInfo(java.lang.String home)
This function sends a user's home info the admin tool. It is sent in response to a #$#x-get-home from the admin tool to the moo server.


sendUserCreateStatus

public void sendUserCreateStatus(java.lang.String message)
This sends progress status of a user creation attempt. It is sent in response to a #$#admin-create from the admin tool to the moo server.


sendUserCreateResult

public void sendUserCreateResult(int problem,
                                 java.lang.String person,
                                 java.lang.String login,
                                 java.lang.String user,
                                 java.lang.String gender,
                                 java.lang.String proxy,
                                 java.lang.String office,
                                 java.lang.String phone,
                                 java.lang.String email,
                                 java.lang.String badge,
                                 java.lang.String icon,
                                 java.lang.String home)
This returns the result of a user create attempt. It is sent in response to a #$#admin-create from the admin tool to the moo server.


sendUserModifyStatus

public void sendUserModifyStatus(java.lang.String message)
This sends progress status of a user modify attempt. It is sent in response to a #$#admin-modify from the admin tool to the moo server.


sendUserModifyResult

public void sendUserModifyResult(int problem,
                                 java.lang.String person,
                                 java.lang.String login,
                                 java.lang.String user,
                                 java.lang.String gender,
                                 java.lang.String proxy,
                                 java.lang.String office,
                                 java.lang.String phone,
                                 java.lang.String email,
                                 java.lang.String badge,
                                 java.lang.String icon,
                                 java.lang.String home,
                                 java.lang.String password)
This returns the result of a user modification attempt. It is sent in response to a #$#admin-modify from the admin tool to the moo server.


sendUserDeleteResult

public void sendUserDeleteResult(int done,
                                 java.lang.String message)
This returns the result of a user delete attempt. It is sent in response to a #$#admin-delete from the admin tool to the moo server.


sendMapDataToAdminTool

private void sendMapDataToAdminTool()
This sends the Admin Tool the latest room & floor data


sendFloorCreateResult

public void sendFloorCreateResult(int problem)
This returns the result of a floor creation attempt. It is sent in response to a #$#admin-create from the admin tool to the moo server.


sendRoomModifyInfo

public void sendRoomModifyInfo(java.lang.String objnum,
                               java.lang.String name,
                               java.lang.String desc)
This returns the information for modifying a room, i.e. the room's full name and description. It is sent in response to a #$#change-description from the admin tool to the moo server.


sendFloorModifyResult

public void sendFloorModifyResult(int problem)
This returns the result of a floor modification attempt. It is sent in response to a #$#admin-modify from the admin tool to the moo server.


sendFloorDeleteResult

public void sendFloorDeleteResult(int done,
                                  java.lang.String message)
This returns the result of a floor delete attempt. It is sent in response to a #$#admin-delete from the admin tool to the moo server.


sendRecorderCreateResult

public void sendRecorderCreateResult(java.lang.String prob,
                                     java.lang.String name)
This returns the result of a recorder create attempt. It is sent in response to a #$#admin-create from the admin tool to the moo server.


sendSystemPrefs

public void sendSystemPrefs(java.util.Enumeration keys,
                            java.util.Enumeration elements)
This function sends the system prefs to the admin tool. It is sent in response to a #$#get-admin-prefs from the admin tool to the moo server.


sendMOTD

public void sendMOTD(java.lang.String motd)
This function sends the MOTD to the admin tool. It is sent in response to a #$#get-motd from the admin tool to the moo server.