com.sage.orion.sdata.servlet.accpac
Class ApplicationContext

java.lang.Object
  extended by com.sage.orion.sdata.servlet.accpac.ApplicationContext

public class ApplicationContext
extends java.lang.Object

Handles the Application specific context.

Author:
cliwa01

Field Summary
static java.lang.String REPORTS
          The name of the directory returned by getReportsDirectory()
 
Constructor Summary
ApplicationContext(Provider provider, SDataServletContext servletContext, java.lang.String sdataAppName)
          Constructor.
ApplicationContext(SDataServletContext servletContext, java.lang.String sdataAppName)
          Constructor.
 
Method Summary
 java.lang.String getApplicationName()
          gets the SData application name that was provided to the constructor
 java.lang.String getConfigurationPath()
          Gets the path to the directory where this application's configuration information is stored
 java.lang.String getExportDirectory()
          Gets the file path to the export directory.
 Provider getProvider()
          gets the Provider that was provided to the constructor
 java.lang.String getReportsDirectory()
          Gets the file path to the reports directory.
 java.lang.String getResourceMapDirectory()
          Gets the file path to the Resource map directory.
 java.lang.String getSchemaDirectory()
          Gets the file path the to the Schema directory.
 SDataServletContext getServletContext()
          Gets the SData ServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPORTS

public static final java.lang.String REPORTS
The name of the directory returned by getReportsDirectory()

See Also:
Constant Field Values
Constructor Detail

ApplicationContext

public ApplicationContext(SDataServletContext servletContext,
                          java.lang.String sdataAppName)
Constructor.

Parameters:
servletContext - servlet context.
sdataAppName - the name by which the application is being exposed

ApplicationContext

public ApplicationContext(Provider provider,
                          SDataServletContext servletContext,
                          java.lang.String sdataAppName)
Constructor.

Parameters:
provider - the Provider for which this is the context, or null. This value is available through the getProvider() method. It is not used directly during construction.
servletContext - servlet context.
sdataAppName - the name by which the application is being exposed
Method Detail

getProvider

public Provider getProvider()
gets the Provider that was provided to the constructor

Returns:
null or a Provider

getApplicationName

public java.lang.String getApplicationName()
gets the SData application name that was provided to the constructor

Returns:
null or a String containing the name of the application, as passed to the constructor

getServletContext

public SDataServletContext getServletContext()
Gets the SData ServletContext

Returns:
the non-null SDataServletContext that was provided to the constructor

getResourceMapDirectory

public java.lang.String getResourceMapDirectory()
Gets the file path to the Resource map directory. There is no guarantee that the directory exists.

Returns:
a non-null non-blank String containing the path of the resource map directory

getSchemaDirectory

public java.lang.String getSchemaDirectory()
Gets the file path the to the Schema directory. There is no guarantee that the directory exists.

Note that generated Sage 300 ERP schemas are not stored in this directory.

Returns:
a non-null non-blank String containing the path of the fixed schemas directory

getReportsDirectory

public java.lang.String getReportsDirectory()
Gets the file path to the reports directory. There is no guarantee that the directory exists.

Returns:
a non-null non-blank String containing the path of the reports temporary directory.

getExportDirectory

public java.lang.String getExportDirectory()
Gets the file path to the export directory. There is no guarantee that the directory exists.

Returns:
a non-null non-blank String containing the path of the export directory.

getConfigurationPath

public java.lang.String getConfigurationPath()
Gets the path to the directory where this application's configuration information is stored

Returns:
the path to the directory where this application's configuration information is stored


Copyright © 2011 Sage Software, Inc. All rights reserved.