C# Класс Microsoft.Legal.MatterCenter.Repository.SPPage

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

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

Метод Описание
AddWebPart ( ClientContext clientContext, LimitedWebPartManager limitedWebPartManager, WebPartDefinition webPartDefinition, string webParts, string zones ) : bool

Adds all web parts on matter landing page.

ConfigureXMLCodeOfWebParts ( Client client, Matter matter, ClientContext clientContext, string pageName, Uri uri, Web web, MatterConfigurations matterConfigurations ) : string[]

Configures XML of web parts.

CreateWebPartPage ( ClientContext clientContext, string pageName, string layout, string masterpagelistName, string listName, string pageTitle ) : int
Delete ( ClientContext clientContext, string pageUrl ) : void

Deletes the page

IsFileExists ( ClientContext clientContext, string pageUrl ) : bool

Checks the file at the specified location and return the file existence status.

PageExists ( string requestedUrl, ClientContext clientContext ) : bool

Checks if the requested page exists or not.

SPPage ( ISPOAuthorization spoAuthorization, IOptions generalSettings, IOptions logTables, ICustomLogger customLogger, ISPList spList, IOptions matterSettings ) : Microsoft.Extensions.Options

All the dependencies are injected

UrlExists ( Client client, string pageUrl ) : bool

Will check whether a url exists in the current site collection or not

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

Метод Описание
ConfigureListViewWebPart ( List sitePageLib, ClientContext clientContext, string pageName, Client client, Matter matter, string titleUrl ) : string

Configures XML code of List View web part.

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

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

Adds all web parts on matter landing page.
public AddWebPart ( ClientContext clientContext, LimitedWebPartManager limitedWebPartManager, WebPartDefinition webPartDefinition, string webParts, string zones ) : bool
clientContext ClientContext Client Context
limitedWebPartManager LimitedWebPartManager LimitedWebPartManager object to import web parts
webPartDefinition WebPartDefinition WebPartDefinition object to add web parts on page
webParts string Array of web parts that should be added on Matter Landing Page
zones string Array of Zone IDs
Результат bool

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

Configures XML of web parts.
public ConfigureXMLCodeOfWebParts ( Client client, Matter matter, ClientContext clientContext, string pageName, Uri uri, Web web, MatterConfigurations matterConfigurations ) : string[]
client Microsoft.Legal.MatterCenter.Models.Client Client object containing Client data
matter Microsoft.Legal.MatterCenter.Models.Matter Matter object containing Matter data
clientContext ClientContext SharePoint Client Context
pageName string
uri System.Uri To get URL segments
web Web Web object of the current context
matterConfigurations Microsoft.Legal.MatterCenter.Models.MatterConfigurations
Результат string[]

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

public CreateWebPartPage ( ClientContext clientContext, string pageName, string layout, string masterpagelistName, string listName, string pageTitle ) : int
clientContext ClientContext
pageName string
layout string
masterpagelistName string
listName string
pageTitle string
Результат int

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

Deletes the page
public Delete ( ClientContext clientContext, string pageUrl ) : void
clientContext ClientContext Client Context
pageUrl string Page URL
Результат void

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

Checks the file at the specified location and return the file existence status.
public IsFileExists ( ClientContext clientContext, string pageUrl ) : bool
clientContext ClientContext Client Context
pageUrl string File URL
Результат bool

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

Checks if the requested page exists or not.
public PageExists ( string requestedUrl, ClientContext clientContext ) : bool
requestedUrl string URL of the page, for which check is to be performed
clientContext ClientContext ClientContext for SharePoint
Результат bool

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

All the dependencies are injected
public SPPage ( ISPOAuthorization spoAuthorization, IOptions generalSettings, IOptions logTables, ICustomLogger customLogger, ISPList spList, IOptions matterSettings ) : Microsoft.Extensions.Options
spoAuthorization ISPOAuthorization
generalSettings IOptions
logTables IOptions
customLogger ICustomLogger
spList ISPList
matterSettings IOptions
Результат Microsoft.Extensions.Options

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

Will check whether a url exists in the current site collection or not
public UrlExists ( Client client, string pageUrl ) : bool
client Microsoft.Legal.MatterCenter.Models.Client Contains the url in which we need to check whether a page exists or not
pageUrl string The page
Результат bool