Class SecurityRole
Represents a security role defining a set of user permissions to Sentinet features and APIs.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class SecurityRole : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<SecurityRole>
Constructors
SecurityRole()
Instantiates and empty object.
Declaration
public SecurityRole()
Fields
AdministratorRoleId
Identifier of the administrative access system security role.
Declaration
public const int AdministratorRoleId = 1
Field Value
Type | Description |
---|---|
Int32 |
ReadOnlyRoleId
Identifier of the read-only access system security role.
Declaration
public const int ReadOnlyRoleId = 3
Field Value
Type | Description |
---|---|
Int32 |
ReadWriteRoleId
Identifier of the read/write access system security role.
Declaration
public const int ReadWriteRoleId = 2
Field Value
Type | Description |
---|---|
Int32 |
Properties
Description
Gets or sets description of the security role.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
Name
Gets or sets full name of the security role.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
Type | Description |
---|---|
EntityType |
Overrides
Permissions
Gets or sets the flags representing a set of permissions to Sentinet actions that role grants access to.
Declaration
public RepositoryPermissions Permissions { get; set; }
Property Value
Type | Description |
---|---|
RepositoryPermissions |
Methods
Equals(SecurityRole)
Determines whether the specified user is equal to the current user.
Declaration
public bool Equals(SecurityRole other)
Parameters
Type | Name | Description |
---|---|---|
SecurityRole | other | The user to compare with the current user. |
Returns
Type | Description |
---|---|
Boolean | True, if users are equal. False, if users are not equal. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Hash code of the current instance. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents the current object. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
Boolean | True if state is valid; otherwise, false. |