C# Класс CkanDotNet.Web.Models.Helpers.SettingsHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
FilterTitle ( Package package ) : void

Filter the package title with the package title prefix.

FilterTitles ( List packages ) : void

Filter the package titles with the package title prefix.

GetAddThisCustomWidgetEnabled ( ) : bool

Is an AddThis customer widget enabled

GetAddThisEnabled ( ) : bool

Are AddThis buttons enabled

GetAddThisProfileId ( ) : string

Get the AddThis profile id

GetAllLicensesCacheBackgroundUpdate ( ) : bool

Automatically update the all licenses cache in the background

GetAllLicensesCacheDuration ( ) : System.TimeSpan

Get the duration to cache information about all licenses.

GetAllPackagesCacheBackgroundUpdate ( ) : bool

Automatically update the all packages cache in the background

GetAllPackagesCacheDuration ( ) : System.TimeSpan

Get the duration to cache the full package list.

GetBreadcrumbsEnabled ( ) : bool

Gets the enabled status of the breadcrumbs

GetBreadcrumbsHomeEnabled ( ) : bool

Gets the enabled status of the breadcrumbs on the home page

GetCacheAdminToken ( ) : string

Gets the key required for administering the cache

GetCatalogBreadcrumbsBaseLabel ( ) : string

Gets the label to use for the base breadcrumb

GetCatalogGroup ( ) : string

Get the list of groups that have been configured in the settings.

GetCatalogHiddenTags ( ) : List

Get the list of hidden tags that have been configured in the settings

GetCatalogPackageTitlePrefix ( ) : string

Get the prefix for package titles. The prefix is removed from package names as the prefix is not necessary in a filtered catalog.

GetCatalogTheme ( ) : string

Gets the current theme name

GetDatasetTitleLength ( ) : int

Get the maximum length of a dataset title.

GetDisqusDeveloperModeEnabled ( ) : bool

Is Disqus developer mode enabled

GetDisqusForumShortName ( ) : string

Get the Disqus forum short name

GetDisqusPackageEnabled ( ) : bool

Are Disqus forums enabled on packages

GetDownloadProxyEnabled ( ) : bool

Is the download proxy enabled

GetDownloadProxyLocation ( string root, bool &rootLocationFound ) : Uri

Get the download proxy location

GetDownloadProxyRoute ( ) : string

Get the download proxy route

GetFeaturedPackagesCacheDuration ( ) : System.TimeSpan

Get the duration to cache featured packages.

GetGoogleAnalyticsDomainName ( ) : string

Gets the Google Analytics Domain Name

GetGoogleAnalyticsEnabled ( ) : bool

Is Google Analytics enabled

GetGoogleAnalyticsLinkerAllowed ( ) : bool

Is Google Analytics linker allowed

GetGoogleAnalyticsProfile ( ) : string

Gets the Google Analytics profile

GetHomeBrowseAllPackagesEnabled ( ) : bool

Should browsing of all packages be displayed on the home page

GetHomeFeaturedPackageLimit ( ) : int

Get the maximum number of featured packages to display on the home page

GetHomeFeaturedPackagesEnabled ( ) : bool

Should featured packages be displayed on the home page

GetHomeFeaturedPackagesTag ( ) : string

Gets the tag to use for featured packages

GetHomePageTitle ( ) : string

Gets the page title for the home page

GetHomePopularTagsEnabled ( ) : bool

Should popular tags be displayed on the home page

GetHomePopularTagsLimit ( ) : int

Get the maximum number of popular tags to display on the home page

GetHomeRecentlyUpdatedPackagesEnabled ( ) : bool

Should recently updated packages be displayed on the home page

GetIframeDocumentDomain ( ) : string

Get the document domain for the iframe.

GetIframeEnabled ( ) : bool

Gets the enabled status of enhanced iframe support

GetIframeId ( ) : string

Get the id of the iframe on the parent page.

GetIframeSrc ( ) : string

Get the source of the iframe on the parent page.

GetJQuerySource ( ) : string

Get the jQuery source

GetOfflineEnabled ( ) : bool

