C# Класс Rock.Security.BackgroundCheck.ProtectMyMinistry

Наследование: BackgroundCheckComponent
Показать файл Открыть проект

Открытые методы

Метод Описание
SaveResults ( System.Xml.Linq.XDocument xResult, Rock workflow, RockContext rockContext, bool saveResponse = true ) : void

Saves the results.

SendRequest ( RockContext rockContext, System.ComponentModel.Model workflow, Rock.Web.Cache.AttributeCache personAttribute, Rock.Web.Cache.AttributeCache ssnAttribute, Rock.Web.Cache.AttributeCache requestTypeAttribute, Rock.Web.Cache.AttributeCache billingCodeAttribute, List &errorMessages ) : bool

Sends a background request to Protect My Ministry

Note: If the associated workflow type does not have attributes with the following keys, they will automatically be added to the workflow type configuration in order to store the results of the PMM background check request RequestStatus: The request status returned by PMM request RequestMessage: Any error messages returned by PMM request ReportStatus: The report status returned by PMM ReportLink: The location of the background report on PMM server ReportRecommendation: PMM's recomendataion Report (BinaryFile): The downloaded background report

Приватные методы

Метод Описание
GetResponse ( Stream responseStream, string contentType, HttpStatusCode statusCode ) : System.Xml.Linq.XDocument

Gets the response.

GetResponseMessage ( Stream responseStream ) : string

Gets the response message.

PostToWebService ( System.Xml.Linq.XDocument data, string requestUrl ) : System.Xml.Linq.XDocument

Posts to web service.

SaveAttributeValue ( Rock workflow, string key, string value, Rock.Web.Cache.FieldTypeCache fieldType, RockContext rockContext, string>.Dictionary qualifiers = null ) : bool

Saves the attribute value.

SaveFile ( Rock.Web.Cache.AttributeCache binaryFileAttribute, string url, string fileName ) : Guid?

Saves the file.

Описание методов

SaveResults() публичный статический Метод

Saves the results.
public static SaveResults ( System.Xml.Linq.XDocument xResult, Rock workflow, RockContext rockContext, bool saveResponse = true ) : void
xResult System.Xml.Linq.XDocument The x result.
workflow Rock The workflow.
rockContext Rock.Data.RockContext The rock context.
saveResponse bool if set to true [save response].
Результат void

SendRequest() публичный Метод

Sends a background request to Protect My Ministry
Note: If the associated workflow type does not have attributes with the following keys, they will automatically be added to the workflow type configuration in order to store the results of the PMM background check request RequestStatus: The request status returned by PMM request RequestMessage: Any error messages returned by PMM request ReportStatus: The report status returned by PMM ReportLink: The location of the background report on PMM server ReportRecommendation: PMM's recomendataion Report (BinaryFile): The downloaded background report
public SendRequest ( RockContext rockContext, System.ComponentModel.Model workflow, Rock.Web.Cache.AttributeCache personAttribute, Rock.Web.Cache.AttributeCache ssnAttribute, Rock.Web.Cache.AttributeCache requestTypeAttribute, Rock.Web.Cache.AttributeCache billingCodeAttribute, List &errorMessages ) : bool
rockContext Rock.Data.RockContext The rock context.
workflow System.ComponentModel.Model The Workflow initiating the request.
personAttribute Rock.Web.Cache.AttributeCache The person attribute.
ssnAttribute Rock.Web.Cache.AttributeCache The SSN attribute.
requestTypeAttribute Rock.Web.Cache.AttributeCache The request type attribute.
billingCodeAttribute Rock.Web.Cache.AttributeCache The billing code attribute.
errorMessages List The error messages.
Результат bool