Table of Contents

Class Plugin

Namespace: Casewhere.Models
Assembly: Casewhere.Models.dll

Represents a plugin entity. Casewhere provides a flexible plugin framework to make it easy to extend your Casewhere solution with more functionalities. From simple tasks like sending emails to complex ones such as executing a SQL query, almost everything can be done using a Casewhere plugin. Casewhere plugins can be developed independently, installed on-demand, and invoked at runtime.

public class Plugin : Entity, IIdentity

Inheritance

objectEntityPlugin

Implements

IIdentity

Inherited Members

Entity.GetResourceName(), Entity.Id, Entity.Version, Entity.CreatedBy, Entity.CreatedAt, Entity.ModifiedBy, Entity.ModifiedAt, object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Extension Methods

ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<Plugin>(Plugin)

Constructors

Plugin()

public Plugin()

Properties

ConfigurationFile

public string ConfigurationFile { get; set; }

Property Value

string

Description

Gets or sets the description of the plugin.

public string Description { get; set; }

Property Value

string

FileName

Gets the file name of the plugin.

[JsonIgnore]
public string FileName { get; }

Property Value

string

IsLocked

public bool IsLocked { get; set; }

Property Value

bool

IsPublic

Gets or sets a value indicating whether the plugin is public.

public bool IsPublic { get; set; }

Property Value

bool

Name

Gets or sets the name of the plugin.

public string Name { get; set; }

Property Value

string

PluginPolicies

Gets or sets the list of plugin policies.

public IList<PluginPolicy> PluginPolicies { get; set; }

Property Value

IList<PluginPolicy>

ProductId

public Guid ProductId { get; set; }

Property Value

Guid

Settings

Gets or sets the settings of the plugin. Plugin configuration in a text format, e.g., JSON, XML.

public string Settings { get; set; }

Property Value

string

SettingsFileName

Gets or sets the file name of the plugin settings.

public string SettingsFileName { get; set; }

Property Value

string

Tags

public IList<string> Tags { get; set; }

Property Value

IList<string>

Methods

GetFileName(string)

Gets the file name for the given plugin name.

public static string GetFileName(string name)

Parameters

name string

The name of the plugin.

Returns

string

The file name of the plugin.

GetResourceName()

Gets the display name of the entity.

public override string GetResourceName()

Returns

string

The display name of the entity.