Class UserModel
This class represents a security user within the application.
Inherited Members
Namespace: Vasont.Publisher.Models.Security
Assembly: Vasont.Publisher.Models.dll
Syntax
public class UserModel : MinimalUserModelConstructors
| Improve this Doc View SourceUserModel()
Initializes a new instance of the UserModel class.
Declaration
public UserModel()UserModel(String, String)
Initializes a new instance of the UserModel class.
Declaration
public UserModel(string userName, string emailAddress)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | userName | Contains the user name of the account. | 
| System.String | emailAddress | Contains the e-mail address of the account. | 
Properties
| Improve this Doc View SourceAbilities
Gets or sets the abilities.
Declaration
public List<string> Abilities { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.List<System.String> | The abilities. | 
Active
Gets or sets a value indicating whether the user account is active.
Declaration
public bool Active { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
CreatedBy
Gets or sets the user model for the creator user.
Declaration
public MinimalUserModel CreatedBy { get; set; }Property Value
| Type | Description | 
|---|---|
| MinimalUserModel | 
CreatedDate
Gets or sets the date time when the account was created.
Declaration
public DateTime CreatedDate { get; set; }Property Value
| Type | Description | 
|---|---|
| System.DateTime | 
Deletable
Gets or sets a value indicating whether the user can be deleted. Typically set to true if the user model matches the current user. The current user cannot delete themselves.
Declaration
public bool Deletable { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Notes
Gets or sets the user notes.
Declaration
public string Notes { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Roles
Gets or sets a list of associated roles.
Declaration
public List<MinimalRoleModel> Roles { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.List<MinimalRoleModel> | 
UpdatedBy
Gets or sets the user model for the updating user.
Declaration
public MinimalUserModel UpdatedBy { get; set; }Property Value
| Type | Description | 
|---|---|
| MinimalUserModel | 
UpdatedDate
Gets or sets the date time when the account was last updated.
Declaration
public DateTime UpdatedDate { get; set; }Property Value
| Type | Description | 
|---|---|
| System.DateTime | 
UserType
Gets or sets the user type of the user model.
Declaration
public PublishServerUserType UserType { get; set; }Property Value
| Type | Description | 
|---|---|
| PublishServerUserType |