org.syncope.console.rest
Class TasksRestClient

java.lang.Object
  extended by org.syncope.console.rest.TasksRestClient

public class TasksRestClient
extends java.lang.Object

Console client for invoking Rest Tasks services.


Constructor Summary
TasksRestClient()
           
 
Method Summary
 void deleteTask(java.lang.Long taskId)
          Delete specified task.
 boolean deleteTaskExecution(java.lang.Long execId)
          Delete specified task's execution.
 java.util.List<TaskTO> getAllTasks()
          Get all stored tasks.
 RestClient getRestClient()
          Getter for restClient attribute.
 java.util.List<TaskExecutionTO> listExecutions()
          Get all executions.
 TaskTO readTask(java.lang.String taskId)
          Load an existent task.
 void setRestClient(RestClient restClient)
          Setter for restClient attribute.
 boolean startTaskExecution(java.lang.Long taskId)
          Start execution for the specified TaskTO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TasksRestClient

public TasksRestClient()
Method Detail

getAllTasks

public java.util.List<TaskTO> getAllTasks()
Get all stored tasks.

Returns:
list of TaskTO objects

readTask

public TaskTO readTask(java.lang.String taskId)
Load an existent task.

Returns:
TaskTO object if the configuration exists, null otherwise

listExecutions

public java.util.List<TaskExecutionTO> listExecutions()
Get all executions.

Returns:
list of all executions

deleteTask

public void deleteTask(java.lang.Long taskId)
Delete specified task.

Parameters:
task - to delete id

startTaskExecution

public boolean startTaskExecution(java.lang.Long taskId)
Start execution for the specified TaskTO.

Parameters:
taskTO's - id
Returns:
boolean: TRUE the operation is executed succesfully, FALSE otherwise

deleteTaskExecution

public boolean deleteTaskExecution(java.lang.Long execId)
Delete specified task's execution.

Parameters:
task - to delete id

getRestClient

public RestClient getRestClient()
Getter for restClient attribute.

Returns:
RestClient instance

setRestClient

public void setRestClient(RestClient restClient)
Setter for restClient attribute.

Parameters:
restClient - instance


Copyright © 2010. All Rights Reserved.