Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gpii.ontologyHandler.loadOntologies = function (that) {
// Check for re-occurence of GPII-1063
fluid.log("loadOntologies for " + that.id + " path " + fluid.pathForComponent(that));
// Load ontology transformations
var transformsFolder = fluid.module.resolvePath(that.options.ontologyTransformationListFolder);
var ontologyTransformsList = fs.readdirSync(transformsFolder); // Read the list of available ontologyTransformations
// Load the ontologies:
gpii.ontologyHandler.loadOntologyTransformSpecs(that, transformsFolder, ontologyTransformsList);
// Load the ontology metadata:
var metadataFolder = fluid.module.resolvePath(that.options.ontologyMetadataFolder);
gpii.ontologyHandler.loadOntologyMetadata(that, metadataFolder);
};
Licensed under the New BSD license. You may not use this file except in
compliance with this License.
The research leading to these results has received funding from the European Union's
Seventh Framework Programme (FP7/2007-2013) under grant agreement no. 289016.
You may obtain a copy of the License at
https://github.com/GPII/universal/blob/master/LICENSE.txt
*/
"use strict";
var fluid = require("infusion"),
kettle = fluid.registerNamespace("kettle"),
gpii = fluid.registerNamespace("gpii");
fluid.module.register("gpii-universal", __dirname, require);
// TODO: proper module loader will eliminate these requires (FLUID-5521)
require("./gpii/node_modules/solutionsRegistry");
require("./gpii/node_modules/transformer");
require("./gpii/node_modules/deviceReporter");
require("./gpii/node_modules/lifecycleManager");
require("./gpii/node_modules/lifecycleActions");
require("./gpii/node_modules/flowManager");
require("./gpii/node_modules/settingsHandlers");
require("./gpii/node_modules/preferencesServer");
require("./gpii/node_modules/ontologyHandler");
require("./gpii/node_modules/matchMakerFramework");
require("./gpii/node_modules/flatMatchMaker");
require("./gpii/node_modules/journal");
require("./gpii/node_modules/eventLog");
require("./gpii/node_modules/processReporter");
"use strict";
var fluid = require("infusion");
fluid.module.register("lifecycleManager", __dirname, require);
// MatchMaking.js is used in both flowManager and lifecycleManager modules for:
// * Cloud Based Flow Manager: to perform matchmaking in the cloud without the present of lifecycleManager;
// * lifecycleManager: to handle user logon requests.
fluid.require("%flowManager/src/MatchMaking.js");
require("./src/DynamicComponentIndexer.js");
require("./src/Resolvers.js");
require("./src/LifecycleManagerSession.js");
require("./src/SessionAware.js");
require("./src/UserLogonRequest.js");
require("./src/UserLogonStateChange.js");
require("./src/LifecycleManager.js");
// settings schema template from that.options.baseSettingsSchema
// TODO: Add all solutions/settings and schemas from that.options.solutionsRegistryPath
var solutionsSettings = gpii.solutionsRegistry.schemaGenerator.settingsFromSolutions(that);
var genericSettings = gpii.solutionsRegistry.schemaGenerator.genericSettings(that);
var allSettings = fluid.extend({}, solutionsSettings, genericSettings);
// Merge the generated settings schema data into the "base schema" at the right point.
fluid.set(
settingsSchema,
"properties",
allSettings
);
var settingsOutputPath = fluid.module.resolvePath(that.options.settingsSchemaOutputPath);
var settingsOutputDir = path.dirname(settingsOutputPath);
if (!fs.existsSync(settingsOutputDir)) {
mkdirp.sync(settingsOutputDir);
}
fs.writeFileSync(settingsOutputPath, JSON.stringify(settingsSchema, null, 2));
};
gpii.tests.universal.solutionsRegistry.indexAllSettings = function (that) {
var indexObject = {};
var resolvedSrPath = fluid.module.resolvePath(that.options.solutionsRegistryPath);
var srFiles = fs.readdirSync(resolvedSrPath);
fluid.each(srFiles, function (filename) {
if (filename.match(/^.+\.json5?$/i)) {
var srFilePath = path.resolve(resolvedSrPath, filename);
var srData = require(srFilePath);
gpii.tests.universal.solutionsRegistry.indexSrEntries(indexObject, srData);
}
});
var genericTermsPath = fluid.module.resolvePath(that.options.genericPreferenceTermsPath);
var genericTermsData = require(genericTermsPath);
gpii.tests.universal.solutionsRegistry.indexGenericPreferences(indexObject, genericTermsData);
return indexObject;
};
"use strict";
var fluid = require("infusion");
fluid.module.register("pouchManager", __dirname, require);
require("./src/pouchManager.js");
var fluid = require("infusion");
fluid.module.register("deviceReporter", __dirname, require);
require("./src/DeviceReporter.js");
*
* The R&D leading to these results received funding from the
* Department of Education - Grant H421A150005 (GPII-APCP). However,
* these results do not necessarily represent the policy of the
* Department of Education, and you should not assume endorsement by the
* Federal Government.
*
* You may obtain a copy of the License at
* https://github.com/GPII/universal/blob/master/LICENSE.txt
*/
"use strict";
var fluid = require("infusion");
fluid.module.register("eventLog", __dirname, require);
require("./src/installID.js");
require("./src/eventLog.js");
require("./src/metrics.js");
"use strict";
var fluid = require("infusion");
fluid.module.register("contextManager", __dirname, require);
fluid.require("%flowManager/src/SystemUtils.js");
require("./src/ContextManager.js");
"use strict";
var fluid = require("infusion");
fluid.module.register("journal", __dirname, require);
require("./src/SettingsDir.js");
require("./src/JournalIdParser.js");
require("./src/Journal.js");