jpl.eda.dir
Class DirectoryBean

java.lang.Object
  extended byjpl.eda.dir.DirectoryBean

public class DirectoryBean
extends java.lang.Object

Bean for fetching directory objects.


Constructor Summary
DirectoryBean()
          Create the directory bean.
 
Method Summary
 java.lang.String getFormattedResults()
          Get the prettily HTML-formatted results.
 java.lang.String getRawResults()
          Get raw XML formatted in HTML.
 java.lang.String getSearchDocument()
          Get the search XML document.
 void installDirectoryFactory(java.lang.String className)
          Install a new directory factory with the given class name.
static void main(java.lang.String[] argv)
          Try out the directory bean via the command-line.
 void setEmailTypeID(java.lang.String id)
           
 void setOrganizationID(java.lang.String id)
           
 void setPersonID(java.lang.String id)
           
 void setPersonTypeID(java.lang.String id)
           
 void setSearchDocument(java.lang.String xml)
          Set the search XML document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryBean

public DirectoryBean()
              throws java.lang.Exception
Create the directory bean.

Method Detail

installDirectoryFactory

public void installDirectoryFactory(java.lang.String className)
                             throws java.lang.Exception
Install a new directory factory with the given class name.

Parameters:
className - Name of the directory factory class to install.
Throws:
java.lang.Exception - If any error occurs.

setSearchDocument

public void setSearchDocument(java.lang.String xml)
                       throws java.lang.Exception
Set the search XML document.

Parameters:
xml - The XML document, as a string.
Throws:
java.lang.Exception - If any error occurs.

getSearchDocument

public java.lang.String getSearchDocument()
Get the search XML document.

Returns:
The last XML document.

getFormattedResults

public java.lang.String getFormattedResults()
                                     throws java.lang.Exception
Get the prettily HTML-formatted results.

Returns:
The results, in HTML format.
Throws:
java.lang.Exception - If some kind of error occurs.

getRawResults

public java.lang.String getRawResults()
                               throws java.lang.Exception
Get raw XML formatted in HTML.

Returns:
The results, in HTML format.
Throws:
java.lang.Exception - If some kind of error occurs.

setPersonID

public void setPersonID(java.lang.String id)
                 throws java.lang.Exception
Throws:
java.lang.Exception

setEmailTypeID

public void setEmailTypeID(java.lang.String id)
                    throws java.lang.Exception
Throws:
java.lang.Exception

setPersonTypeID

public void setPersonTypeID(java.lang.String id)
                     throws java.lang.Exception
Throws:
java.lang.Exception

setOrganizationID

public void setOrganizationID(java.lang.String id)
                       throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Try out the directory bean via the command-line.

Parameters:
argv - Command-line arguments.
Throws:
java.lang.Exception


Copyright © 1999-2004 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.