com.cassinidivision.core.appserver
Class EOImportExportApplication

java.lang.Object
  extended bycom.webobjects.appserver.WOApplication
      extended bycom.cassinidivision.core.appserver.EOImportExportApplication
All Implemented Interfaces:
NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions

public class EOImportExportApplication
extends WOApplication

Sample WOApplication subclass preconfigured with the EO import/export functionality.


Nested Class Summary
 
Nested classes inherited from class com.webobjects.appserver.WOApplication
WOApplication._EventLoggingEnabler, WOApplication.Event
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Field Summary
 
Fields inherited from class com.webobjects.appserver.WOApplication
_adminRequestHandlerKey, _unsetHost, _wasMainInvoked, ApplicationDidDispatchRequestNotification, ApplicationDidFinishLaunchingNotification, ApplicationWillDispatchRequestNotification, ApplicationWillFinishLaunchingNotification
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
_CLASS, NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Constructor Summary
EOImportExportApplication()
           
 
Method Summary
 NSDictionary argumentsDict(NSArray argumentStrings)
          Parse process arguments into a dictionary for convenience.
 void channelNeeded(NSNotification notification)
          For internal use only - do not invoke.
 void doExport(String filename)
          Export XML data to the specified directory.
 void doImport(String filename)
          Import XML data from the directory specified.
 void doneLaunching(NSNotification notification)
          For internal use only - do not invoke.
 void go()
          Begin EO import/export processing.
 NSArray models()
          Convenience method: retrieve all known EOModel details.
 void overrideConnectionDictionaries(String string)
          Override the default connection dictionary for a set of EOModels according to the details provided.
static String[] processArgs()
          Retrieve the current set of arguments for processing.
static void setProcessArgs(String[] someArgs)
          Specify a set of import/export arguments to be processed.
 
