public interface TaskRepository
Modifier and Type | Method and Description |
---|---|
void |
addTask(TaskInfo taskInfo)
Adds given task information to the repository.
|
boolean |
deleteTask(String taskName)
Deletes existing task information from the repository.
|
List<TaskInfo> |
getAllTasks()
Returns all the task information data in the repository.
|
TaskInfo |
getTask(String taskName)
Returns task information of a given task name
|
String |
getTaskMetadataProp(String taskName,
String key)
Returns the task metadata property value, if the task does not exist, this will return null.
|
String |
getTasksType()
Returns the type of the tasks represented by this task manager.
|
int |
getTenantId()
Returns the tenant domain of the tasks represented by this task manager.
|
void |
setTaskMetadataProp(String taskName,
String key,
String value)
Sets a task metadata property to a given task name with a given property key.
|
List<TaskInfo> getAllTasks() throws org.wso2.carbon.ntask.common.TaskException
org.wso2.carbon.ntask.common.TaskException
TaskInfo getTask(String taskName) throws org.wso2.carbon.ntask.common.TaskException
taskName
- The task nameorg.wso2.carbon.ntask.common.TaskException
- if the task cannot be foundvoid addTask(TaskInfo taskInfo) throws org.wso2.carbon.ntask.common.TaskException
taskInfo
- The task information objectorg.wso2.carbon.ntask.common.TaskException
boolean deleteTask(String taskName) throws org.wso2.carbon.ntask.common.TaskException
taskName
- The task nameorg.wso2.carbon.ntask.common.TaskException
String getTasksType()
int getTenantId()
void setTaskMetadataProp(String taskName, String key, String value) throws org.wso2.carbon.ntask.common.TaskException
taskName
- The name of the task the metadata property to be assigned tokey
- The key of the metadata propertyvalue
- The value of the metadata propertyorg.wso2.carbon.ntask.common.TaskException
String getTaskMetadataProp(String taskName, String key) throws org.wso2.carbon.ntask.common.TaskException
taskName
- The name of the task to retrieve the metadata property fromkey
- The key of the metadata properyorg.wso2.carbon.ntask.common.TaskException
Copyright © 2017 WSO2. All rights reserved.