C# Class HelpRequest.Controllers.Services.TicketControllerService

Inheritance: ITicketControllerService
Show file Open project: ucdavis/HelpRequest

Public Methods

Method Description
BuildBody ( Ticket ticket ) : string

Builds the body of the email. #7

CasLogin ( ) : void

CAS Login #4

CheckForSupportEmailAddresses ( ModelStateDictionary modelState, Ticket ticket ) : void

Checks for support email addresses. #1

CommonSubmitValidationChecks ( ModelStateDictionary modelState, Ticket ticket, string avDates, string emailCCs, string availableDatesInput, string emailCCsInput ) : void

Common submit validation checks (Common to both public and non-public submit). #2

FilterCruEmail ( string emailCc ) : bool

Filters the cru email. #8

FindKerbUser ( string identityName ) : DirectoryUser

Finds the kerberos user. #5

GetHelpEmail ( Ticket ticket ) : string

Gets the help email. #9

LoadFileContents ( Ticket ticket, System.Web.HttpPostedFileBase uploadAttachment ) : void

Loads the file contents. #3

SendHelpRequest ( Ticket ticket, bool isPublicEmail, IEmailProvider emailProvider ) : void

Sends the help request. #6

Method Details

BuildBody() public method

Builds the body of the email. #7
public BuildBody ( Ticket ticket ) : string
ticket Ticket The ticket.
return string

CasLogin() public method

CAS Login #4
public CasLogin ( ) : void
return void

CheckForSupportEmailAddresses() public method

Checks for support email addresses. #1
public CheckForSupportEmailAddresses ( ModelStateDictionary modelState, Ticket ticket ) : void
modelState ModelStateDictionary State of the model.
ticket Ticket The ticket.
return void

CommonSubmitValidationChecks() public method

Common submit validation checks (Common to both public and non-public submit). #2
public CommonSubmitValidationChecks ( ModelStateDictionary modelState, Ticket ticket, string avDates, string emailCCs, string availableDatesInput, string emailCCsInput ) : void
modelState ModelStateDictionary State of the model.
ticket Ticket The ticket.
avDates string The av dates.
emailCCs string The email C cs.
availableDatesInput string The available dates input.
emailCCsInput string The email C cs input.
return void

FilterCruEmail() public method

Filters the cru email. #8
public FilterCruEmail ( string emailCc ) : bool
emailCc string The email cc.
return bool

FindKerbUser() public method

Finds the kerberos user. #5
public FindKerbUser ( string identityName ) : DirectoryUser
identityName string Name of the identity.
return DirectoryUser

GetHelpEmail() public method

Gets the help email. #9
public GetHelpEmail ( Ticket ticket ) : string
ticket Ticket The ticket.
return string

LoadFileContents() public method

Loads the file contents. #3
public LoadFileContents ( Ticket ticket, System.Web.HttpPostedFileBase uploadAttachment ) : void
ticket Ticket The ticket.
uploadAttachment System.Web.HttpPostedFileBase The upload attachment.
return void

SendHelpRequest() public method

Sends the help request. #6
public SendHelpRequest ( Ticket ticket, bool isPublicEmail, IEmailProvider emailProvider ) : void
ticket Ticket The ticket.
isPublicEmail bool if set to true [is public email or if Kerb email].
emailProvider IEmailProvider The email provider.
return void