Class TaskRestClient
- java.lang.Object
-
- org.apache.syncope.client.console.rest.BaseRestClient
-
- org.apache.syncope.client.console.rest.TaskRestClient
-
- All Implemented Interfaces:
Serializable
,ExecutionRestClient
,RestClient
public class TaskRestClient extends BaseRestClient implements ExecutionRestClient
Console client for invoking Rest Tasks services.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.client.console.rest.BaseRestClient
LOG
-
-
Constructor Summary
Constructors Constructor Description TaskRestClient()
-
Method Summary
-
Methods inherited from class org.apache.syncope.client.console.rest.BaseRestClient
getObject, getService, getService, getStatus, getSyncopeService, resetClient, toOrderBy
-
-
-
-
Method Detail
-
count
public int count(TaskType kind)
-
count
public int count(AnyTypeKind anyTypeKind, String entityKey, TaskType kind)
-
count
public int count(AnyTypeKind anyTypeKind, String entityKey, String notification)
-
countExecutions
public int countExecutions(String taskKey)
- Specified by:
countExecutions
in interfaceExecutionRestClient
-
listPropagationTasks
public List<PropagationTaskTO> listPropagationTasks(String resource, int page, int size, SortParam<String> sort)
-
listPropagationTasks
public List<PropagationTaskTO> listPropagationTasks(AnyTypeKind anyTypeKind, String entityKey, int page, int size, SortParam<String> sort)
-
listNotificationTasks
public List<NotificationTaskTO> listNotificationTasks(String notification, AnyTypeKind anyTypeKind, String entityKey, int page, int size, SortParam<String> sort)
-
list
public <T extends TaskTO> List<T> list(TaskType taskType, int page, int size, SortParam<String> sort)
-
list
public <T extends TaskTO> List<T> list(String resource, TaskType taskType, int page, int size, SortParam<String> sort)
-
listExecutions
public List<ExecTO> listExecutions(String taskKey, int page, int size, SortParam<String> sort)
- Specified by:
listExecutions
in interfaceExecutionRestClient
-
readPropagationTask
public PropagationTaskTO readPropagationTask(String taskKey)
-
readNotificationTask
public NotificationTaskTO readNotificationTask(String taskKey)
-
getMacroTaskForm
public SyncopeForm getMacroTaskForm(String taskKey)
-
startExecution
public void startExecution(String taskKey, Date startAt)
- Specified by:
startExecution
in interfaceExecutionRestClient
-
startExecution
public void startExecution(String taskKey, Date startAt, boolean dryRun, SyncopeForm macroTaskForm)
-
deleteExecution
public void deleteExecution(String taskExecKey)
- Specified by:
deleteExecution
in interfaceExecutionRestClient
-
listRecentExecutions
public List<ExecTO> listRecentExecutions(int max)
- Specified by:
listRecentExecutions
in interfaceExecutionRestClient
-
create
public void create(TaskType type, SchedTaskTO taskTO)
-
update
public void update(TaskType type, SchedTaskTO taskTO)
-
batch
public Map<String,String> batch(BatchRequest batchRequest)
- Specified by:
batch
in interfaceExecutionRestClient
-
-