public static string ResolvedLink(string uri)
 {
     if (IsTCMURI(uri))
     {
         if (IsTridionLinkResolutionEnabled())
         {
             return(TridionDataHelper.ComponentLinkMethod(uri));
         }
         else
         {
             return("TridionLinkResolvedDisabled(" + uri + ")");
         }
     }
     return(uri);
 }
        /// <summary>
        /// Re Index all documents of a Content Type identified by Schema ID
        /// </summary>
        /// <param name="schemaID">Schema ID</param>
        /// <param name="contentRepositoryId">Content Repository ID</param>
        private void ReIndexSchema(string schemaID, int contentRepositoryId)
        {
            List <XmlDocument> componentXMLs = TridionDataHelper.GetContentByType(Convert.ToInt32(schemaID),
                                                                                  contentRepositoryId,
                                                                                  Int32.MaxValue);

            if (componentXMLs == null)
            {
                return;
            }

            // Do not process null value component presentations
            componentXMLs = componentXMLs.Where(xdoc => xdoc != null).ToList();

            componentXMLs.ForEach(xdoc => AddDocumentXML(xdoc));
        }
        static string GetWebPageKeywordTitle(string itemUri)
        {
            int publicationId = TridionDataHelper.GetContentRepositoryId(itemUri);
            int CONSTANT_WEBPAGE_KEYWORD_URI  = int.Parse(GetConfigurationValue("KEYWORD_WEBPAGE_ITEM_ID"));
            int CONSTANT_WEBPAGE_KEYWORD_TYPE = int.Parse(GetConfigurationValue("KEYWORD_WEBPAGE_ITEM_TYPE"));

            var keyword = TridionDataHelper.GetKeywords(publicationId,
                                                        CONSTANT_WEBPAGE_KEYWORD_URI,
                                                        CONSTANT_WEBPAGE_KEYWORD_TYPE);

            if (keyword != null)
            {
                return(keyword.KeywordName);
            }
            else
            {
                return("Web Page");
            }
        }