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

Inheritance: IConfigRepository
Afficher le fichier Open project: Microsoft/mattercenter

Méthodes publiques

Méthode Description
ConfigRepository ( ISPOAuthorization spoAuthorization, IOptions generalSettings, IOptions configSettings ) : Microsoft.Extensions.Options

ConfigRepository with all the required dependency injections inserted

GetConfigEntities ( string filter ) : List

Get all the current configs from the Config Storage table

GetConfigurationsAsync ( String filter ) : Task>

GetEncryptedPassword ( string plainTextPassword ) : SecureString

This method will return the secure password for authentication to SharePoint Online

InsertUpdateConfigurationsAsync ( String configs ) : Task

UpdateEntityProperty ( string configs ) : bool

Update or Insert Configuration values

UploadConfigFileToSPO ( string filePath, string clientUrl ) : void

This method will upload uiconfigforspo.js into sharepoint catalog site collection

Private Methods

Méthode Description
CreateEntity ( string>.KeyValuePair entry, string>.KeyValuePair keyValue ) : Microsoft.WindowsAzure.Storage.Table.DynamicTableEntity
GetTable ( ) : Microsoft.WindowsAzure.Storage.Table.CloudTable

Method Details

ConfigRepository() public méthode

ConfigRepository with all the required dependency injections inserted
public ConfigRepository ( ISPOAuthorization spoAuthorization, IOptions generalSettings, IOptions configSettings ) : Microsoft.Extensions.Options
spoAuthorization ISPOAuthorization
generalSettings IOptions
configSettings IOptions
Résultat Microsoft.Extensions.Options

GetConfigEntities() public méthode

Get all the current configs from the Config Storage table
public GetConfigEntities ( string filter ) : List
filter string
Résultat List

GetConfigurationsAsync() public méthode

public GetConfigurationsAsync ( String filter ) : Task>
filter String
Résultat Task>

GetEncryptedPassword() public static méthode

This method will return the secure password for authentication to SharePoint Online
public static GetEncryptedPassword ( string plainTextPassword ) : SecureString
plainTextPassword string
Résultat System.Security.SecureString

InsertUpdateConfigurationsAsync() public méthode

public InsertUpdateConfigurationsAsync ( String configs ) : Task
configs String
Résultat Task

UpdateEntityProperty() public méthode

Update or Insert Configuration values
public UpdateEntityProperty ( string configs ) : bool
configs string
Résultat bool

UploadConfigFileToSPO() public méthode

This method will upload uiconfigforspo.js into sharepoint catalog site collection
public UploadConfigFileToSPO ( string filePath, string clientUrl ) : void
filePath string
clientUrl string
Résultat void