Ejemplo n.º 1
0
        private IList <IPageLayoutDef> GetPageLayoutDefList(string moduleProfilePath)
        {
            XElement xmlDoc = LoadXMLFile(moduleProfilePath);
            IList <IPageLayoutDef> pageLayoutDefList =
                ModuleProfileUtilities.GetPageLayoutDefs(GetModules(xmlDoc));

            return(pageLayoutDefList);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
0
 private string GetModuleProfileVersion(XElement moduleProfileRoot)
 {
     return(ModuleProfileUtilities.GetProfileFileVersion(logger, moduleProfileRoot));
 }
Ejemplo n.º 4
0
 private IList <string> GetDataSourcePathList(IList <IPageLayoutDef> pageLayoutDefList, string packagePath)
 {
     return(ModuleProfileUtilities.GetDataSourcePathList(pageLayoutDefList, packagePath));
 }
Ejemplo n.º 5
0
 private IList <IModule> GetModules(XElement rootElement)
 {
     return(ModuleProfileUtilities.LoadModuleProfile(rootElement, GetModuleProfileVersion(rootElement)));
 }