C# Class Microsoft.Legal.MatterCenter.Repository.SPContentTypes

Inheritance: ISPContentTypes
Mostra file Open project: Microsoft/mattercenter

Public Methods

Method Description
AssignContentTypeHelper ( MatterMetadata matterMetadata, ClientContext clientContext, IList contentTypeCollection, Client client, Matter matter ) : GenericResponseVM

This method will assign content types to the matter that is getting created

GetContentTypeData ( ClientContext clientContext, IList contentTypesNames, Client client, Matter matter ) : IList

This method will get all content types from the specified content type group and will filter out the content types that user has selected when creating the matter

SPContentTypes ( IOptions contentTypesConfig, IOptions camlQueries, ISPList spList, ICustomLogger customLogger, IOptions logTables, IOptions taxonomySettings, IConfigurationRoot configuration ) : Microsoft.Extensions.Configuration

Private Methods

Method Description
GetContentType ( ClientContext clientContext, IList contentTypeCollection, List matterList ) : FieldCollection

Retrieves the list of content types that are to be associated with the matter.

GetContentTypeList ( IList contentTypesNames, List contentTypeList ) : IList

Generates the list of Content Types that are associated with matter.

GetWSSId ( ClientContext clientContext, MatterMetadata matterMetadata, FieldCollection fields ) : MatterMetadata

Function to get the WssID for all the managed columns that user has configured

SetDefaultContentType ( ClientContext clientContext, List list, Client client, Matter matter ) : void

Sets the default content type based on user selection for the new matter that is getting created

SetFieldValues ( ClientContext clientContext, IList contentTypeCollection, List matterList, MatterMetadata matterMetadata ) : void

Assigns field values for specified content types to the specified matter (document library).

Method Details

AssignContentTypeHelper() public method

This method will assign content types to the matter that is getting created
public AssignContentTypeHelper ( MatterMetadata matterMetadata, ClientContext clientContext, IList contentTypeCollection, Client client, Matter matter ) : GenericResponseVM
matterMetadata Microsoft.Legal.MatterCenter.Models.MatterMetadata
clientContext ClientContext
contentTypeCollection IList
client Microsoft.Legal.MatterCenter.Models.Client
matter Microsoft.Legal.MatterCenter.Models.Matter
return Microsoft.Legal.MatterCenter.Models.GenericResponseVM

GetContentTypeData() public method

This method will get all content types from the specified content type group and will filter out the content types that user has selected when creating the matter
public GetContentTypeData ( ClientContext clientContext, IList contentTypesNames, Client client, Matter matter ) : IList
clientContext ClientContext The sharepoint context object
contentTypesNames IList Content Type Names that user selected in the create matter screen
client Microsoft.Legal.MatterCenter.Models.Client The client object which contains information for which client the matter is getting created and the url of the client
matter Microsoft.Legal.MatterCenter.Models.Matter The matter information that is getting created
return IList

SPContentTypes() public method

public SPContentTypes ( IOptions contentTypesConfig, IOptions camlQueries, ISPList spList, ICustomLogger customLogger, IOptions logTables, IOptions taxonomySettings, IConfigurationRoot configuration ) : Microsoft.Extensions.Configuration
contentTypesConfig IOptions
camlQueries IOptions
spList ISPList
customLogger ICustomLogger
logTables IOptions
taxonomySettings IOptions
configuration IConfigurationRoot
return Microsoft.Extensions.Configuration