C# 클래스 Microsoft.Legal.MatterCenter.UpdateTaxonomyFields.Utility

This class contains helper functions for updating taxonomy fields.
파일 보기 프로젝트 열기: Microsoft/mattercenter

공개 메소드들

메소드 설명
GetWSSID ( ClientContext clientContext, List list, string title, string id ) : int

Retrieving WssId for given field title

IntializeClientObject ( ClientContext clientContext, TermGroup termGroup, string termSetName ) : List

Initializing Client List By Loading TermGroup

IntializePracticeGroupObject ( ClientContext clientContext, TermGroup termGroup, string termSetName ) : List

Initializing Practice Group List By Loading TermGroup

LoadTermGroup ( ClientContext clientContext, TaxonomySession taxonomySession, string termGroupName ) : TermGroup

Loading the Term Group Based on Given Name

UpdateMatter ( ClientContext clientContext, List list, string titlePracticeGroup, string practiceGroupDefaultValue, string titleAreaOfLaw, string areaOfLawDefaultValue, string titleSubAreaOfLaw, string subAreaOfLawDefaultValue, string clientName ) : void

Updating Matter Based on given Title

UpdateMatterBasedOnContentType ( ClientContext clientContext, List list, List practiceGroups, string compareToContentTypeValue, string clientName, int flag ) : bool

Update Content based on comparison with content type

UpdatePreviousDocuments ( ClientContext clientContext, List list, string practiceGroupMetadataDefaultValue, string areaOfLawMetadataDefaultValue, string subAreaOfLawMetadataDefaultValue, string clientName ) : void

Updating Previous Documents Recursively using CAML Query

비공개 메소드들

메소드 설명
LoadExecute ( ClientContext clientContext, TermCollection termColl ) : void

To load and execute the Term collection

메소드 상세

GetWSSID() 공개 정적인 메소드

Retrieving WssId for given field title
public static GetWSSID ( ClientContext clientContext, List list, string title, string id ) : int
clientContext ClientContext Client Context
list List List For Matters
title string Title for whom WssId need to be retrieved
id string Id for whom WssId need to be retrieved
리턴 int

IntializeClientObject() 공개 정적인 메소드

Initializing Client List By Loading TermGroup
public static IntializeClientObject ( ClientContext clientContext, TermGroup termGroup, string termSetName ) : List
clientContext ClientContext Client Context
termGroup TermGroup Term Group
termSetName string Term Store
리턴 List

IntializePracticeGroupObject() 공개 정적인 메소드

Initializing Practice Group List By Loading TermGroup
public static IntializePracticeGroupObject ( ClientContext clientContext, TermGroup termGroup, string termSetName ) : List
clientContext ClientContext Client Context
termGroup TermGroup Term Group
termSetName string Term Set Name
리턴 List

LoadTermGroup() 공개 정적인 메소드

Loading the Term Group Based on Given Name
public static LoadTermGroup ( ClientContext clientContext, TaxonomySession taxonomySession, string termGroupName ) : TermGroup
clientContext ClientContext Client context
taxonomySession TaxonomySession Taxonomy session
termGroupName string Term group name
리턴 TermGroup

UpdateMatter() 공개 정적인 메소드

Updating Matter Based on given Title
public static UpdateMatter ( ClientContext clientContext, List list, string titlePracticeGroup, string practiceGroupDefaultValue, string titleAreaOfLaw, string areaOfLawDefaultValue, string titleSubAreaOfLaw, string subAreaOfLawDefaultValue, string clientName ) : void
clientContext ClientContext Client Context
list List List For All Matters
titlePracticeGroup string Title For Practice Group
practiceGroupDefaultValue string Default Value to be Set for practice group
titleAreaOfLaw string Title For Area of Law
areaOfLawDefaultValue string Default Value to be Set for Area of Law
titleSubAreaOfLaw string Title For Sub Area of Law
subAreaOfLawDefaultValue string default Value to be Set for Sub Area of Law
clientName string Current Client Name
리턴 void

UpdateMatterBasedOnContentType() 공개 정적인 메소드

Update Content based on comparison with content type
public static UpdateMatterBasedOnContentType ( ClientContext clientContext, List list, List practiceGroups, string compareToContentTypeValue, string clientName, int flag ) : bool
clientContext ClientContext Client Context
list List List For All Matters
practiceGroups List Object List For Class Practice Group
compareToContentTypeValue string Value To be Compared based on Case by flag
clientName string Name of the Client for which Matter are processing
flag int Scenario based on which we need to do update
리턴 bool

UpdatePreviousDocuments() 공개 정적인 메소드

Updating Previous Documents Recursively using CAML Query
public static UpdatePreviousDocuments ( ClientContext clientContext, List list, string practiceGroupMetadataDefaultValue, string areaOfLawMetadataDefaultValue, string subAreaOfLawMetadataDefaultValue, string clientName ) : void
clientContext ClientContext Client Context
list List List of Matters
practiceGroupMetadataDefaultValue string Default Value to be Set for practice group
areaOfLawMetadataDefaultValue string Default Value to be Set for Area of Law
subAreaOfLawMetadataDefaultValue string default Value to be Set for Sub Area of Law
clientName string Current Client name
리턴 void