Is the data catalog currently offline

GetOfflineMessage ( ) : string

Get the offline message

GetOfflineTitle ( ) : string

Get the offline title

GetPackageCacheDuration ( ) : System.TimeSpan

Get the duration to cache package details.

GetPackageCountCacheBackgroundUpdate ( ) : bool

Automatically update the package count cache in the background

GetPackageCountCacheDuration ( ) : System.TimeSpan

Get the duration to cache the pacakge count

GetPackageExtraFieldLabel ( string field ) : string

Get the label for a package 'extra' field.

GetPackagePageTitle ( ) : string

Gets the page title for the package page

GetPackageRelatedItemsEnabled ( ) : bool

Is the package related items section enabled

GetPackageRssFeedDays ( ) : int

Get the list of groups that have been configured in the settings.

GetPackageRssFeedEnabled ( ) : bool

Is the package RSS feed link enabled

GetPackageUseThemeLicenseTemplate ( ) : bool

Use the license block from the theme license page (_License). Uses the standard CKAN license information by default.

GetRepositoryHost ( ) : string

Get the list of groups that have been configured in the settings.

GetRepositoryRequestTimeout ( ) : int

Get the respository request timeout in milliseconds.

GetResourceSettings ( ) : ResourceSettings

Get the resource settings (custom actions for CKAN resource types)

GetSearchPageTitle ( ) : string

Gets the page title for the search page

GetSearchResultsCacheDuration ( ) : System.TimeSpan

Get the duration to cache search results.

GetSearchResultsMaxPagesToShowInPager ( ) : int

Get the max number of pages to show in the pager. A moving window around the current page will be used.

GetSearchResultsPerPage ( ) : int

Get the maximum number of search results to show per page.

GetSearchResultsShowRating ( ) : bool

Is the rating shown in the search results

GetSearchResultsShowTags ( ) : bool

Are the tags shown in the search results

GetSeoCommonPackageKeywords ( ) : List

Gets common package keywords to display in the meta keywords for every package page

GetSeoHomeDescription ( ) : string

The meta tag description for the home page

GetSeoHomeKeywords ( ) : List

The meta tag keywords for the home page

GetSeoPackageDescriptionLength ( ) : int

Get the maximum number of characters to use in the package description meta tag.

GetSeoSiteMapBaseUrl ( ) : string

The base map to use for the URLs in the sitemap. This setting is used if the adminstrator wants to override the default url (for example, if using a reverse proxy).

GetSuggestionsDelay ( ) : int

Set the delay time for queueing keystokes before requesting suggestions.

GetSuggestionsEnabled ( ) : bool

Are suggestions enabled

GetTagCloudMaxScale ( ) : int

The maximum scale for the tag cloud

GetTagCloudMinScale ( ) : int

The minimum scale for the tag cloud (percent)

GetTagCloudShowCount ( ) : bool

Should the count be displayed beside the tag

GetUserVoiceEnabled ( ) : bool

Are UserVoice suggestions enabled

GetUserVoiceKey ( ) : string

Get the UserVoice widget key

Приватные методы

Метод Описание
GetKeywordsFromSetting ( string setting ) : List

Get comma-delimited keywords from a setting.

GetList ( string key ) : List

Get a list of comma delimited items from the a key in the settings

Описание методов

FilterTitle() публичный статический Метод

Filter the package title with the package title prefix.
public static FilterTitle ( Package package ) : void
package CkanDotNet.Api.Model.Package
Результат void

FilterTitles() публичный статический Метод

Filter the package titles with the package title prefix.
public static FilterTitles ( List packages ) : void
packages List
Результат void

GetAddThisCustomWidgetEnabled() публичный статический Метод

Is an AddThis customer widget enabled
public static GetAddThisCustomWidgetEnabled ( ) : bool
Результат bool

GetAddThisEnabled() публичный статический Метод

Are AddThis buttons enabled
public static GetAddThisEnabled ( ) : bool
Результат bool

GetAddThisProfileId() публичный статический Метод

Get the AddThis profile id
public static GetAddThisProfileId ( ) : string
Результат string

