Show / Hide Table of Contents

Class RoleModel

This model class represents a security role within the application.

Inheritance
System.Object
MinimalRoleModel
RoleModel
Inherited Members
MinimalRoleModel.RoleId
MinimalRoleModel.Name
MinimalRoleModel.Description
MinimalRoleModel.SystemRole
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Vasont.Publisher.Models.Security
Assembly: Vasont.Publisher.Models.dll
Syntax
public class RoleModel : MinimalRoleModel

Constructors

| Improve this Doc View Source

RoleModel()

Initializes a new instance of the RoleModel class.

Declaration
public RoleModel()
| Improve this Doc View Source

RoleModel(String)

Initializes a new instance of the RoleModel class.

Declaration
public RoleModel(string roleName)
Parameters
Type Name Description
System.String roleName

Contains the name of the role.

Properties

| Improve this Doc View Source

Abilities

Gets or sets the abilities.

Declaration
public List<string> Abilities { get; set; }
Property Value
Type Description
System.Collections.Generic.List<System.String>

The abilities.

| Improve this Doc View Source

CreatedBy

Gets or sets the user model for the creating user.

Declaration
public MinimalUserModel CreatedBy { get; set; }
Property Value
Type Description
MinimalUserModel
| Improve this Doc View Source

CreatedDate

Gets or sets the record created date time.

Declaration
public DateTime CreatedDate { get; set; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

Default

Gets or sets a value indicating whether the role is automatically added to users when they are synchronized via the application subscription Redis channel.

Declaration
public bool Default { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

UpdatedBy

Gets or sets the user model for the updating user.

Declaration
public MinimalUserModel UpdatedBy { get; set; }
Property Value
Type Description
MinimalUserModel
| Improve this Doc View Source

UpdatedDate

Gets or sets the record last updated date time.

Declaration
public DateTime UpdatedDate { get; set; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

Users

Gets or sets a list of user models assigned to this role.

Declaration
public List<MinimalUserModel> Users { get; set; }
Property Value
Type Description
System.Collections.Generic.List<MinimalUserModel>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright (c) GlobalLink Vasont