Methods inherited from class com.webobjects.appserver.WOApplication
_addToExpectedLanguages, _checksForSpecialHeaders, _componentDefinition, _componentDefinitionFromClassNamed, _debugString, _expectedLanguages, _initializeSessionInContext, _isDebuggingEnabled, _isDomesticSupportedDevelopmentPlatform, _isForeignSupportedDevelopmentPlatform, _isPageRecreationEnabled, _isSupportedDevelopmentPlatform, _newLocationForRequest, _quitTimer, _rapidTurnaroundActiveForAnyProject, _removeComponentDefinitionCacheContents, _runLoop, _setChecksForSpecialHeaders, _setHost, _setHostAddress, _terminateOrResetTimer, activeSessionsCount, adaptor, adaptors, adaptorsDispatchRequestsConcurrently, adaptorWithName, additionalAdaptors, allowsConcurrentRequestHandling, appendToResponse, application, applicationBaseURL, autoOpenClientApplication, autoOpenInBrowser, awake, baseURL, canAccessFieldsDirectly, cgiAdaptorURL, componentRequestHandlerKey, contextClassName, createContextForRequest, createRequest, createResourceManager, createResponseInContext, createSessionForRequest, debugString, defaultRequestHandler, defaultRequestHandlerClassName, defaultUndoStackLimit, directActionRequestHandlerKey, directConnectURL, dispatchRequest, dynamicElementWithName, frameworksBaseURL, handleActionRequestError, handleException, handleMalformedCookieString, handlePageRestorationErrorInContext, handleQueryWithUnboundKey, handlerForRequest, handleSessionCreationErrorInContext, handleSessionRestorationErrorInContext, handleTakeValueForUnboundKey, host, hostAddress, includeCommentsInResponses, invokeAction, isCachingEnabled, isConcurrentRequestHandlingEnabled, isDebuggingEnabled, isDirectConnectEnabled, isMonitorEnabled, isPageRefreshOnBacktrackEnabled, isRefusingNewSessions, isTerminating, licensedRequestLimit, licensedRequestWindow, licensingAllowsMultipleInstances, licensingAllowsMultipleThreads, lifebeatDestinationPort, lifebeatEnabled, lifebeatInterval, listenQueueSize, loadFrameworks, lock, logSetValueForDeclarationNamed, logString, logTakeValueForDeclarationNamed, main, main, maxSocketIdleTime, minimumActiveSessionsCount, monitorEnabled, monitorHost, monitoringEnabled, name, number, outputPath, pageCacheSize, pageWithName, path, permanentPageCacheSize, port, primeApplication, primeApplication, printsHTMLParserDiagnostics, projectSearchPath, recordingPath, refuseNewSessions, registeredRequestHandlerKeys, registerRequestHandler, removeRequestHandlerForKey, requestHandlerForKey, requestHandlingLock, resourceManager, resourceRequestHandlerKey, responseForComponentWithName, responseForDirectActionWithNameAndClass, restoreSessionWithID, run, saveSessionForContext, servletConnectURL, sessionStore, sessionStoreClassName, sessionTimeOut, setAdaptor, setAdditionalAdaptors, setAllowsConcurrentRequestHandling, setApplicationBaseURL, setAutoOpenClientApplication, setAutoOpenInBrowser, setCachingEnabled, setCGIAdaptorURL, setComponentRequestHandlerKey, setContextClassName, setDefaultRequestHandler, setDefaultUndoStackLimit, setDirectActionRequestHandlerKey, setDirectConnectEnabled, setFrameworksBaseURL, setIncludeCommentsInResponses, setListenQueueSize, setLoadFrameworks, setMaxSocketIdleTime, setMinimumActiveSessionsCount, setMonitorEnabled, setMonitorHost, setPageCacheSize, setPageRefreshOnBacktrackEnabled, setPermanentPageCacheSize, setPort, setPrintsHTMLParserDiagnostics, setProjectSearchPath, setRecordingPath, setResourceManager, setResourceRequestHandlerKey, setSessionStore, setSessionStoreClassName, setSessionTimeOut, setSMTPHost, setSocketCacheSize, setSocketMonitorSleepTime, setStatisticsStore, setTimeOut, setWebServiceRequestHandlerKey, setWorkerThreadCount, setWorkerThreadCountMax, setWorkerThreadCountMin, sharedEditingContext, shouldRestoreSessionOnCleanEntry, sleep, SMTPHost, socketCacheSize, socketMonitorSleepTime, statistics, statisticsStore, streamActionRequestHandlerKey, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, terminate, terminateAfterTimeInterval, timeOut, toString, unableToSetNullForKey, unlock, validationFailedWithException, valueForKey, valueForKeyPath, wasMainInvoked, webserverConnectURL, webServiceRequestHandlerKey, workerThreadCount, workerThreadCountMax, workerThreadCountMin
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EOImportExportApplication

public EOImportExportApplication()
Method Detail

processArgs

public static String[] processArgs()
Retrieve the current set of arguments for processing.

Returns:
The process arguments.

setProcessArgs

public static void setProcessArgs(String[] someArgs)
Specify a set of import/export arguments to be processed.

Parameters:
someArgs - The process arguments.

channelNeeded

public void channelNeeded(NSNotification notification)
For internal use only - do not invoke.

Parameters:
notification -

doneLaunching

public void doneLaunching(NSNotification notification)
For internal use only - do not invoke.

Parameters:
notification -

argumentsDict

public NSDictionary argumentsDict(NSArray argumentStrings)
Parse process arguments into a dictionary for convenience.

Parameters:
argumentStrings - Array of process argument strings.
Returns:
Dictionary containing the arguments as key-value pairs.

go

public void go()
Begin EO import/export processing.


models

public NSArray models()
Convenience method: retrieve all known EOModel details.

Returns:
Array of EOModel instances.

doImport

public void doImport(String filename)
Import XML data from the directory specified.

Parameters:
filename - The path to the import directory (containing XML data).

doExport

public void doExport(String filename)
Export XML data to the specified directory.

Parameters:
filename - The path to the XML export directory.

overrideConnectionDictionaries

public void overrideConnectionDictionaries(String string)
Override the default connection dictionary for a set of EOModels according to the details provided.

Parameters:
string - String containing the new connection dictionary information ("key=value" pairs separated by spaces).