|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.accpac.Provider
public final class Provider
The Sage 300 ERP SDataProvider
.
Constructor Summary | |
---|---|
Provider(SDataServletContext servletContext,
java.lang.String name)
Creates an instance of the Provider class based on the given
context |
Method Summary | |
---|---|
static void |
disableDaemons()
ensures that when a Provider is constructed it does not include
any background daemon tasks. |
static void |
enableDaemons()
ensures that when a Provider is constructed it does include any
background daemon tasks. |
java.lang.String |
getApplicationName()
gets the SData application name for which this is the provider |
Authenticator |
getAuthenticator(javax.servlet.http.HttpServletRequest request,
java.lang.String dataset,
javax.servlet.http.HttpServletResponse response)
Gets the SData Authenticator for this SData provider. |
ResourceKindPool |
getPool(SDataRequest request,
java.lang.String authToken)
Gets the ResourcePool for this SData provider. |
java.util.List<SDataResourceKindInfo> |
getResourceKindInfo()
Gets the resource information for this SData provider. |
com.sage.orion.sdata.servlet.accpac.FullSchemaMaintainer |
getSchemaMaintainer()
gets the FullSchemaMaintainer that the provider is using to
maintain any automatically generated schema. |
SDSFactory |
getSDSFactory()
returns the provider's SDSFactory . |
void |
initialize()
Handles any initialization routines required by the Provider |
void |
shutdown()
Clear up the SData service provider as the application server is closing the context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Provider(SDataServletContext servletContext, java.lang.String name)
Provider
class based on the given
context
servletContext
- a context that this instance can usename
- the name by which the SData application is being known (i.e. as
it appears in the URL)Method Detail |
---|
public static void disableDaemons()
Provider
is constructed it does not include
any background daemon tasks. This is mainly for use in testing. Note that
this only disables daemon threads on Provider
s constructed after
this call. Note also that they are not true daemon threads in terms of the
Thread
class.
public static void enableDaemons()
Provider
is constructed it does include any
background daemon tasks. This is mainly for use in testing, to reverse a
previous call to disableDaemons()
. Note that this only enables
daemon threads on Provider
s constructed after this call. Note also
that they are not true daemon threads in terms of the Thread
class.
public Authenticator getAuthenticator(javax.servlet.http.HttpServletRequest request, java.lang.String dataset, javax.servlet.http.HttpServletResponse response)
SDataProvider
getAuthenticator
in interface SDataProvider
request
- the incoming requestdataset
- the data set that the request is onresponse
- the response, in case the method needs to add headers etc. to
remember GUIDs and other things
Authenticator
representing any authentication
information in the requestpublic java.util.List<SDataResourceKindInfo> getResourceKindInfo()
SDataProvider
getResourceKindInfo
in interface SDataProvider
Collection
of the current SDataResourceKindInfo
that the provider is usingpublic com.sage.orion.sdata.servlet.accpac.FullSchemaMaintainer getSchemaMaintainer()
FullSchemaMaintainer
that the provider is using to
maintain any automatically generated schema.
FullSchemaMaintainer
public java.lang.String getApplicationName()
String
containing the name of the application or null,
as provided to the constructorpublic ResourceKindPool getPool(SDataRequest request, java.lang.String authToken)
SDataProvider
getPool
in interface SDataProvider
request
- the incoming SDataRequest
authToken
- an Authenticator
representing any authentication
information for the request
ResourceKindPool
suitable for processing the given
requestpublic void shutdown()
SDataProvider
shutdown
in interface SDataProvider
public void initialize()
SDataProvider
initialize
in interface SDataProvider
public SDSFactory getSDSFactory()
SDSFactory
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |