org.gxos
Class RootContext

java.lang.Object
  |
  +--org.gxos.gndi.context.GxContext
        |
        +--org.gxos.RootContext
All Implemented Interfaces:
javax.naming.Context

public class RootContext
extends GxContext

A root object for Garnet Collaboration System. This object contains top level services. These are Admin, Capabilities, Devices, Documents, Events, Multimedia, Users and mega meetings.

$Id: RootContext.java,v 1.8 2001/05/05 02:28:06 balsoy Exp $


Fields inherited from class org.gxos.gndi.context.GxContext
SELF
 
Fields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
Constructor Summary
RootContext(java.lang.String root, javax.naming.Context initial)
          RootContext constructor.
 
Method Summary
 void createDevice(java.lang.String deviceAddr, DeviceTypeType type)
          Adds a new device to repository.
 void createDevice(java.lang.String deviceAddr, java.lang.String deviceType)
          Adds a new device to repository.
 void createEvent()
          Creates an empty event object under the current root, i.e.
 void createEvent(int seqno, java.lang.String stream)
          Creates an event object under the current root, i.e.
 void createMeeting(java.lang.String megaMeetingURL, java.lang.String meetingName)
          Creates a meeting under a megameeting, i.e.
 void createMegaMeeting(java.lang.String megaMeetingName)
          Creates a megameeting under the current root, i.e.
 void createUser(java.lang.String name, java.lang.String pre, java.lang.String suf, java.lang.String login, java.lang.String password, java.lang.String email)
          Creates a user object with given parameters, sets other values to defaults, and adds it to the current context.
 javax.naming.Context getAdmin()
          Returns context object for the top level Admin context.
 javax.naming.Context getCapabilities()
          Returns context object for the top level Capabilities context.
 javax.naming.Context getDevices()
          Returns context object for the top level Devices context.
 javax.naming.Context getDocuments()
          Returns context object for the top level Documents context.
 javax.naming.Context getEvents()
          Returns context object for the top level Events context.
 javax.naming.Context getMultimedia()
          Returns context object for the top level Multimedia context.
 javax.naming.Context getUsers()
          Returns context object for the top level Users context.
 
Methods inherited from class org.gxos.gndi.context.GxContext
addToEnvironment, bind, bind, close, composeName, composeName, createContext, createSubcontext, createSubcontext, createSubcontext, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getFSContext, getGxosName, getGxosObject, getNameInNamespace, getNameParser, getNameParser, getObject, getObject, getPrefix, getXMLFile, init, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, report, setGxosName, setGxosName, translateName, unbind, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootContext

public RootContext(java.lang.String root,
                   javax.naming.Context initial)
            throws javax.naming.NamingException
RootContext constructor.
Parameters:
root - Root name for context.
initial - Context returned by InitialContext function.
Throws:
javax.naming.NamingException -  
Method Detail

getCapabilities

public javax.naming.Context getCapabilities()
Returns context object for the top level Capabilities context.
Returns:
Current context.

getAdmin

public javax.naming.Context getAdmin()
Returns context object for the top level Admin context.
Returns:
Current context.

getDevices

public javax.naming.Context getDevices()
Returns context object for the top level Devices context.
Returns:
Context for devices.

getDocuments

public javax.naming.Context getDocuments()
Returns context object for the top level Documents context.
Returns:
Context for documents.

getEvents

public javax.naming.Context getEvents()
Returns context object for the top level Events context.
Returns:
Context for devices.

getMultimedia

public javax.naming.Context getMultimedia()
Returns context object for the top level Multimedia context.
Returns:
Context for devices.

getUsers

public javax.naming.Context getUsers()
Returns context object for the top level Users context.
Returns:
Context for devices.

createDevice

public void createDevice(java.lang.String deviceAddr,
                         java.lang.String deviceType)
                  throws GxException
Adds a new device to repository.
Parameters:
deviceAddr - Device's IP name, i.e. foo.bar.com.
deviceType - Device type can be one of UNIX, Windows, Mac, or PDA.
Throws:
GxException -  
See Also:
Device, DeviceTypeType

createDevice

public void createDevice(java.lang.String deviceAddr,
                         DeviceTypeType type)
                  throws GxException
Adds a new device to repository.
Parameters:
deviceAddr - Device's IP name, i.e. foo.bar.com.
deviceType - Device type can be one of UNIX, WINDOWS, MAC, or PDA.
Throws:
GxException -  
See Also:
Device, DeviceTypeType

createEvent

public void createEvent()
                 throws GxException
Creates an empty event object under the current root, i.e. //University/Events/232123
Throws:
GxException -  
See Also:
Events

createEvent

public void createEvent(int seqno,
                        java.lang.String stream)
                 throws GxException
Creates an event object under the current root, i.e. //University/Events/232123 with given sequence number and stream.
Parameters:
seqno - Sequence number of the event
stream - Name of the stream this event belongs to.
Throws:
GxException -  
See Also:
Events

createMegaMeeting

public void createMegaMeeting(java.lang.String megaMeetingName)
                       throws GxException
Creates a megameeting under the current root, i.e. //University/Course1
Parameters:
megaMeetingName - Name of the mega meeting, i.e. Course1
Throws:
GxException -  
See Also:
Meetings, Collection

createMeeting

public void createMeeting(java.lang.String megaMeetingURL,
                          java.lang.String meetingName)
                   throws GxException
Creates a meeting under a megameeting, i.e. //University/Course1/Lecture1
Parameters:
megaMeetingURL - GXOS name of the megameeting this meeting will be created under.
meetingName - Name of the meeting.
Throws:
GxException -  
See Also:
Meetings, Collection

createUser

public void createUser(java.lang.String name,
                       java.lang.String pre,
                       java.lang.String suf,
                       java.lang.String login,
                       java.lang.String password,
                       java.lang.String email)
                throws GxException
Creates a user object with given parameters, sets other values to defaults, and adds it to the current context.
Parameters:
name - full name of this user, i.e. James J Smith, John Doe
pre - name prefixes for the name if any, i.e. Prof.
suf - name suffixes the name if any, i.e. Jr.
login - login name of this user
password - password for this user
email - email address of this user
Throws:
GxException -  
See Also:
User, UserObject, Users