C# 클래스 Affecto.PositiveFeedback.Store.MongoDb.FeedbackRepository

상속: IFeedbackRepository
파일 보기 프로젝트 열기: affecto/positiivisen-palautteen-keha

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddEmployee() 공개 메소드

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
리턴 void

AddTextFeedback() 공개 메소드

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

DeactivateEmployee() 공개 메소드

public DeactivateEmployee ( System.Guid id ) : void
id System.Guid
리턴 void

FeedbackRepository() 공개 메소드

public FeedbackRepository ( ICollection databaseCollection ) : System
databaseCollection ICollection
리턴 System

GetActiveEmployees() 공개 메소드

public GetActiveEmployees ( ) : IReadOnlyCollection
리턴 IReadOnlyCollection

GetActiveEmployeesWithFeedback() 공개 메소드

public GetActiveEmployeesWithFeedback ( ) : IReadOnlyCollection
리턴 IReadOnlyCollection

GetEmployee() 공개 메소드

public GetEmployee ( System.Guid id ) : Application.Employee
id System.Guid
리턴 Application.Employee

GetEmployeePicture() 공개 메소드

public GetEmployeePicture ( System.Guid employeeId ) : MemoryStream
employeeId System.Guid
리턴 System.IO.MemoryStream

HasEmployee() 공개 메소드

public HasEmployee ( System.Guid id ) : bool
id System.Guid
리턴 bool

SearchActiveEmployees() 공개 메소드

public SearchActiveEmployees ( string searchCriteria ) : IReadOnlyCollection
searchCriteria string
리턴 IReadOnlyCollection

UpdateEmployee() 공개 메소드

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
리턴 void