GetAllLicensesCacheBackgroundUpdate() публичный статический Метод

Automatically update the all licenses cache in the background
public static GetAllLicensesCacheBackgroundUpdate ( ) : bool
Результат bool

GetAllLicensesCacheDuration() публичный статический Метод

Get the duration to cache information about all licenses.
public static GetAllLicensesCacheDuration ( ) : System.TimeSpan
Результат System.TimeSpan

GetAllPackagesCacheBackgroundUpdate() публичный статический Метод

Automatically update the all packages cache in the background
public static GetAllPackagesCacheBackgroundUpdate ( ) : bool
Результат bool

GetAllPackagesCacheDuration() публичный статический Метод

Get the duration to cache the full package list.
public static GetAllPackagesCacheDuration ( ) : System.TimeSpan
Результат System.TimeSpan

GetBreadcrumbsEnabled() публичный статический Метод

Gets the enabled status of the breadcrumbs
public static GetBreadcrumbsEnabled ( ) : bool
Результат bool

GetBreadcrumbsHomeEnabled() публичный статический Метод

Gets the enabled status of the breadcrumbs on the home page
public static GetBreadcrumbsHomeEnabled ( ) : bool
Результат bool

GetCacheAdminToken() публичный статический Метод

Gets the key required for administering the cache
public static GetCacheAdminToken ( ) : string
Результат string

GetCatalogBreadcrumbsBaseLabel() публичный статический Метод

Gets the label to use for the base breadcrumb
public static GetCatalogBreadcrumbsBaseLabel ( ) : string
Результат string

GetCatalogGroup() публичный статический Метод

Get the list of groups that have been configured in the settings.
public static GetCatalogGroup ( ) : string
Результат string

GetCatalogHiddenTags() публичный статический Метод

Get the list of hidden tags that have been configured in the settings
public static GetCatalogHiddenTags ( ) : List
Результат List

GetCatalogPackageTitlePrefix() публичный статический Метод

Get the prefix for package titles. The prefix is removed from package names as the prefix is not necessary in a filtered catalog.
public static GetCatalogPackageTitlePrefix ( ) : string
Результат string

GetCatalogTheme() публичный статический Метод

Gets the current theme name
public static GetCatalogTheme ( ) : string
Результат string

GetDatasetTitleLength() публичный статический Метод

Get the maximum length of a dataset title.
public static GetDatasetTitleLength ( ) : int
Результат int

GetDisqusDeveloperModeEnabled() публичный статический Метод

Is Disqus developer mode enabled
public static GetDisqusDeveloperModeEnabled ( ) : bool
Результат bool

GetDisqusForumShortName() публичный статический Метод

Get the Disqus forum short name
public static GetDisqusForumShortName ( ) : string
Результат string

GetDisqusPackageEnabled() публичный статический Метод

Are Disqus forums enabled on packages
public static GetDisqusPackageEnabled ( ) : bool
Результат bool

GetDownloadProxyEnabled() публичный статический Метод

Is the download proxy enabled
public static GetDownloadProxyEnabled ( ) : bool
Результат bool

GetDownloadProxyLocation() публичный статический Метод

Get the download proxy location
public static GetDownloadProxyLocation ( string root, bool &rootLocationFound ) : Uri
root string
rootLocationFound bool
Результат System.Uri

GetDownloadProxyRoute() публичный статический Метод

Get the download proxy route
public static GetDownloadProxyRoute ( ) : string
Результат string

GetFeaturedPackagesCacheDuration() публичный статический Метод

Get the duration to cache featured packages.
public static GetFeaturedPackagesCacheDuration ( ) : System.TimeSpan
Результат System.TimeSpan

GetGoogleAnalyticsDomainName() публичный статический Метод

Gets the Google Analytics Domain Name
public static GetGoogleAnalyticsDomainName ( ) : string
Результат string

GetGoogleAnalyticsEnabled() публичный статический Метод

Is Google Analytics enabled
public static GetGoogleAnalyticsEnabled ( ) : bool
Результат bool

GetGoogleAnalyticsLinkerAllowed() публичный статический Метод

