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

java.lang.Object
  extended by com.sage.orion.sdata.servlet.accpac.PortletResourceKind
All Implemented Interfaces:
ResourceKind

public class PortletResourceKind
extends java.lang.Object
implements ResourceKind

The PortletResourceKind class implements the ResourceKind interface to provide the Accpac portlet resource(s) that are allowed to be accessed by the signed-on user.

Note that PortletResourceKind supports only GET operation for portlet resource(s) and schema. And it does not support paging for the feed.


Constructor Summary
PortletResourceKind(ApplicationContext applicationContext, ResourceContext resourceContext)
          create an instance of the PortletResourceKind class in the given contexts.
 
Method Summary
 java.lang.String getInstance()
          
 java.lang.String getName()
          
 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
 

Constructor Detail

PortletResourceKind

public PortletResourceKind(ApplicationContext applicationContext,
                           ResourceContext resourceContext)
create an instance of the PortletResourceKind class in the given contexts.

Parameters:
applicationContext - a ApplicationContext in which the resource kind lives
resourceContext - a ResourceContext in which the resource kind lives
Method Detail

getInstance

public java.lang.String getInstance()

Specified by:
getInstance in interface ResourceKind

getName

public java.lang.String getName()

Specified by:
getName in interface ResourceKind

handleRequest

public ResourceResponse handleRequest(SDataRequest request,
                                      AsyncStatusListener listener)
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.

Note that this resource kind supports just GET operation for portlet resource(s) and schema

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()
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


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