C# 클래스 Microsoft.Legal.MatterCenter.Web.Common.ValidationFunctions

상속: IValidationFunctions
파일 보기 프로젝트 열기: Microsoft/mattercenter

공개 메소드들

메소드 설명
CheckListExists ( Client client, string matterName, MatterConfigurations matterConfigurations = null ) : List

Checks if the lists exist

GenericResponse ( string code, string value ) : GenericResponseVM
IsMatterValid ( MatterInformationVM matterInformation, int methodNumber, MatterConfigurations matterConfigurations ) : GenericResponseVM

Check the matter is valid or not

MatterDetailsValidation ( Matter matter, Client client, int methodNumber, MatterConfigurations matterConfigurations ) : GenericResponseVM

Validates details of a matter and returns the validation status.

MatterMetadataValidation ( Matter matter, Client client, int methodNumber, MatterConfigurations matterConfigurations ) : GenericResponseVM

Validates meta-data of a matter and returns the validation status (success/failure).

RoleCheck ( Matter matter ) : GenericResponseVM

Validates the roles for the matter and returns the validation status.

ValidationFunctions ( ISPList spList, IOptions matterSettings, IOptions errorSettings, IMatterRepository matterRespository, IOptions listNames, IOptions camlQueries, IOptions generalSettings, IOptions taxonomySettings ) : Microsoft.Extensions.Options

Do validation stuff

비공개 메소드들

메소드 설명
CheckUserPermission ( Matter matter ) : GenericResponseVM

Validates the permissions assigned to the users.

MatterNameValidation ( Matter matter ) : GenericResponseVM

Validates the matter name.

ValidateClientInformation ( Client client, int methodNumber ) : GenericResponseVM

Function to validate client information

ValidateContentType ( Matter matter ) : GenericResponseVM

Validates content type for the matter.

ValidateFullControlPermission ( Matter matter ) : bool

Validates if there is at-least one user with full control in assign list.

메소드 상세

CheckListExists() 공개 메소드

Checks if the lists exist
public CheckListExists ( Client client, string matterName, MatterConfigurations matterConfigurations = null ) : List
client Microsoft.Legal.MatterCenter.Models.Client
matterName string
matterConfigurations Microsoft.Legal.MatterCenter.Models.MatterConfigurations
리턴 List

GenericResponse() 공개 메소드

public GenericResponse ( string code, string value ) : GenericResponseVM
code string
value string
리턴 Microsoft.Legal.MatterCenter.Models.GenericResponseVM

IsMatterValid() 공개 메소드

Check the matter is valid or not
public IsMatterValid ( MatterInformationVM matterInformation, int methodNumber, MatterConfigurations matterConfigurations ) : GenericResponseVM
matterInformation Microsoft.Legal.MatterCenter.Models.MatterInformationVM
methodNumber int
matterConfigurations Microsoft.Legal.MatterCenter.Models.MatterConfigurations
리턴 Microsoft.Legal.MatterCenter.Models.GenericResponseVM

MatterDetailsValidation() 공개 메소드

Validates details of a matter and returns the validation status.
public MatterDetailsValidation ( Matter matter, Client client, int methodNumber, MatterConfigurations matterConfigurations ) : GenericResponseVM
matter Microsoft.Legal.MatterCenter.Models.Matter
client Microsoft.Legal.MatterCenter.Models.Client
methodNumber int
matterConfigurations Microsoft.Legal.MatterCenter.Models.MatterConfigurations
리턴 Microsoft.Legal.MatterCenter.Models.GenericResponseVM

MatterMetadataValidation() 공개 메소드

Validates meta-data of a matter and returns the validation status (success/failure).
public MatterMetadataValidation ( Matter matter, Client client, int methodNumber, MatterConfigurations matterConfigurations ) : GenericResponseVM
matter Microsoft.Legal.MatterCenter.Models.Matter
client Microsoft.Legal.MatterCenter.Models.Client
methodNumber int
matterConfigurations Microsoft.Legal.MatterCenter.Models.MatterConfigurations
리턴 Microsoft.Legal.MatterCenter.Models.GenericResponseVM

RoleCheck() 공개 메소드

Validates the roles for the matter and returns the validation status.
public RoleCheck ( Matter matter ) : GenericResponseVM
matter Microsoft.Legal.MatterCenter.Models.Matter
리턴 Microsoft.Legal.MatterCenter.Models.GenericResponseVM

ValidationFunctions() 공개 메소드

Do validation stuff
public ValidationFunctions ( ISPList spList, IOptions matterSettings, IOptions errorSettings, IMatterRepository matterRespository, IOptions listNames, IOptions camlQueries, IOptions generalSettings, IOptions taxonomySettings ) : Microsoft.Extensions.Options
spList ISPList
matterSettings IOptions
errorSettings IOptions
matterRespository IMatterRepository
listNames IOptions
camlQueries IOptions
generalSettings IOptions
taxonomySettings IOptions
리턴 Microsoft.Extensions.Options