ccc.client.actions
Class CreatePageAction

java.lang.Object
  extended by ccc.client.core.RemotingAction
      extended by ccc.client.actions.CreatePageAction
All Implemented Interfaces:
Action

public final class CreatePageAction
extends RemotingAction

Create a page.

Author:
Civic Computing Ltd.

Nested Class Summary
 class CreatePageAction.PageCreatedCallback
          Callback handler for creating a page.
 
Field Summary
 
Fields inherited from interface ccc.client.core.Action
UI_CONSTANTS, USER_ACTIONS
 
Constructor Summary
CreatePageAction(Page page)
          Constructor.
 
Method Summary
 Request createPage(Page page)
          Create a new page.
protected  Request getRequest()
          Get the HTTP request for this action.
 
Methods inherited from class ccc.client.core.RemotingAction
beforeExecute, encode, execute, fireEvent, getActionName, getBody, getParser, getPath, onFailure, onNoContent, onOK, parseResourceSummary, setExecutor, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreatePageAction

public CreatePageAction(Page page)
Constructor.

Parameters:
page - The page's content.
Method Detail

getRequest

protected Request getRequest()
Get the HTTP request for this action.

Overrides:
getRequest in class RemotingAction
Returns:
The request for this remote action.

createPage

public Request createPage(Page page)
Create a new page.

Parameters:
page - The page to create.
Returns:
The HTTP request to create a folder.


Copyright © 2010. All Rights Reserved.