All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lib.xp.examples.node.multiRepoConnect.js Maven / Gradle / Ivy

The newest version!
var nodeLib = require('/lib/xp/node');
var assert = require('/lib/xp/testing');


// BEGIN
// Connect to repo 'myRepo', branch 'master'.
var searchConnection = nodeLib.multiRepoConnect({
    sources: [
        {
            repoId: 'my-repo',
            branch: 'myBranch',
            principals: ['role:system.admin']
        },
        {
            repoId: 'my-other-repo',
            branch: 'master',
            principals: ['role:system.admin']
        }
    ]
});
// END

assert.assertNotNull(searchConnection);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy