Show / Hide Table of Contents

Class RestrictionStorageFactory

Factory class for restriction storage providers. This class will scan for plugins of type and return a provider for a particular storage type on request.

Inheritance
Object
RestrictionStorageFactory
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
public static class RestrictionStorageFactory : Object

Methods

GetMapping(String, String)

Return the criterion mapping information - if any - for the given combination of storage type and provider name

Declaration
public static Dictionary<string, Dictionary<string, string>> GetMapping(string storageType, string xPath)
Parameters
Type Name Description
String storageType

Case-insensitive name of the desired storage type. Initially valid types are 'Criteria' and 'Reporter'.

String xPath
Returns
Type Description
Dictionary<String, Dictionary<String, String>>

Mapping information, typically an XML string

GetProvider(String)

Factory class for restriction storage providers. This class will scan for plugins of type and return a provider for a particular storage type on request.

Declaration
public static IRestrictionStorage GetProvider(string storageType)
Parameters
Type Name Description
String storageType
Returns
Type Description
IRestrictionStorage

GetProvider(String, String)

Return a singleton restriction storage provider for the given storageType, or null if no provider exists.

Declaration
public static IRestrictionStorage GetProvider(string storageType, string context)
Parameters
Type Name Description
String storageType

Case-insensitive name of the desired storage type. Initially valid types are 'Criteria' and 'Reporter'.

String context
Returns
Type Description
IRestrictionStorage

Storage provider, or null

GetRestrictionFromAllGroupsViaStorage(ArchiveRestrictionInfo[], String, String, String, String)

Factory class for restriction storage providers. This class will scan for plugins of type and return a provider for a particular storage type on request.

Declaration
public static ArchiveRestrictionInfo[][] GetRestrictionFromAllGroupsViaStorage(ArchiveRestrictionInfo[] restrictions, string providerName, string storageType, string storageKeyRestrictionName, string restrictionStorageKey)
Parameters
Type Name Description
ArchiveRestrictionInfo[] restrictions
String providerName
String storageType
String storageKeyRestrictionName
String restrictionStorageKey
Returns
Type Description
ArchiveRestrictionInfo[][]

GetRestrictionFromAllGroupsViaStorage(ArchiveRestrictionInfo[], String, String, String, String, String)

Factory class for restriction storage providers. This class will scan for plugins of type and return a provider for a particular storage type on request.

Declaration
public static ArchiveRestrictionInfo[][] GetRestrictionFromAllGroupsViaStorage(ArchiveRestrictionInfo[] restrictions, string providerName, string storageType, string storageKeyRestrictionName, string restrictionStorageKey, string context)
Parameters
Type Name Description
ArchiveRestrictionInfo[] restrictions
String providerName
String storageType
String storageKeyRestrictionName
String restrictionStorageKey
String context
Returns
Type Description
ArchiveRestrictionInfo[][]

GetRestrictionViaStorage(ArchiveRestrictionInfo[], String, String, String, String)

Factory class for restriction storage providers. This class will scan for plugins of type and return a provider for a particular storage type on request.

Declaration
public static ArchiveRestrictionInfo[] GetRestrictionViaStorage(ArchiveRestrictionInfo[] restrictions, string providerName, string storageType, string storageKeyRestrictionName, string restrictionStorageKey)
Parameters
Type Name Description
ArchiveRestrictionInfo[] restrictions
String providerName
String storageType
String storageKeyRestrictionName
String restrictionStorageKey
Returns
Type Description
ArchiveRestrictionInfo[]

GetRestrictionViaStorage(ArchiveRestrictionInfo[], String, String, String, String, String)

Factory class for restriction storage providers. This class will scan for plugins of type and return a provider for a particular storage type on request.

Declaration
public static ArchiveRestrictionInfo[] GetRestrictionViaStorage(ArchiveRestrictionInfo[] restrictions, string providerName, string storageType, string storageKeyRestrictionName, string restrictionStorageKey, string context)
Parameters
Type Name Description
ArchiveRestrictionInfo[] restrictions
String providerName
String storageType
String storageKeyRestrictionName
String restrictionStorageKey
String context
Returns
Type Description
ArchiveRestrictionInfo[]
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top