Table of Contents

Class SecurityFilter

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

true Represents an item that either Adds or Removes a particular SecurityIdentifier to a user's set of allowed items.

public class SecurityFilter
Inheritance
SecurityFilter
Inherited Members

Constructors

SecurityFilter()

Initializes a new instance of the SecurityFilter class.Initializes a new instance of the SecurityFilter class.

public SecurityFilter()

SecurityFilter(SecurityId, bool)

Initializes a new instance of the SecurityFilter class. Eventually this will replace the above constructor fully.

public SecurityFilter(SecurityId securityId, bool isAdd)

Parameters

securityId SecurityId

The securityId

isAdd bool

Whether this feature is Added or Removed.

SecurityFilter(SecurityIdentifier?, bool)

Initializes a new instance of the SecurityFilter class.

public SecurityFilter(SecurityIdentifier? securityIdentifier, bool isAdd)

Parameters

securityIdentifier SecurityIdentifier?

The security identifier.

isAdd bool

Whether this feature is Added or Removed.

Properties

IsAdd

Gets or sets a value indicating whether this feature is Added or Removed. Please note this property is evaluated in the context of the SecurityFilter(s) available to the parent SecurityClearance.

public bool? IsAdd { get; set; }

Property Value

bool?

bool

SecurityId

Gets or sets the SecurityId.

public SecurityId? SecurityId { get; set; }

Property Value

SecurityId

SecurityId

SecurityIdentifier

Gets or sets the identifier that provides a security identity for control of access. See SecurityIdentifier.

public SecurityIdentifier? SecurityIdentifier { get; set; }

Property Value

SecurityIdentifier?

SecurityIdentifier

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object ; otherwise, false.

GetHashCode()

false Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

public override int GetHashCode()

Returns

int

An integer representing the hash code for the current object.

GetSecurityIdWithIsAddFieldInFront()

Gets the IsAdd bool value in the form of a (-) or nothing, in front of the securityId.

public string GetSecurityIdWithIsAddFieldInFront()

Returns

string

A string of the IsAdd if bool is false it will add a (-) in front of the securityId.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.