Class DefualtUserValidatorPlugin
Implements
Inherited Members
Namespace: SuperOffice.CRM.Administration
Assembly: SoDataBase.dll
Syntax
[UserValidatorPlugin("DefaultUserValidatorPlugin")]
public sealed class DefualtUserValidatorPlugin : 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. |
SuperOffice.License.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 | |
SuperOffice.License.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 | |
SuperOffice.License.UserType | type | |
Int32 | personId | |
String | password | |
String | reason |
Returns
Type | Description |
---|---|
Boolean |
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)