Class LicenseConvertionHelper
Utility class exposing extension methods for converting between service layer and SoDataBase layer description of associate and satellite licenses
Inheritance
LicenseConvertionHelper
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 |
| SuperOffice.License.ModuleLicenseOwnerBase<,> |
licenseOwner |
|
Returns
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 |
| SuperOffice.License.ModuleLicenseOwnerBase<,> |
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)
Declaration
public static ModuleLicenseLink ConvertToModuleLicenseLink<TLink, TLinkRow>(TLink link) where TLink : ModuleLicenseLinkBase<TLinkRow> where TLinkRow : TableRowBase
Parameters
| Type |
Name |
Description |
| TLink |
link |
|
Returns
Type Parameters
| Name |
Description |
| TLink |
|
| TLinkRow |
|
UpdateFromLicenseOwner<TLink, TLinkRow>(ModuleLicenseOwnerBase<TLink, TLinkRow>, LicenseOwner)
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 |
| SuperOffice.License.ModuleLicenseOwnerBase<,> |
moduleLicenseOwner |
|
| LicenseOwner |
licenseOwner |
|
Type Parameters
| Name |
Description |
| TLink |
|
| TLinkRow |
|
UpdateFromLicenseOwner<TLink, TLinkRow>(ModuleLicenseOwnerBase<TLink, TLinkRow>[], LicenseOwner[])
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 |
| SuperOffice.License.ModuleLicenseOwnerBase<,> |
moduleLicenseOwners |
|
| LicenseOwner |
licenseOwners |
|
Type Parameters
| Name |
Description |
| TLink |
|
| TLinkRow |
|