Show / Hide Table of Contents

Class RestrictionStorageFactory

Factory class for restriction storage providers. This class will scan for plugins of type SuperOffice.CRM.Services.Implementation.DCF.ArchiveLists.IRestrictionStorage and return a provider for a particular storage type on request.

Inheritance
object
RestrictionStorageFactory
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public static class RestrictionStorageFactory

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 SuperOffice.CRM.Services.Implementation.DCF.ArchiveLists.IRestrictionStorage 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 SuperOffice.CRM.Services.Implementation.DCF.ArchiveLists.IRestrictionStorage 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 SuperOffice.CRM.Services.Implementation.DCF.ArchiveLists.IRestrictionStorage 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 SuperOffice.CRM.Services.Implementation.DCF.ArchiveLists.IRestrictionStorage 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 SuperOffice.CRM.Services.Implementation.DCF.ArchiveLists.IRestrictionStorage 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