Is Google Analytics linker allowed
public static GetGoogleAnalyticsLinkerAllowed ( ) : bool
Результат bool

GetGoogleAnalyticsProfile() публичный статический Метод

Gets the Google Analytics profile
public static GetGoogleAnalyticsProfile ( ) : string
Результат string

GetHomeBrowseAllPackagesEnabled() публичный статический Метод

Should browsing of all packages be displayed on the home page
public static GetHomeBrowseAllPackagesEnabled ( ) : bool
Результат bool

GetHomeFeaturedPackageLimit() публичный статический Метод

Get the maximum number of featured packages to display on the home page
public static GetHomeFeaturedPackageLimit ( ) : int
Результат int

GetHomeFeaturedPackagesEnabled() публичный статический Метод

Should featured packages be displayed on the home page
public static GetHomeFeaturedPackagesEnabled ( ) : bool
Результат bool

GetHomeFeaturedPackagesTag() публичный статический Метод

Gets the tag to use for featured packages
public static GetHomeFeaturedPackagesTag ( ) : string
Результат string

GetHomePageTitle() публичный статический Метод

Gets the page title for the home page
public static GetHomePageTitle ( ) : string
Результат string

GetHomePopularTagsEnabled() публичный статический Метод

Should popular tags be displayed on the home page
public static GetHomePopularTagsEnabled ( ) : bool
Результат bool

GetHomePopularTagsLimit() публичный статический Метод

Get the maximum number of popular tags to display on the home page
public static GetHomePopularTagsLimit ( ) : int
Результат int

GetHomeRecentlyUpdatedPackagesEnabled() публичный статический Метод

Should recently updated packages be displayed on the home page
public static GetHomeRecentlyUpdatedPackagesEnabled ( ) : bool
Результат bool

GetIframeDocumentDomain() публичный статический Метод

Get the document domain for the iframe.
public static GetIframeDocumentDomain ( ) : string
Результат string

GetIframeEnabled() публичный статический Метод

Gets the enabled status of enhanced iframe support
public static GetIframeEnabled ( ) : bool
Результат bool

GetIframeId() публичный статический Метод

Get the id of the iframe on the parent page.
public static GetIframeId ( ) : string
Результат string

GetIframeSrc() публичный статический Метод

Get the source of the iframe on the parent page.
public static GetIframeSrc ( ) : string
Результат string

GetJQuerySource() публичный статический Метод

Get the jQuery source
public static GetJQuerySource ( ) : string
Результат string

GetOfflineEnabled() публичный статический Метод

Is the data catalog currently offline
public static GetOfflineEnabled ( ) : bool
Результат bool

GetOfflineMessage() публичный статический Метод

Get the offline message
public static GetOfflineMessage ( ) : string
Результат string

GetOfflineTitle() публичный статический Метод

Get the offline title
public static GetOfflineTitle ( ) : string
Результат string

GetPackageCacheDuration() публичный статический Метод

Get the duration to cache package details.
public static GetPackageCacheDuration ( ) : System.TimeSpan
Результат System.TimeSpan

GetPackageCountCacheBackgroundUpdate() публичный статический Метод

Automatically update the package count cache in the background
public static GetPackageCountCacheBackgroundUpdate ( ) : bool
Результат bool

GetPackageCountCacheDuration() публичный статический Метод

Get the duration to cache the pacakge count
public static GetPackageCountCacheDuration ( ) : System.TimeSpan
Результат System.TimeSpan

GetPackageExtraFieldLabel() публичный статический Метод

Get the label for a package 'extra' field.
public static GetPackageExtraFieldLabel ( string field ) : string
field string
Результат string

GetPackagePageTitle() публичный статический Метод

Gets the page title for the package page
public static GetPackagePageTitle ( ) : string
Результат string

GetPackageRelatedItemsEnabled() публичный статический Метод

Is the package related items section enabled
public static GetPackageRelatedItemsEnabled ( ) : bool
Результат bool

GetPackageRssFeedDays() публичный статический Метод

Get the list of groups that have been configured in the settings.
public static GetPackageRssFeedDays ( ) : int
Результат int

