Пример #1
0
        private IList <IPageLayoutDef> GetPageLayoutDefList(string moduleProfilePath)
        {
            XElement xmlDoc = LoadXMLFile(moduleProfilePath);
            IList <IPageLayoutDef> pageLayoutDefList =
                ModuleProfileUtilities.GetPageLayoutDefs(GetModules(xmlDoc));

            return(pageLayoutDefList);
        }
Пример #2
0
        public string GenerateProfileToken(string moduleProfilePath, IList <string> resourcesFiles)
        {
            string moduleFolderPath = ModuleProfileUtilities.GetModuleParentPath(moduleProfilePath);

            var pageLayoutDefList = GetPageLayoutDefList(moduleProfilePath);

            IList <string> featurePageList = GetFeaturePagePathList(pageLayoutDefList, moduleFolderPath);

            IList <string> dataSourceList = GetDataSourcePathList(pageLayoutDefList, moduleFolderPath);

            return(GenerateProfileToken(moduleProfilePath, resourcesFiles, featurePageList, dataSourceList));
        }
Пример #3
0
 private string GetModuleProfileVersion(XElement moduleProfileRoot)
 {
     return(ModuleProfileUtilities.GetProfileFileVersion(logger, moduleProfileRoot));
 }
Пример #4
0
 private IList <string> GetDataSourcePathList(IList <IPageLayoutDef> pageLayoutDefList, string packagePath)
 {
     return(ModuleProfileUtilities.GetDataSourcePathList(pageLayoutDefList, packagePath));
 }
Пример #5
0
 private IList <IModule> GetModules(XElement rootElement)
 {
     return(ModuleProfileUtilities.LoadModuleProfile(rootElement, GetModuleProfileVersion(rootElement)));
 }