ccc.client.gwt.remoting
Class GetResourcesPagedAction

java.lang.Object
  extended by ccc.client.core.RemotingAction
      extended by ccc.client.gwt.remoting.GetResourcesPagedAction
All Implemented Interfaces:
Action

public abstract class GetResourcesPagedAction
extends RemotingAction

Get paged child resources for specified folder.

Author:
Civic Computing Ltd.

Field Summary
 
Fields inherited from interface ccc.client.core.Action
UI_CONSTANTS, USER_ACTIONS
 
Constructor Summary
GetResourcesPagedAction(ResourceCriteria criteria, int pageNo, int pageSize)
          Constructor.
 
Method Summary
protected abstract  void execute(java.util.Collection<ResourceSummary> children, int totalCount)
          Handle the result of a successful call.
protected  java.lang.String getBody()
          Provide a body for this method.
protected  java.lang.String getPath()
          Determine the server path for this action.
protected  void onOK(Response response)
          Handle a '200 OK' response from the remote server.
 
Methods inherited from class ccc.client.core.RemotingAction
beforeExecute, encode, execute, fireEvent, getActionName, getParser, getRequest, onFailure, onNoContent, parseResourceSummary, setExecutor, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetResourcesPagedAction

public GetResourcesPagedAction(ResourceCriteria criteria,
                               int pageNo,
                               int pageSize)
Constructor.

Parameters:
criteria - The criteria for the retrieve.
pageNo - The page to display.
pageSize - The number of results per page.
Method Detail

getPath

protected java.lang.String getPath()
Determine the server path for this action.

Overrides:
getPath in class RemotingAction
Returns:
The server path for the resource.

getBody

protected java.lang.String getBody()
Provide a body for this method.

Only called for POST requests.

Overrides:
getBody in class RemotingAction
Returns:
The request body, as a string.

onOK

protected void onOK(Response response)
Handle a '200 OK' response from the remote server.

Overrides:
onOK in class RemotingAction
Parameters:
response - The server response.

execute

protected abstract void execute(java.util.Collection<ResourceSummary> children,
                                int totalCount)
Handle the result of a successful call.

Parameters:
children - The collection of folder children.
totalCount - The total comments available on the server.


Copyright © 2010. All Rights Reserved.