ccc.client.actions
Class RenameAction

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

public class RenameAction
extends RemotingAction

Remote action for renaming.

Author:
Civic Computing Ltd.

Field Summary
 
Fields inherited from interface ccc.client.core.Action
UI_CONSTANTS, USER_ACTIONS
 
Constructor Summary
RenameAction(ResourceSummary resource, java.lang.String name, ResourcePath newPath)
          Constructor.
 
Method Summary
protected  Request getRequest()
          Get the HTTP request for this action.
 Request rename()
          Rename a resource.
 
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

RenameAction

public RenameAction(ResourceSummary resource,
                    java.lang.String name,
                    ResourcePath newPath)
Constructor.

Parameters:
resource - The resource to update.
name - The new name for this resource.
newPath - The updated absolute path to the resource.
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.

rename

public Request rename()
Rename a resource.

Returns:
The HTTP request to rename a resource.


Copyright © 2010. All Rights Reserved.