Show / Hide Table of Contents

Class DefualtUserValidatorPlugin

Inheritance
Object
DefualtUserValidatorPlugin
Implements
IUserValidatorPlugin
Namespace: SuperOffice.CRM.Administration
Assembly: SoDataBase.dll
Syntax
[UserValidatorPlugin("DefaultUserValidatorPlugin")]
public sealed class DefualtUserValidatorPlugin : Object, IUserValidatorPlugin, IPlugin

Constructors

DefualtUserValidatorPlugin()

Declaration
public DefualtUserValidatorPlugin()

Methods

IsAssociateNameLegal(Int32, UserType, Int32, String, out String)

Check if a user name is already in use

Declaration
public bool IsAssociateNameLegal(int associateId, UserType type, int personId, string userName, out string reason)
Parameters
Type Name Description
Int32 associateId

Associate id of the user to check if the user name is valid for.

UserType type

Type of user.

Int32 personId

Person id of the user (if the user is a named user).

String userName

Candidate for user name.

String reason

The reason for denying a user name.

Returns
Type Description
Boolean

Return true if the user name is valid.

IsAssociateUserNameLegal(Int32, UserType, Int32, String, out String)

Declaration
public bool IsAssociateUserNameLegal(int associateId, UserType type, int personId, string associateUsername, out string reason)
Parameters
Type Name Description
Int32 associateId
UserType type
Int32 personId
String associateUsername
String reason
Returns
Type Description
Boolean

IsPasswordLegal(Int32, UserType, Int32, String, out String)

Password policy validation - implementing the rules using the PasswordRules table, which now has a nice GUI faked through the preference system

Declaration
public bool IsPasswordLegal(int associateId, UserType type, int personId, string password, out string reason)
Parameters
Type Name Description
Int32 associateId
UserType type
Int32 personId
String password
String reason
Returns
Type Description
Boolean

Implements

IUserValidatorPlugin

Extension Methods

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