C# Class Microsoft.Legal.MatterCenter.UpdateTaxonomyFields.Utility

This class contains helper functions for updating taxonomy fields.
显示文件 Open project: Microsoft/mattercenter

Public Methods

Method Description
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

Private Methods

Method Description
LoadExecute ( ClientContext clientContext, TermCollection termColl ) : void

To load and execute the Term collection

Method Details

GetWSSID() public static method

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
return int

IntializeClientObject() public static method

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
return List

IntializePracticeGroupObject() public static method

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
return List

LoadTermGroup() public static method

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
return TermGroup

UpdateMatter() public static method

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
return void

UpdateMatterBasedOnContentType() public static method

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
return bool

UpdatePreviousDocuments() public static method

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
return void