C# Class Commencement.Controllers.Helpers.LetterGenerator

Inheritance: ILetterGenerator
Afficher le fichier Open project: ucdavis/Commencement

Méthodes publiques

Méthode Description
GenerateEmailAllStudents ( Ceremony ceremony, Student student, string body, TemplateType templateType, Registration registration, Attachment attachment, System.Web.HttpRequestBase request, System.Web.Mvc.UrlHelper url ) : string
GenerateExtraTicketRequestPetitionConfirmation ( RegistrationParticipation registrationParticipation, Template template ) : string
GenerateExtraTicketRequestPetitionDecision ( RegistrationParticipation registrationParticipation, Template template, Attachment attachment, System.Web.HttpRequestBase request, System.Web.Mvc.UrlHelper url, string body = null ) : string
GenerateMoveMajor ( RegistrationParticipation registrationParticipation, Template template ) : string
GenerateRegistrationConfirmation ( RegistrationParticipation registrationParticipation, Template template ) : string
GenerateRegistrationPetitionApproved ( RegistrationPetition registrationPetition, Template template ) : string
GenerateRegistrationPetitionConfirmation ( RegistrationPetition registrationPetition, Template template ) : string
GenerateVisaLetterRequestDecision ( VisaLetter visaLetter, Template template, System.Web.HttpRequestBase request, System.Web.Mvc.UrlHelper url ) : string
ValidateTemplate ( Template template, List invalidTokens ) : bool

Private Methods

Méthode Description
GetAbsoluteUrl ( System.Web.HttpRequestBase request, System.Web.Mvc.UrlHelper url, string relative ) : string
HandleBody ( string body ) : string

Takes the template text from the database and converts it to the finalized text

ValidateBody ( string body, TemplateType templateType, List InvalidTokens ) : bool

Iterates through the body text and validates all tokens against list of tokens

replaceParameter ( string parameter ) : string

Returns the string data that should be replaced into the template text to create the final letter for the students.

Method Details

GenerateEmailAllStudents() public méthode

public GenerateEmailAllStudents ( Ceremony ceremony, Student student, string body, TemplateType templateType, Registration registration, Attachment attachment, System.Web.HttpRequestBase request, System.Web.Mvc.UrlHelper url ) : string
ceremony Ceremony
student Student
body string
templateType TemplateType
registration Registration
attachment Attachment
request System.Web.HttpRequestBase
url System.Web.Mvc.UrlHelper
Résultat string

GenerateExtraTicketRequestPetitionConfirmation() public méthode

public GenerateExtraTicketRequestPetitionConfirmation ( RegistrationParticipation registrationParticipation, Template template ) : string
registrationParticipation RegistrationParticipation
template Template
Résultat string

GenerateExtraTicketRequestPetitionDecision() public méthode

public GenerateExtraTicketRequestPetitionDecision ( RegistrationParticipation registrationParticipation, Template template, Attachment attachment, System.Web.HttpRequestBase request, System.Web.Mvc.UrlHelper url, string body = null ) : string
registrationParticipation RegistrationParticipation
template Template
attachment Attachment
request System.Web.HttpRequestBase
url System.Web.Mvc.UrlHelper
body string
Résultat string

GenerateMoveMajor() public méthode

public GenerateMoveMajor ( RegistrationParticipation registrationParticipation, Template template ) : string
registrationParticipation RegistrationParticipation
template Template
Résultat string

GenerateRegistrationConfirmation() public méthode

public GenerateRegistrationConfirmation ( RegistrationParticipation registrationParticipation, Template template ) : string
registrationParticipation RegistrationParticipation
template Template
Résultat string

GenerateRegistrationPetitionApproved() public méthode

public GenerateRegistrationPetitionApproved ( RegistrationPetition registrationPetition, Template template ) : string
registrationPetition RegistrationPetition
template Template
Résultat string

GenerateRegistrationPetitionConfirmation() public méthode

public GenerateRegistrationPetitionConfirmation ( RegistrationPetition registrationPetition, Template template ) : string
registrationPetition RegistrationPetition
template Template
Résultat string

GenerateVisaLetterRequestDecision() public méthode

public GenerateVisaLetterRequestDecision ( VisaLetter visaLetter, Template template, System.Web.HttpRequestBase request, System.Web.Mvc.UrlHelper url ) : string
visaLetter VisaLetter
template Template
request System.Web.HttpRequestBase
url System.Web.Mvc.UrlHelper
Résultat string

ValidateTemplate() public méthode

public ValidateTemplate ( Template template, List invalidTokens ) : bool
template Template
invalidTokens List
Résultat bool