com.sage.orion.sdata.servlet.swtservice
Class AdhocQueryFileDefaultResouceKind

java.lang.Object
  extended by com.sage.orion.sdata.servlet.swtservice.AdhocQueryFileDefaultResouceKind
All Implemented Interfaces:
ResourceKind
Direct Known Subclasses:
AdhocQueryFileCategoryResourceKind, AdhocQueryFileResourceKind

public abstract class AdhocQueryFileDefaultResouceKind
extends java.lang.Object
implements ResourceKind


Field Summary
protected  ApplicationContext context
           
 
Constructor Summary
AdhocQueryFileDefaultResouceKind(ApplicationContext applicationContext)
           
 
Method Summary
protected  ResourceResponse doGet(SDataRequest request)
           
protected  java.lang.String getAdhocFolderPath()
           
protected abstract  java.util.List<com.sage.orion.sdata.servlet.swtservice.QDFFieldDefinition> getAllFields()
           
protected abstract  java.lang.String[][] getAllRecords(com.sage.accpac.sm.Program program, SDataRequest request)
           
 java.lang.String getInstance()
           
 ResourceResponse handleRequest(SDataRequest request, AsyncStatusListener listener)
          Handle the specified request, passing information to the listener if there is one.
 void shutdown()
          Shut down the resource kind.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sage.orion.sdata.servlet.ResourceKind
getName
 

Field Detail

context

protected final ApplicationContext context
Constructor Detail

AdhocQueryFileDefaultResouceKind

public AdhocQueryFileDefaultResouceKind(ApplicationContext applicationContext)
Method Detail

getAllFields

protected abstract java.util.List<com.sage.orion.sdata.servlet.swtservice.QDFFieldDefinition> getAllFields()

getAllRecords

protected abstract java.lang.String[][] getAllRecords(com.sage.accpac.sm.Program program,
                                                      SDataRequest request)

getAdhocFolderPath

protected java.lang.String getAdhocFolderPath()

getInstance

public java.lang.String getInstance()
Specified by:
getInstance in interface ResourceKind

handleRequest

public ResourceResponse handleRequest(SDataRequest request,
                                      AsyncStatusListener listener)
Description copied from interface: ResourceKind
Handle the specified request, passing information to the listener if there is one.

Note that even if an implementation is not thread-safe it must allow for the ResourceKind.shutdown() call to execute in parallel.

Specified by:
handleRequest in interface ResourceKind
Parameters:
request - the request to handle
listener - null or a listener than can be used for asynchronous tasks to monitor progress.
Returns:
a ResourceResponse to the request

shutdown

public void shutdown()
Description copied from interface: ResourceKind
Shut down the resource kind. Note that this may be called on a shutdown thread even though a different thread is executing ResourceKind.handleRequest(SDataRequest, AsyncStatusListener).

Specified by:
shutdown in interface ResourceKind

doGet

protected ResourceResponse doGet(SDataRequest request)


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