GetPackageRssFeedEnabled() публичный статический Метод

Is the package RSS feed link enabled
public static GetPackageRssFeedEnabled ( ) : bool
Результат bool

GetPackageUseThemeLicenseTemplate() публичный статический Метод

Use the license block from the theme license page (_License). Uses the standard CKAN license information by default.
public static GetPackageUseThemeLicenseTemplate ( ) : bool
Результат bool

GetRepositoryHost() публичный статический Метод

Get the list of groups that have been configured in the settings.
public static GetRepositoryHost ( ) : string
Результат string

GetRepositoryRequestTimeout() публичный статический Метод

Get the respository request timeout in milliseconds.
public static GetRepositoryRequestTimeout ( ) : int
Результат int

GetResourceSettings() публичный статический Метод

Get the resource settings (custom actions for CKAN resource types)
public static GetResourceSettings ( ) : ResourceSettings
Результат CkanDotNet.Web.Models.Settings.ResourceSettings

GetSearchPageTitle() публичный статический Метод

Gets the page title for the search page
public static GetSearchPageTitle ( ) : string
Результат string

GetSearchResultsCacheDuration() публичный статический Метод

Get the duration to cache search results.
public static GetSearchResultsCacheDuration ( ) : System.TimeSpan
Результат System.TimeSpan

GetSearchResultsMaxPagesToShowInPager() публичный статический Метод

Get the max number of pages to show in the pager. A moving window around the current page will be used.
public static GetSearchResultsMaxPagesToShowInPager ( ) : int
Результат int

GetSearchResultsPerPage() публичный статический Метод

Get the maximum number of search results to show per page.
public static GetSearchResultsPerPage ( ) : int
Результат int

GetSearchResultsShowRating() публичный статический Метод

Is the rating shown in the search results
public static GetSearchResultsShowRating ( ) : bool
Результат bool

GetSearchResultsShowTags() публичный статический Метод

Are the tags shown in the search results
public static GetSearchResultsShowTags ( ) : bool
Результат bool

GetSeoCommonPackageKeywords() публичный статический Метод

Gets common package keywords to display in the meta keywords for every package page
public static GetSeoCommonPackageKeywords ( ) : List
Результат List

GetSeoHomeDescription() публичный статический Метод

The meta tag description for the home page
public static GetSeoHomeDescription ( ) : string
Результат string

GetSeoHomeKeywords() публичный статический Метод

The meta tag keywords for the home page
public static GetSeoHomeKeywords ( ) : List
Результат List

GetSeoPackageDescriptionLength() публичный статический Метод

Get the maximum number of characters to use in the package description meta tag.
public static GetSeoPackageDescriptionLength ( ) : int
Результат int

GetSeoSiteMapBaseUrl() публичный статический Метод

The base map to use for the URLs in the sitemap. This setting is used if the adminstrator wants to override the default url (for example, if using a reverse proxy).
public static GetSeoSiteMapBaseUrl ( ) : string
Результат string

GetSuggestionsDelay() публичный статический Метод

Set the delay time for queueing keystokes before requesting suggestions.
public static GetSuggestionsDelay ( ) : int
Результат int

GetSuggestionsEnabled() публичный статический Метод

Are suggestions enabled
public static GetSuggestionsEnabled ( ) : bool
Результат bool

GetTagCloudMaxScale() публичный статический Метод

The maximum scale for the tag cloud
public static GetTagCloudMaxScale ( ) : int
Результат int

GetTagCloudMinScale() публичный статический Метод

The minimum scale for the tag cloud (percent)
public static GetTagCloudMinScale ( ) : int
Результат int

GetTagCloudShowCount() публичный статический Метод

Should the count be displayed beside the tag
public static GetTagCloudShowCount ( ) : bool
Результат bool

GetUserVoiceEnabled() публичный статический Метод

Are UserVoice suggestions enabled
public static GetUserVoiceEnabled ( ) : bool
Результат bool

GetUserVoiceKey() публичный статический Метод

Get the UserVoice widget key
public static GetUserVoiceKey ( ) : string
Результат string