C# Class GeositeFramework.Models.Geosite

View model for creating the main geosite view (Views/Home/Index.cshtml).
Show file Open project: CoastalResilienceNetwork/GeositeFramework Class Usage Examples

Public Methods

Method Description
Geosite ( JsonData jsonDataRegion, List existingPluginFolderNames, List pluginModuleNames, List pluginConfigJsonData ) : System

Make a Geosite object given the specified configuration info. Note this is public only for testing purposes.

LoadSiteData ( string regionJsonFilePath, string basePath, string appDataFolderPath ) : Geosite

Create a Geosite object by loading the "region.json" file and enumerating plug-ins, using the specified paths.

Private Methods

Method Description
ExtractColorFromJson ( JToken json, string key ) : String

Validate the color syntax and return an HTML acceptable version of the specified color

ExtractLinkFromJson ( JToken json ) : Link

For a json specified link hash (tex/url) return a Link object

ExtractLinkListFromJson ( JToken json ) : List
GetPluginConfigurationData ( IEnumerable pluginFolderPaths, string appDataFolderPath ) : List
MergePluginConfigurationData ( Geosite geosite, List pluginConfigData ) : void

Method Details

Geosite() public method

Make a Geosite object given the specified configuration info. Note this is public only for testing purposes.
public Geosite ( JsonData jsonDataRegion, List existingPluginFolderNames, List pluginModuleNames, List pluginConfigJsonData ) : System
jsonDataRegion GeositeFramework.Helpers.JsonData JSON configuration data (e.g. from a "region.json" configuration file)
existingPluginFolderNames List A list of plugin folder names (not full paths -- relative to the site "plugins" folder)
pluginModuleNames List
pluginConfigJsonData List
return System

LoadSiteData() public static method

Create a Geosite object by loading the "region.json" file and enumerating plug-ins, using the specified paths.
public static LoadSiteData ( string regionJsonFilePath, string basePath, string appDataFolderPath ) : Geosite
regionJsonFilePath string
basePath string
appDataFolderPath string
return Geosite