Show / Hide Table of Contents

Class Parsers

Converts a string into an array of ArchiveRestrictionInfo objects.

Inheritance
object
Parsers
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 class Parsers

Constructors

Parsers()

Converts a string into an array of ArchiveRestrictionInfo objects.

Declaration
public Parsers()

Methods

ParseColumns(string)

Parse "foo,bar, quux" into array of bare names: { "foo", "bar", "quux" }.

Declaration
public static string[] ParseColumns(string columns)
Parameters
Type Name Description
string columns

Comma separated names in string: "foo,bar, quux"

Returns
Type Description
string[]

string array: { "foo", "bar", "quux" }

ParseOrderBy(string)

Parse string like

"name asc, dept desc"
into ArchiveOrderByInfo
Declaration
public static ArchiveOrderByInfo[] ParseOrderBy(string orderBy)
Parameters
Type Name Description
string orderBy

"name asc, dept desc"

Returns
Type Description
ArchiveOrderByInfo[]

Order by info objects

ParseRestrictions(string)

Parse a string like

"name = 'foo' or (dept startsWith 'baz')"
into ArchiveRestrictionInfo
Declaration
public static ArchiveRestrictionInfo[] ParseRestrictions(string restrictions)
Parameters
Type Name Description
string restrictions

OData like filter string.

Returns
Type Description
ArchiveRestrictionInfo[]

Array of ArchiveRestrictionInfo objects. ArgumentException if parse error.

Extension Methods

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