Class UserHelper
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
public static class UserHelper : Object
Methods
FromName(LicenseOwner[], String)
Get the license owner from an array of license owners
Declaration
public static LicenseOwner FromName(this LicenseOwner[] owners, string ownerName)
Parameters
Type | Name | Description |
---|---|---|
LicenseOwner[] | owners | |
String | ownerName | Name of the module owner. |
Returns
Type | Description |
---|---|
LicenseOwner | License owner with provided name. Null (VB Nothing) is returned if there are no license owners with this name. |
FromName(ModuleLicenseLink[], String)
Find a module license link from an array of module license links.
Declaration
public static ModuleLicenseLink FromName(this ModuleLicenseLink[] modules, string moduleName)
Parameters
Type | Name | Description |
---|---|---|
ModuleLicenseLink[] | modules | Array of module license links |
String | moduleName | Name of the module to find |
Returns
Type | Description |
---|---|
ModuleLicenseLink | Module license link found from an array of module license links. Null (VB Nothing) is returned if there are no modules with this name. |
GetModuleLicenseLink(LicenseOwner, String)
Find a module license link from a LicenseOwner.
Declaration
public static ModuleLicenseLink GetModuleLicenseLink(this LicenseOwner owner, string moduleName)
Parameters
Type | Name | Description |
---|---|---|
LicenseOwner | owner | Owner to get module license link. |
String | moduleName | Name of to module to get. |
Returns
Type | Description |
---|---|
ModuleLicenseLink | ModuleLicenseLink mathcing module name. Null if nothing is found. |
GetModuleLicenseLink(User, String)
Get a module license for a user.
Declaration
public static ModuleLicenseLink GetModuleLicenseLink(this User user, string fullName)
Parameters
Type | Name | Description |
---|---|---|
User | user | User object holding license |
String | fullName | Full name of the license formatted like [OwnerName].[LicenseName]. |
Returns
Type | Description |
---|---|
ModuleLicenseLink | Module license link available for a user. Null (VB Nothing) is returned if there are no modules with this name. |
GetModuleLicenseLink(User, String, String)
Get a module license for a user.
Declaration
public static ModuleLicenseLink GetModuleLicenseLink(this User user, string ownerName, string moduleName)
Parameters
Type | Name | Description |
---|---|---|
User | user | User object holding license |
String | ownerName | Name of the module owner |
String | moduleName | Name of the module |
Returns
Type | Description |
---|---|
ModuleLicenseLink | Module license link available for a user. Null (VB Nothing) is returned if there are no modules with this name. |