Class WMUserDTO
Assembly: WMServer.dll
Syntax
public class WMUserDTO : DataTransferObject<WMUser>, IDbEntity, IWMEntity, IWMResource
Constructors
WMUserDTO()
Declaration
WMUserDTO(WMUser)
Declaration
public WMUserDTO(WMUser modelObj)
Parameters
| Type |
Name |
Description |
| WMUser |
modelObj |
|
WMUserDTO(string)
Constructor that initializes the ID.
Declaration
public WMUserDTO(string id)
Parameters
| Type |
Name |
Description |
| string |
id |
|
Properties
CreatedBy
ID of the user that created this entity.
Declaration
public string CreatedBy { get; set; }
Property Value
CreatedDate
Date and time at which this entity was last updated.
Declaration
public DateTime CreatedDate { get; set; }
Property Value
Email
Primary email address for the user.
Declaration
public string? Email { get; set; }
Property Value
IsSysAdmin
Whether this user is a system admin for this instance of WMServer
Declaration
public int IsSysAdmin { get; set; }
Property Value
LastUpdatedBy
ID of the user that last updated this entity.
Declaration
public string LastUpdatedBy { get; set; }
Property Value
LastUpdatedDate
Date and time at which this entity was last updated.
Declaration
public DateTime LastUpdatedDate { get; set; }
Property Value
LoginName
Declaration
public string LoginName { get; set; }
Property Value
Name
The actual name of the user
Declaration
public string? Name { get; set; }
Property Value
Password
Password used for authentication
Declaration
public string Password { get; set; }
Property Value
Salt
Salt for hashing the password.
Declaration
public string Salt { get; set; }
Property Value
UserStatus
Declaration
public PrincipalStatus UserStatus { get; set; }
Property Value
Methods
FromModel()
Write data from the associated ModelObject. If this is null, does nothing.
Declaration
public override void FromModel()
Overrides
Exceptions
Get(string, AuthDbContext?)
Declaration
public static Task<WMUserDTO> Get(string id, AuthDbContext? context = null)
Parameters
Returns
ResourceDefinition()
The resource operation definition for this asset.
Declaration
public static WMResourceOperationsDefinition ResourceDefinition()
Returns
UpdateModel(WMPrincipal, DbContext, object[]?)
Read data from this DTO and write it to the Model Object.
Declaration
public override Task<WMUser> UpdateModel(WMPrincipal principal, DbContext context, object[]? data)
Parameters
Returns
Overrides
Exceptions
UpdateUser(WMPrincipal, string, WMUserArgs, AuthDbContext)
Updates the given user if the principal possesses the authority.
Declaration
public static Task UpdateUser(WMPrincipal principal, string userID, UserController.WMUserArgs user, AuthDbContext context)
Parameters
Returns
Implements