Class RoleModel
This model class represents a security role within the application.
Inherited Members
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 SourceRoleModel()
Initializes a new instance of the RoleModel class.
Declaration
public RoleModel()
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 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. |
CreatedBy
Gets or sets the user model for the creating user.
Declaration
public MinimalUserModel CreatedBy { get; set; }
Property Value
Type | Description |
---|---|
MinimalUserModel |
CreatedDate
Gets or sets the record created date time.
Declaration
public DateTime CreatedDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
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 |
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 record last updated date time.
Declaration
public DateTime UpdatedDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
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> |