Esempio n. 1
0
        /// <summary>
        /// Gets a Taxonomy dependency key
        /// </summary>
        /// <param name="codename">CodeName</param>
        /// <returns>Dependency key</returns>

        public static string GetTaxonomyKey(string codename)
        {
            return(StringHelpers.Join(TAXONOMY_GROUP_IDENTIFIER, codename));
        }
Esempio n. 2
0
        /// <summary>
        /// Gets a TypeKey dependency key
        /// </summary>
        /// <param name="codename">CodeName</param>
        /// <returns>Dependency key</returns>

        public static string GetTypeKey(string codename)
        {
            return(StringHelpers.Join(CONTENT_TYPE_IDENTIFIER, codename));
        }
Esempio n. 3
0
        /// <summary>
        /// Gets Types dependency key
        /// </summary>
        /// <param name="parameters">Query parameters</param>
        /// <returns>Dependency key</returns>

        public static string GetTypesKey(IEnumerable <IQueryParameter> parameters)
        {
            return(StringHelpers.Join(new[] { CONTENT_TYPE_LISTING_IDENTIFIER }.Concat(parameters?.Select(x => x.GetQueryStringParameter()) ?? Enumerable.Empty <string>())));
        }
Esempio n. 4
0
 /// <summary>
 /// Gets ItemsTyped dependency key
 /// </summary>
 /// <param name="parameters">Query parameters</param>
 /// <returns>Dependency keys</returns>
 public static string GetItemsKey <T>(IEnumerable <IQueryParameter> parameters)
 {
     return(StringHelpers.Join(new[] { typeof(T).GetHashCode().ToString(), CONTENT_ITEM_LISTING_TYPED_IDENTIFIER }.Concat(parameters?.Select(x => x.GetQueryStringParameter()) ?? Enumerable.Empty <string>())));
 }
Esempio n. 5
0
        /// <summary>
        /// Gets a Taxonomy dependency key from codeName
        /// </summary>
        /// <returns>Dependency key</returns>

        public static string GetTaxonomyDependencyKey(string codename)
        {
            return(StringHelpers.Join(DEPENDENCY_TAXONOMY_GROUP, codename));
        }
Esempio n. 6
0
 /// <summary>
 /// Gets a Item dependency key from codeName
 /// </summary>
 /// <returns>Dependency key</returns>
 public static string GetItemDependencyKey(string codename)
 {
     return(StringHelpers.Join(DEPENDENCY_ITEM, codename));
 }
Esempio n. 7
0
 /// <summary>
 /// Gets a ContentElement dependency key
 /// </summary>
 /// <param name="contentTypeCodename">ContentType codeName</param>
 /// <param name="contentElementCodename">ContentElement codeName</param>
 /// <returns>Dependency key</returns>
 public static string GetContentElementKey(string contentTypeCodename, string contentElementCodename)
 {
     return(StringHelpers.Join(CONTENT_TYPE_ELEMENT_IDENTIFIER, contentTypeCodename, contentElementCodename));
 }
Esempio n. 8
0
 /// <summary>
 /// Gets Taxonomies dependency key
 /// </summary>
 /// <param name="parameters">Query Parameters</param>
 /// <returns>Dependency key</returns>
 public static string GetTaxonomiesKey(IEnumerable <IQueryParameter> parameters)
 {
     return(StringHelpers.Join(new[] { TAXONOMY_GROUP_LISTING_IDENTIFIER }.Concat(parameters?.Select(x => x.GetQueryStringParameter()) ?? Enumerable.Empty <string>())));
 }