C# Class Affecto.PositiveFeedback.Store.MongoDb.FeedbackRepository

Inheritance: IFeedbackRepository
Datei anzeigen Open project: affecto/positiivisen-palautteen-keha

Public Methods

Method Description
AddEmployee ( System.Guid id, string lastName, string firstName, string title, string location, string organization, string subOrganization, byte picture ) : void
AddTextFeedback ( System.Guid employeeId, string feedback ) : void
DeactivateEmployee ( System.Guid id ) : void
FeedbackRepository ( ICollection databaseCollection ) : System
GetActiveEmployees ( ) : IReadOnlyCollection
GetActiveEmployeesWithFeedback ( ) : IReadOnlyCollection
GetEmployee ( System.Guid id ) : Application.Employee
GetEmployeePicture ( System.Guid employeeId ) : MemoryStream
HasEmployee ( System.Guid id ) : bool
SearchActiveEmployees ( string searchCriteria ) : IReadOnlyCollection
UpdateEmployee ( System.Guid id, string lastName, string firstName, string title, string location, string organization, string subOrganization, byte picture ) : void

Private Methods

Method Description
AddEmployeePicture ( System.Guid employeeId, byte picture ) : ObjectId
CreateEmployee ( Employee employee, bool hasPicture, bool includeFeedback ) : Application.Employee
CreateEmployeePictureFilter ( System.Guid employeeId ) : FilterDefinition
FindActiveEmployees ( ) : IMongoQueryable
HasEmployeePicture ( System.Guid employeeId ) : bool
IsTextFeedbackAdded ( System.Guid employeeId, string feedback ) : bool
UpdateEmployeePicture ( System.Guid employeeId, byte picture ) : ObjectId
ValidateIdAndName ( System.Guid id, string lastName, string firstName ) : void

Method Details

AddEmployee() public method

public AddEmployee ( System.Guid id, string lastName, string firstName, string title, string location, string organization, string subOrganization, byte picture ) : void
id System.Guid
lastName string
firstName string
title string
location string
organization string
subOrganization string
picture byte
return void

AddTextFeedback() public method

public AddTextFeedback ( System.Guid employeeId, string feedback ) : void
employeeId System.Guid
feedback string
return void

DeactivateEmployee() public method

public DeactivateEmployee ( System.Guid id ) : void
id System.Guid
return void

FeedbackRepository() public method

public FeedbackRepository ( ICollection databaseCollection ) : System
databaseCollection ICollection
return System

GetActiveEmployees() public method

public GetActiveEmployees ( ) : IReadOnlyCollection
return IReadOnlyCollection

GetActiveEmployeesWithFeedback() public method

public GetActiveEmployeesWithFeedback ( ) : IReadOnlyCollection
return IReadOnlyCollection

GetEmployee() public method

public GetEmployee ( System.Guid id ) : Application.Employee
id System.Guid
return Application.Employee

GetEmployeePicture() public method

public GetEmployeePicture ( System.Guid employeeId ) : MemoryStream
employeeId System.Guid
return System.IO.MemoryStream

HasEmployee() public method

public HasEmployee ( System.Guid id ) : bool
id System.Guid
return bool

SearchActiveEmployees() public method

public SearchActiveEmployees ( string searchCriteria ) : IReadOnlyCollection
searchCriteria string
return IReadOnlyCollection

UpdateEmployee() public method

public UpdateEmployee ( System.Guid id, string lastName, string firstName, string title, string location, string organization, string subOrganization, byte picture ) : void
id System.Guid
lastName string
firstName string
title string
location string
organization string
subOrganization string
picture byte
return void