Show / Hide Table of Contents

Class UserHelper

Inheritance
object
UserHelper
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.dll
Syntax
public static class UserHelper

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.

© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top