ccc.client.actions
Class CreateActionAction

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

public final class CreateActionAction
extends RemotingAction

Create a scheduled action.

Author:
Civic Computing Ltd.

Nested Class Summary
 class CreateActionAction.ActionCreatedCallback
          Callback handler for applying a working copy.
 
Field Summary
 
Fields inherited from interface ccc.client.core.Action
UI_CONSTANTS, USER_ACTIONS
 
Constructor Summary
CreateActionAction(java.util.UUID resourceId, CommandType command, java.util.Date executeAfter, java.util.Map<java.lang.String,java.lang.String> actionParameters)
          Constructor.
 
Method Summary
 Request createAction(Action action)
          Create a new action.
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

CreateActionAction

public CreateActionAction(java.util.UUID resourceId,
                          CommandType command,
                          java.util.Date executeAfter,
                          java.util.Map<java.lang.String,java.lang.String> actionParameters)
Constructor.

Parameters:
actionParameters - Additional parameters for the action.
executeAfter - The date that the action will be performed.
command - The command the action will invoke.
resourceId - The resource the action will operate on.
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.

createAction

public Request createAction(Action action)
Create a new action.

Parameters:
action - The action to create.
Returns:
The HTTP request to create the action.


Copyright © 2010. All Rights Reserved.