C# Class Purchasing.Mvc.Services.DirectorySearchService

Inheritance: IDirectorySearchService
Afficher le fichier Open project: ucdavis/Purchasing

Méthodes publiques

Méthode Description
FindStudent ( string studentId ) : DirectoryUser
FindUser ( string searchTerm ) : DirectoryUser

Returns the single user that matches the search term -- either loginID or email

GetSearchResponse ( string searchFilter, string searchBase, int sizeLimit = 500 ) : System.DirectoryServices.Protocols.SearchResponse
GetUsersFromResponse ( System.DirectoryServices.Protocols.SearchResponse sResponse ) : List
LDAPFindStudent ( string studentId ) : DirectoryUser

Builds a ldap search for student PIDM and then gets out the first returned user

LDAPFindUser ( string searchTerm ) : DirectoryUser

Builds the ldap search filter and then gets out the first returned user

LDAPSearchUsers ( string employeeId = null, string firstName = null, string lastName = null, string fullName = null, string loginId = null, string email = null, bool useAnd = true ) : List
SearchUsers ( string searchTerm ) : List

Search against email, login and fullname

SearchUsers ( string employeeID, string firstName, string lastName, string fullName, string loginID, string email ) : List

Prepare the search against all fields

Method Details

FindStudent() public static méthode

public static FindStudent ( string studentId ) : DirectoryUser
studentId string
Résultat DirectoryUser

FindUser() public méthode

Returns the single user that matches the search term -- either loginID or email
public FindUser ( string searchTerm ) : DirectoryUser
searchTerm string
Résultat DirectoryUser

GetSearchResponse() public static méthode

public static GetSearchResponse ( string searchFilter, string searchBase, int sizeLimit = 500 ) : System.DirectoryServices.Protocols.SearchResponse
searchFilter string
searchBase string
sizeLimit int
Résultat System.DirectoryServices.Protocols.SearchResponse

GetUsersFromResponse() public static méthode

public static GetUsersFromResponse ( System.DirectoryServices.Protocols.SearchResponse sResponse ) : List
sResponse System.DirectoryServices.Protocols.SearchResponse
Résultat List

LDAPFindStudent() public static méthode

Builds a ldap search for student PIDM and then gets out the first returned user
public static LDAPFindStudent ( string studentId ) : DirectoryUser
studentId string
Résultat DirectoryUser

LDAPFindUser() public static méthode

Builds the ldap search filter and then gets out the first returned user
public static LDAPFindUser ( string searchTerm ) : DirectoryUser
searchTerm string Either UID (kerb) or Mail
Résultat DirectoryUser

LDAPSearchUsers() public static méthode

public static LDAPSearchUsers ( string employeeId = null, string firstName = null, string lastName = null, string fullName = null, string loginId = null, string email = null, bool useAnd = true ) : List
employeeId string
firstName string
lastName string
fullName string
loginId string
email string
useAnd bool
Résultat List

SearchUsers() public méthode

Search against email, login and fullname
public SearchUsers ( string searchTerm ) : List
searchTerm string
Résultat List

SearchUsers() public static méthode

Prepare the search against all fields
public static SearchUsers ( string employeeID, string firstName, string lastName, string fullName, string loginID, string email ) : List
employeeID string
firstName string
lastName string
fullName string
loginID string
email string
Résultat List