C# Class BinaryStudio.TaskManager.Logic.Core.TaskProcessor

The task processor.
Inheritance: ITaskProcessor
Exibir arquivo Open project: dv00d00/BinaryStudio.TaskManager Class Usage Examples

Public Methods

Method Description
AddHistory ( HumanTaskHistory newHumanTask ) : void

Adds the history.

CloseTask ( int taskId ) : void

The close current task.

CreateTask ( HumanTask task ) : void

The create task without reminder.

CreateTask ( HumanTask task, Reminder reminder ) : void

The create task with reminder.

DeleteTask ( int taskId ) : void

The delete current task with all reminders for this task.

GetAllClosedTasksForProject ( int projectId ) : IEnumerable

The get all closed tasks for project.

GetAllClosedTasksForUserInProject ( int projectId, int userId ) : IEnumerable

The get all closed tasks for user in project.

GetAllHistoryForTask ( int taskId ) : IList

The get all history for task.

GetAllHistoryForUser ( int userId ) : IList

The get all history for user.

GetAllOpenTasksForProject ( int projectId ) : IEnumerable

The get all open tasks for project.

GetAllOpenTasksForUserInProject ( int projectId, int userId ) : IEnumerable

The get all open tasks for user in project.

GetAllTasks ( ) : IEnumerable

The get all tasks.

GetAllTasksForUserInProject ( int projectId, int userId ) : IEnumerable

The get all tasks for user in project.

GetAllTasksInProject ( int projectId ) : IEnumerable

The get all tasks in project.

GetOpenTasksListInProject ( int projectId ) : IEnumerable

The get tasks in project list.

GetPrioritiesList ( ) : IEnumerable

The get priorities list.

GetTaskById ( int taskId ) : HumanTask

The get task by id.

GetTasksList ( ) : IEnumerable

The get tasks list.

GetTasksList ( int userId ) : IEnumerable

The get tasks list.

GetUnAssignedTasksForProject ( int projectId ) : IEnumerable

The get un assigned tasks for project.

GetUnassignedTasks ( ) : IEnumerable

The get unassigned tasks.

MoveTask ( int taskId, int userId ) : void

The move task between users.

MoveTaskToUnassigned ( int taskId ) : void

The move task to unassigned.

TaskProcessor ( IHumanTaskRepository humanTaskRepository, IReminderProcessor reminderProcessor, IUserRepository userRepository ) : System

Initializes a new instance of the TaskProcessor class.

UpdateTask ( HumanTask task ) : void

The update task.

UpdateTask ( HumanTask task, Reminder reminder ) : void

The update task with reminder.

Method Details

AddHistory() public method

Adds the history.
public AddHistory ( HumanTaskHistory newHumanTask ) : void
newHumanTask BinaryStudio.TaskManager.Logic.Domain.HumanTaskHistory The new human task.
return void

CloseTask() public method

The close current task.
public CloseTask ( int taskId ) : void
taskId int /// The task id. ///
return void

CreateTask() public method

The create task without reminder.
public CreateTask ( HumanTask task ) : void
task BinaryStudio.TaskManager.Logic.Domain.HumanTask The current task.
return void

CreateTask() public method

The create task with reminder.
public CreateTask ( HumanTask task, Reminder reminder ) : void
task BinaryStudio.TaskManager.Logic.Domain.HumanTask The current task.
reminder BinaryStudio.TaskManager.Logic.Domain.Reminder The reminder.
return void

DeleteTask() public method

The delete current task with all reminders for this task.
public DeleteTask ( int taskId ) : void
taskId int /// The task id. ///
return void

GetAllClosedTasksForProject() public method

The get all closed tasks for project.
public GetAllClosedTasksForProject ( int projectId ) : IEnumerable
projectId int /// The project id. ///
return IEnumerable

GetAllClosedTasksForUserInProject() public method

The get all closed tasks for user in project.
public GetAllClosedTasksForUserInProject ( int projectId, int userId ) : IEnumerable
projectId int /// The project id. ///
userId int /// The user id. ///
return IEnumerable

GetAllHistoryForTask() public method

The get all history for task.
public GetAllHistoryForTask ( int taskId ) : IList
taskId int /// The task id. ///
return IList

GetAllHistoryForUser() public method

The get all history for user.
public GetAllHistoryForUser ( int userId ) : IList
userId int /// The user id. ///
return IList

GetAllOpenTasksForProject() public method

The get all open tasks for project.
public GetAllOpenTasksForProject ( int projectId ) : IEnumerable
projectId int /// The project id. ///
return IEnumerable

GetAllOpenTasksForUserInProject() public method

The get all open tasks for user in project.
public GetAllOpenTasksForUserInProject ( int projectId, int userId ) : IEnumerable
projectId int /// The project id. ///
userId int /// The user id. ///
return IEnumerable

GetAllTasks() public method

The get all tasks.
public GetAllTasks ( ) : IEnumerable
return IEnumerable

GetAllTasksForUserInProject() public method

The get all tasks for user in project.
public GetAllTasksForUserInProject ( int projectId, int userId ) : IEnumerable
projectId int /// The project id. ///
userId int /// The user id. ///
return IEnumerable

GetAllTasksInProject() public method

The get all tasks in project.
public GetAllTasksInProject ( int projectId ) : IEnumerable
projectId int /// The project id. ///
return IEnumerable

GetOpenTasksListInProject() public method

The get tasks in project list.
public GetOpenTasksListInProject ( int projectId ) : IEnumerable
projectId int /// The project id. ///
return IEnumerable

GetPrioritiesList() public method

The get priorities list.
public GetPrioritiesList ( ) : IEnumerable
return IEnumerable

GetTaskById() public method

The get task by id.
public GetTaskById ( int taskId ) : HumanTask
taskId int /// The task id. ///
return BinaryStudio.TaskManager.Logic.Domain.HumanTask

GetTasksList() public method

The get tasks list.
public GetTasksList ( ) : IEnumerable
return IEnumerable

GetTasksList() public method

The get tasks list.
public GetTasksList ( int userId ) : IEnumerable
userId int /// The user id. ///
return IEnumerable

GetUnAssignedTasksForProject() public method

The get un assigned tasks for project.
public GetUnAssignedTasksForProject ( int projectId ) : IEnumerable
projectId int /// The project id. ///
return IEnumerable

GetUnassignedTasks() public method

The get unassigned tasks.
public GetUnassignedTasks ( ) : IEnumerable
return IEnumerable

MoveTask() public method

The move task between users.
public MoveTask ( int taskId, int userId ) : void
taskId int /// The task id. ///
userId int /// The user id. ///
return void

MoveTaskToUnassigned() public method

The move task to unassigned.
public MoveTaskToUnassigned ( int taskId ) : void
taskId int /// The task id. ///
return void

TaskProcessor() public method

Initializes a new instance of the TaskProcessor class.
public TaskProcessor ( IHumanTaskRepository humanTaskRepository, IReminderProcessor reminderProcessor, IUserRepository userRepository ) : System
humanTaskRepository IHumanTaskRepository /// The human task repository. ///
reminderProcessor IReminderProcessor /// The reminder repository. ///
userRepository IUserRepository /// The user repository. ///
return System

UpdateTask() public method

The update task.
public UpdateTask ( HumanTask task ) : void
task BinaryStudio.TaskManager.Logic.Domain.HumanTask The current task.
return void

UpdateTask() public method

The update task with reminder.
public UpdateTask ( HumanTask task, Reminder reminder ) : void
task BinaryStudio.TaskManager.Logic.Domain.HumanTask The current task.
reminder BinaryStudio.TaskManager.Logic.Domain.Reminder The reminder.
return void