C# 클래스 Agribusiness.Web.Services.PersonService

상속: IPersonService
파일 보기 프로젝트 열기: ucdavis/Agribusiness

공개 메소드들

메소드 설명
ConvertToDisplayPeople ( IEnumerable people, string site ) : IEnumerable
CreateSeminarPerson ( Application application, ModelStateDictionary modelState ) : Person
GetAllDisplayPeople ( string site ) : IEnumerable

Gets a display list of all people in the database

GetDisplayPeopleForSeminar ( int id, string site ) : IEnumerable

Gets a display list of people for a specific seminar

GetDisplayPeopleNotInSeminar ( int id, string site ) : IEnumerable

Gets a display list of people who are not currently in a specific seminar

GetDisplayPerson ( Person person, string site, Seminar seminar = null ) : DisplayPerson

Generates person with the associated latest revision of firm

HasAccess ( Person person, Seminar seminar, bool paidResources = true ) : bool

Determines if a person has access to a seminar's information

HasAccess ( string loginId, Seminar seminar, bool paidResources = true ) : bool

Determines if a person has access to a seminar's information

HasAccess ( string loginId, int seminarId, bool paidResources = true ) : bool

Determines if a person has access to a seminar's information

LoadPerson ( string loginId ) : Person

Load's a person object from a user's login id Should only be used on actions where someone is participating in seminar (not applicants)

PersonService ( IRepository firmRepository, IRepository personRepository, IRepository seminarPersonRepository, IRepository seminarRepository, Guid>.IRepositoryWithTypedId userRepository, IFirmService firmService, char>.IRepositoryWithTypedId addressTypeRepository, char>.IRepositoryWithTypedId contactTypeRepository, IRepository commodityRepository ) : System
ResetPasswords ( List people ) : string>>.List
UpdatePerson ( Person person, Application application ) : void

비공개 메소드들

메소드 설명
GetDisplayPeeps ( IEnumerable people, string siteId ) : IEnumerable
SetPerson ( Application application, Person person = null ) : Person
UpdateAddress ( Person person, Application application ) : void
UpdateAssistant ( Person person, Application application ) : void

메소드 상세

ConvertToDisplayPeople() 공개 메소드

public ConvertToDisplayPeople ( IEnumerable people, string site ) : IEnumerable
people IEnumerable
site string
리턴 IEnumerable

CreateSeminarPerson() 공개 메소드

public CreateSeminarPerson ( Application application, ModelStateDictionary modelState ) : Person
application Application
modelState ModelStateDictionary
리턴 Person

GetAllDisplayPeople() 공개 메소드

Gets a display list of all people in the database
public GetAllDisplayPeople ( string site ) : IEnumerable
site string
리턴 IEnumerable

GetDisplayPeopleForSeminar() 공개 메소드

Gets a display list of people for a specific seminar
public GetDisplayPeopleForSeminar ( int id, string site ) : IEnumerable
id int Seminar Id
site string
리턴 IEnumerable

GetDisplayPeopleNotInSeminar() 공개 메소드

Gets a display list of people who are not currently in a specific seminar
public GetDisplayPeopleNotInSeminar ( int id, string site ) : IEnumerable
id int
site string
리턴 IEnumerable

GetDisplayPerson() 공개 메소드

Generates person with the associated latest revision of firm
public GetDisplayPerson ( Person person, string site, Seminar seminar = null ) : DisplayPerson
person Person
site string
seminar Seminar
리턴 Agribusiness.Web.Models.DisplayPerson

HasAccess() 공개 메소드

Determines if a person has access to a seminar's information
public HasAccess ( Person person, Seminar seminar, bool paidResources = true ) : bool
person Person
seminar Seminar
paidResources bool
리턴 bool

HasAccess() 공개 메소드

Determines if a person has access to a seminar's information
public HasAccess ( string loginId, Seminar seminar, bool paidResources = true ) : bool
loginId string
seminar Seminar
paidResources bool
리턴 bool

HasAccess() 공개 메소드

Determines if a person has access to a seminar's information
public HasAccess ( string loginId, int seminarId, bool paidResources = true ) : bool
loginId string
seminarId int Seminar Id
paidResources bool
리턴 bool

LoadPerson() 공개 메소드

Load's a person object from a user's login id Should only be used on actions where someone is participating in seminar (not applicants)
public LoadPerson ( string loginId ) : Person
loginId string user's login id
리턴 Person

PersonService() 공개 메소드

public PersonService ( IRepository firmRepository, IRepository personRepository, IRepository seminarPersonRepository, IRepository seminarRepository, Guid>.IRepositoryWithTypedId userRepository, IFirmService firmService, char>.IRepositoryWithTypedId addressTypeRepository, char>.IRepositoryWithTypedId contactTypeRepository, IRepository commodityRepository ) : System
firmRepository IRepository
personRepository IRepository
seminarPersonRepository IRepository
seminarRepository IRepository
userRepository Guid>.IRepositoryWithTypedId
firmService IFirmService
addressTypeRepository char>.IRepositoryWithTypedId
contactTypeRepository char>.IRepositoryWithTypedId
commodityRepository IRepository
리턴 System

ResetPasswords() 공개 메소드

public ResetPasswords ( List people ) : string>>.List
people List
리턴 string>>.List

UpdatePerson() 공개 메소드

public UpdatePerson ( Person person, Application application ) : void
person Person
application Application
리턴 void