org.xngr.context
Class DirectoryContext

java.lang.Object
  extended by org.xngr.context.ServiceContext
      extended by org.xngr.context.URIServiceContext
          extended by org.xngr.context.DirectoryContext

public class DirectoryContext
extends URIServiceContext

The context for a directory object, containing the directory services and actions.

Version:
$Revision: 42 $, $Date: 2009-03-18 23:12:35 +0000 (Wed, 18 Mar 2009) $
Author:
Edwin Dankert

Method Summary
 java.util.List<DirectoryMarker> getDirectoryMarkers()
           
 java.util.List<DirectoryService> getDirectoryServices()
           
 java.util.List<Marker> getMarkers()
           
 java.util.List<Service> getServices()
           
 void open(Action action)
          Opens the supplied service using the action's service, the context's URI and the arguments defined in the action.
 void open(DirectoryService service)
          Opens the supplied service using the Context's URI and an empty HashMap as arguments.
 void open(DirectoryService service, java.util.Map<java.lang.String,java.lang.String> arguments)
          Opens the supplied service using the Context's URI.
 
Methods inherited from class org.xngr.context.URIServiceContext
dispose, getURI
 
Methods inherited from class org.xngr.context.ServiceContext
addServiceContextListener, fireActionsChanged, fireMarkersChanged, fireServicesChanged, getActions, removeServiceContextListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServices

public java.util.List<Service> getServices()
Specified by:
getServices in class ServiceContext
Returns:
a list of all the services associated with the directory context, this is not a 'live' list.

getDirectoryMarkers

public java.util.List<DirectoryMarker> getDirectoryMarkers()
Returns:
a live-list of directory-markers, modifications to the list will modify the list of directory-markers.

getDirectoryServices

public java.util.List<DirectoryService> getDirectoryServices()
Returns:
a live-list of services for the directory-context, modifications to the list will modify the list of directory-services.

open

public void open(DirectoryService service)
Opens the supplied service using the Context's URI and an empty HashMap as arguments.

Parameters:
service - the directory-service to open.

open

public void open(Action action)
Opens the supplied service using the action's service, the context's URI and the arguments defined in the action.

Parameters:
action - the action to open the service for.

open

public void open(DirectoryService service,
                 java.util.Map<java.lang.String,java.lang.String> arguments)
Opens the supplied service using the Context's URI.

Parameters:
service - the document-service to open.
arguments - the arguments

getMarkers

public java.util.List<Marker> getMarkers()
Specified by:
getMarkers in class ServiceContext
Returns:
a list of all the markers associated with the context, this is not a 'live' list.


Copyright © 2002-2009 Edwin Dankert. All Rights Reserved.