planetj.dataengine.action.paging
Class PagingAction

java.lang.Object
  extended byplanetj.dataengine.action.AbstractAction
      extended byplanetj.dataengine.action.ObjectAction
          extended byplanetj.dataengine.action.NamedAction
              extended byplanetj.dataengine.action.NamedRowCollectionAction
                  extended byplanetj.dataengine.action.paging.PagingAction
All Implemented Interfaces:
java.lang.Cloneable, IHttpAction, IRowCollectionAction, java.io.Serializable

public class PagingAction
extends NamedRowCollectionAction

See Also:
Serialized Form

Field Summary
static short PAGE_FIRST
           
static short PAGE_LAST
           
static short PAGE_NEXT
           
static short PAGE_PREVIOUS
           
static java.lang.String PAGING_ACTION_NAME
           
 
Fields inherited from class planetj.dataengine.action.AbstractAction
DEFAULT_TYPE
 
Fields inherited from interface planetj.dataengine.action.IRowCollectionAction
TYPE
 
Constructor Summary
PagingAction(RowCollection rc)
           
 
Method Summary
 IActionRequest createActionRequest(java.lang.Object o, HttpServletRequest request, HttpServletResponse response)
          Get a magic request that may be used to execute this action.
 ActionDescriptor getDefaultDescriptor()
          Get the default action descriptor for this action.
 java.lang.Object handleRowCollectionAction(RowCollection rc, java.lang.Object o, ExecutingContext ec)
          Subclasses need to provide logic to handle the action they wish to perform.
 
Methods inherited from class planetj.dataengine.action.NamedRowCollectionAction
getRowCollection, getType, handleObjectAction
 
Methods inherited from class planetj.dataengine.action.NamedAction
createActionRequest, getName
 
Methods inherited from class planetj.dataengine.action.ObjectAction
getActionObject, getCorrectAction, getDefaultLocation, getDescriptor, handleAction, isApplicable, isApplicable, setActionObject
 
Methods inherited from class planetj.dataengine.action.AbstractAction
clone, cloneAction, getDetailsLocations, getDetailsModes, getLocation, getLocations, handleAction, handleAction, setDescriptor
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface planetj.dataengine.action.IHttpAction
createActionRequest
 

Field Detail

PAGING_ACTION_NAME

public static final java.lang.String PAGING_ACTION_NAME
See Also:
Constant Field Values

PAGE_FIRST

public static final short PAGE_FIRST
See Also:
Constant Field Values

PAGE_PREVIOUS

public static final short PAGE_PREVIOUS
See Also:
Constant Field Values

PAGE_NEXT

public static final short PAGE_NEXT
See Also:
Constant Field Values

PAGE_LAST

public static final short PAGE_LAST
See Also:
Constant Field Values
Constructor Detail

PagingAction

public PagingAction(RowCollection rc)
Parameters:
rc -
Method Detail

createActionRequest

public IActionRequest createActionRequest(java.lang.Object o,
                                          HttpServletRequest request,
                                          HttpServletResponse response)
                                   throws CMException
Description copied from interface: IHttpAction
Get a magic request that may be used to execute this action.

Specified by:
createActionRequest in interface IHttpAction
Overrides:
createActionRequest in class NamedRowCollectionAction
Throws:
CMException

getDefaultDescriptor

public ActionDescriptor getDefaultDescriptor()
Description copied from class: AbstractAction
Get the default action descriptor for this action. Subclasses may optionally provide a default descriptor

Overrides:
getDefaultDescriptor in class AbstractAction

handleRowCollectionAction

public java.lang.Object handleRowCollectionAction(RowCollection rc,
                                                  java.lang.Object o,
                                                  ExecutingContext ec)
                                           throws CMException
Description copied from class: NamedRowCollectionAction
Subclasses need to provide logic to handle the action they wish to perform.

Overrides:
handleRowCollectionAction in class NamedRowCollectionAction
Parameters:
rc - RowCollection to perform action on
Throws:
CMException