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

The project processor.
Inheritance: IProjectProcessor
Show file Open project: dv00d00/BinaryStudio.TaskManager Class Usage Examples

Public Methods

Method Description
ConfirmInvitationInProject ( int invitationId ) : void

The confirm invitation in project.

CreateDefaultProject ( User user ) : void

The create default project.

CreateProject ( User user, string projectName, string projectDescription ) : void

The create custom project with project name and description.

GetAllInvitationsToProject ( int projectId ) : IEnumerable
GetAllInvitationsToUser ( int userId ) : IEnumerable
GetAllProjectsForTheirCreator ( int userId ) : IEnumerable
GetAllProjectsForUser ( int userId ) : IEnumerable
GetAllUsersInProject ( int projectId ) : IEnumerable

The get all users in project.

GetCreator ( int projectId ) : User
GetProjectById ( int projectId ) : Project
GetUsersAndCreatorInProject ( int projectId ) : IEnumerable
InviteUserInProject ( int senderId, int projectId, int receiverId ) : void

The invite user in project.

ProjectProcessor ( IProjectRepository projectRepository, IUserRepository userRepository ) : System

Initializes a new instance of the ProjectProcessor class.

RefuseFromParticipateProject ( int invitationId ) : void
RemoveUserFromProject ( int userId, int projectId ) : void

The remove user from project.

Method Details

ConfirmInvitationInProject() public method

The confirm invitation in project.
public ConfirmInvitationInProject ( int invitationId ) : void
invitationId int
return void

CreateDefaultProject() public method

The create default project.
public CreateDefaultProject ( User user ) : void
user BinaryStudio.TaskManager.Logic.Domain.User /// The current user. ///
return void

CreateProject() public method

The create custom project with project name and description.
public CreateProject ( User user, string projectName, string projectDescription ) : void
user BinaryStudio.TaskManager.Logic.Domain.User /// The user tied to project. ///
projectName string /// The project name. ///
projectDescription string /// The project description. ///
return void

GetAllInvitationsToProject() public method

public GetAllInvitationsToProject ( int projectId ) : IEnumerable
projectId int
return IEnumerable

GetAllInvitationsToUser() public method

public GetAllInvitationsToUser ( int userId ) : IEnumerable
userId int
return IEnumerable

GetAllProjectsForTheirCreator() public method

public GetAllProjectsForTheirCreator ( int userId ) : IEnumerable
userId int
return IEnumerable

GetAllProjectsForUser() public method

public GetAllProjectsForUser ( int userId ) : IEnumerable
userId int
return IEnumerable

GetAllUsersInProject() public method

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

GetCreator() public method

public GetCreator ( int projectId ) : User
projectId int
return BinaryStudio.TaskManager.Logic.Domain.User

GetProjectById() public method

public GetProjectById ( int projectId ) : Project
projectId int
return BinaryStudio.TaskManager.Logic.Domain.Project

GetUsersAndCreatorInProject() public method

public GetUsersAndCreatorInProject ( int projectId ) : IEnumerable
projectId int
return IEnumerable

InviteUserInProject() public method

The invite user in project.
public InviteUserInProject ( int senderId, int projectId, int receiverId ) : void
senderId int /// The sender id. ///
projectId int /// The project id. ///
receiverId int /// The receiver id. ///
return void

ProjectProcessor() public method

Initializes a new instance of the ProjectProcessor class.
public ProjectProcessor ( IProjectRepository projectRepository, IUserRepository userRepository ) : System
projectRepository IProjectRepository /// The project repository. ///
userRepository IUserRepository /// The user Repository. ///
return System

RefuseFromParticipateProject() public method

public RefuseFromParticipateProject ( int invitationId ) : void
invitationId int
return void

RemoveUserFromProject() public method

The remove user from project.
public RemoveUserFromProject ( int userId, int projectId ) : void
userId int /// The user id. ///
projectId int /// The project id. ///
return void