C# 클래스 CkanDotNet.Web.Models.Helpers.SettingsHelper

파일 보기 프로젝트 열기: opencolorado/.NET-Wrapper-for-CKAN-API

공개 메소드들

메소드 설명
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