Class AuthorizationRule
Represents a rule that defines an expression evaluating caller's identity claims or message content.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class AuthorizationRule : DomainObjectBase, IValidator, IExtensibleDataObject, IFolderEntity, IEquatable<AuthorizationRule>
Constructors
AuthorizationRule()
Instanciates and empty object.
Declaration
public AuthorizationRule()
Properties
Description
Gets or sets rule description.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Expression
Gets or sets expression that defines rule's execution logic.
Declaration
public AuthorizationExpressionBase Expression { get; set; }
Property Value
Type | Description |
---|---|
AuthorizationExpressionBase |
FolderId
Gets or sets identifier of the folder where rule is stored.
Declaration
public int? FolderId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
FriendlyName
Gets or sets rule's friendly name.
Declaration
public string FriendlyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
Type | Description |
---|---|
EntityType |
Overrides
Methods
Equals(AuthorizationRule)
Determines whether the specified domain object is equal to the current object.
Declaration
public bool Equals(AuthorizationRule other)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationRule | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | True, if objects are equal. False, if objects are not equal. |
Equals(Object)
Determines whether the specified domain object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.String | A string that represents the current object. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |