Show / Hide Table of Contents

Class RestrictionReporterStorage

Inheritance
Object
RestrictionStorageBase
RestrictionReporterStorage
Implements
IRestrictionStorage
Inherited Members
RestrictionStorageBase.CreateDefaultRestrictionInfo(String, ArchiveColumnInfo, String)
RestrictionStorageBase.CreateDefaultRestrictionInfo(String, ArchiveColumnInfo)
RestrictionStorageBase.IsStorageKeyZero(String)
RestrictionStorageBase.IsStorageKeyNegativeOrZero(String)
RestrictionStorageBase.GetRestrictionColumns(String, String)
RestrictionStorageBase.IsSaintColumn(String)
RestrictionStorageBase.MapSaintColumn(SaintRestrictionExtenderBase.Columns, SaintRestrictionExtenderBase.CounterType, SaintRestrictionExtenderBase.MainType, Int32)
RestrictionStorageBase.SaveRestrictionGroup(String, String, ArchiveRestrictionGroup)
RestrictionStorageBase.GetRestrictionsForGroup(String, String, Int32)
RestrictionStorageBase.GetRestrictionGroup(String, String, Int32)
RestrictionStorageBase.DeleteRestrictionGroup(String, String, Int32)
RestrictionStorageBase.GetRestrictionGroups(String, String)
RestrictionStorageBase.CopyCriteria(Int32, Int32, Int32)
RestrictionStorageBase.DeleteCriteria(String, String, Int32)
RestrictionStorageBase.Context
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
[RestrictionStoragePlugin("Reporter")]
public class RestrictionReporterStorage : RestrictionStorageBase, IRestrictionStorage, IPlugin

Constructors

RestrictionReporterStorage()

Declaration
public RestrictionReporterStorage()

Fields

SaintActivityType

Declaration
public const string SaintActivityType = "saintActivityType"
Field Value
Type Description
String

SaintAmountClass

Declaration
public const string SaintAmountClass = "saintAmountClass"
Field Value
Type Description
String

SaintDirection

Declaration
public const string SaintDirection = "saintDirection"
Field Value
Type Description
String

SaintIntention

Declaration
public const string SaintIntention = "saintIntention"
Field Value
Type Description
String

SaintSaleStatus

Declaration
public const string SaintSaleStatus = "saintSaleStatus"
Field Value
Type Description
String

SaintTicketCategory

Declaration
public const string SaintTicketCategory = "saintTicketCategory"
Field Value
Type Description
String

SaintTicketStatus

Declaration
public const string SaintTicketStatus = "saintTicketStatus"
Field Value
Type Description
String

StorageType

Declaration
public const string StorageType = "Reporter"
Field Value
Type Description
String

Methods

FormatGetRestrictionValues(ArchiveRestrictionInfo[])

Declaration
public void FormatGetRestrictionValues(ArchiveRestrictionInfo[] restrictions)
Parameters
Type Name Description
ArchiveRestrictionInfo[] restrictions

FormatSaveRestrictionValues(ArchiveRestrictionInfo[])

Declaration
public void FormatSaveRestrictionValues(ArchiveRestrictionInfo[] restrictions)
Parameters
Type Name Description
ArchiveRestrictionInfo[] restrictions

GetHandledColumns(String)

Get the names of all columns handled for the given combination of provider name and storage type. These are the only valid column names for the other methods in this interface.

Declaration
public override string[] GetHandledColumns(string providerName)
Parameters
Type Name Description
String providerName

Provider name to check for

Returns
Type Description
String[]

Array of column names. This array may be empty if no columns are handled.

Overrides
RestrictionStorageBase.GetHandledColumns(String)
Exceptions
Type Condition
SoIllegalOperationException

Thrown if there is no handler for the given storageType.

GetRestrictions(String, String)

Retrieve previously saved restrictions according to the given keys The ArchiveRestrictionInfo objects are fully populated, including the ArchiveColumnInfo part.

Declaration
public override ArchiveRestrictionInfo[] GetRestrictions(string providerName, string storageKey)
Parameters
Type Name Description
String providerName

Name of archive list provider who owns/supplies/processes the columns

String storageKey

Key information to pass to storage handler. In this handler we expect the format to be "report=45" or some other relevant key

Returns
Type Description
ArchiveRestrictionInfo[]

Array of restrictions. This array may be empty if no restrictions corresponded to the given key.

Overrides
RestrictionStorageBase.GetRestrictions(String, String)

GetSpecifiedRestrictionsWithDefaults(String, String, String[])

Retrieve previously saved restrictions, returning exactly those columns that have been specified. If the columns have valid saved values, those will be returned; otherwise, default values for operator and value will be created. The ArchiveRestrictionInfo objects are fully populated, including the ArchiveColumnInfo part.

Declaration
public override ArchiveRestrictionInfo[] GetSpecifiedRestrictionsWithDefaults(string providerName, string storageKey, params string[] requestedRestrictions)
Parameters
Type Name Description
String providerName

Name of archive list provider who owns/supplies/processes the columns

String storageKey

Key information to pass to storage handler. In this handler we expect the format to be "report=45" or some other relevant key

String[] requestedRestrictions
Returns
Type Description
ArchiveRestrictionInfo[]

Array of restrictions. This array may be empty if no restrictions corresponded to the given key.

Overrides
RestrictionStorageBase.GetSpecifiedRestrictionsWithDefaults(String, String, String[])
Exceptions
Type Condition
SoIllegalOperationException

Thrown if there is no handler for the given storageType.

SaveRestrictions(String, String, ArchiveRestrictionInfo[])

Save an array of restrictions for later use. The ColumnInfo member of the archive restriction info objects is not used and can be null.

Declaration
public override void SaveRestrictions(string providerName, string storageKey, params ArchiveRestrictionInfo[] restrictions)
Parameters
Type Name Description
String providerName

Name of archive list provider who owns/supplies/processes the columns

String storageKey

Key information to pass to storage handler. In this handler we expect the format to be "report=45" or some other relevant key

ArchiveRestrictionInfo[] restrictions

Array of restrictions to be saved. Values, operators etc are also saved.

Overrides
RestrictionStorageBase.SaveRestrictions(String, String, ArchiveRestrictionInfo[])

Implements

IRestrictionStorage

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top