Show / Hide Table of Contents

Class LicenseConvertionHelper

Utility class exposing extension methods for converting between service layer and SoDataBase layer description of associate and satellite licenses

Inheritance
object
LicenseConvertionHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.Implementation.dll
Syntax
public static class LicenseConvertionHelper

Methods

ConvertToLicenseOwner<TLink, TLinkRow>(ModuleLicenseOwnerBase<TLink, TLinkRow>)

onvert from SoDatabBase level way of describing associate and satellite licenses to service layer.

Declaration
public static LicenseOwner ConvertToLicenseOwner<TLink, TLinkRow>(this ModuleLicenseOwnerBase<TLink, TLinkRow> licenseOwner) where TLink : ModuleLicenseLinkBase<TLinkRow> where TLinkRow : TableRowBase
Parameters
Type Name Description
ModuleLicenseOwnerBase<TLink, TLinkRow> licenseOwner
Returns
Type Description
LicenseOwner
Type Parameters
Name Description
TLink
TLinkRow

ConvertToLicenseOwner<TLink, TLinkRow>(ModuleLicenseOwnerBase<TLink, TLinkRow>[])

Convert from SoDatabBase level way of describing associate and satellite licenses to service layer.

Declaration
public static LicenseOwner[] ConvertToLicenseOwner<TLink, TLinkRow>(this ModuleLicenseOwnerBase<TLink, TLinkRow>[] licenseOwners) where TLink : ModuleLicenseLinkBase<TLinkRow> where TLinkRow : TableRowBase
Parameters
Type Name Description
ModuleLicenseOwnerBase<TLink, TLinkRow>[] licenseOwners

Array of license owners with corresponding module license links

Returns
Type Description
LicenseOwner[]

Service layer representation of associate and satellite licenses.

Type Parameters
Name Description
TLink

Type of link row wrapper in SoDatabase

TLinkRow

Type of HDB object holding tha actual license link

ConvertToModuleLicenseLink<TLink, TLinkRow>(TLink)

Utility class exposing extension methods for converting between service layer and SoDataBase layer description of associate and satellite licenses

Declaration
public static ModuleLicenseLink ConvertToModuleLicenseLink<TLink, TLinkRow>(TLink link) where TLink : ModuleLicenseLinkBase<TLinkRow> where TLinkRow : TableRowBase
Parameters
Type Name Description
TLink link
Returns
Type Description
ModuleLicenseLink
Type Parameters
Name Description
TLink
TLinkRow

UpdateFromLicenseOwner<TLink, TLinkRow>(ModuleLicenseOwnerBase<TLink, TLinkRow>, LicenseOwner)

Utility class exposing extension methods for converting between service layer and SoDataBase layer description of associate and satellite licenses

Declaration
public static void UpdateFromLicenseOwner<TLink, TLinkRow>(this ModuleLicenseOwnerBase<TLink, TLinkRow> moduleLicenseOwner, LicenseOwner licenseOwner) where TLink : ModuleLicenseLinkBase<TLinkRow> where TLinkRow : TableRowBase
Parameters
Type Name Description
ModuleLicenseOwnerBase<TLink, TLinkRow> moduleLicenseOwner
LicenseOwner licenseOwner
Type Parameters
Name Description
TLink
TLinkRow

UpdateFromLicenseOwner<TLink, TLinkRow>(ModuleLicenseOwnerBase<TLink, TLinkRow>[], LicenseOwner[])

Utility class exposing extension methods for converting between service layer and SoDataBase layer description of associate and satellite licenses

Declaration
public static void UpdateFromLicenseOwner<TLink, TLinkRow>(this ModuleLicenseOwnerBase<TLink, TLinkRow>[] moduleLicenseOwners, LicenseOwner[] licenseOwners) where TLink : ModuleLicenseLinkBase<TLinkRow> where TLinkRow : TableRowBase
Parameters
Type Name Description
ModuleLicenseOwnerBase<TLink, TLinkRow>[] moduleLicenseOwners
LicenseOwner[] licenseOwners
Type Parameters
Name Description
TLink
TLinkRow
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top