@Test public void testRoleInherit() throws Exception { VDBRepository repo = new VDBRepository(); repo.setSystemStore(RealMetadataFactory.example1Cached().getMetadataStore()); repo.setSystemFunctionManager(RealMetadataFactory.SFM); MetadataStore metadataStore = new MetadataStore(); RealMetadataFactory.createPhysicalModel("x", metadataStore); VDBMetaData vdb = createVDBMetadata(metadataStore, "bqt"); DataPolicyMetadata dpm = new DataPolicyMetadata(); dpm.setName("x"); dpm.setGrantAll(true); vdb.addDataPolicy(dpm); ConnectorManagerRepository cmr = new ConnectorManagerRepository(); cmr.addConnectorManager("x", new ConnectorManager("y", "z")); repo.addVDB(vdb, metadataStore, null, null, cmr); metadataStore = new MetadataStore(); RealMetadataFactory.createPhysicalModel("y", metadataStore); vdb = createVDBMetadata(metadataStore, "ex"); VDBImportMetadata vdbImport = new VDBImportMetadata(); vdbImport.setName("bqt"); vdbImport.setVersion("1"); vdbImport.setImportDataPolicies(true); vdb.getVDBImports().add(vdbImport); repo.addVDB(vdb, metadataStore, null, null, new ConnectorManagerRepository()); vdb = repo.getLiveVDB("ex"); assertEquals(1, vdb.getDataPolicyMap().get("x").getSchemas().size()); }
private MetadataStore getMetadataStore() { return this.store; }
CompositeVDB { private MetadataStore getMetadataStore() { return this.store; } }
CompositeVDB { private MetadataStore getMetadataStore() { return this.store; } CompositeVDB(VDBMetaData vdb, MetadataStore metadataStore,
            LinkedHashMap<String, VDBResources.Resource> visibilityMap, UDFMetaData udf, FunctionTree systemFunctions,
            ConnectorManagerRepository cmr, VDBRepository vdbRepository, MetadataStore... additionalStores); }
CompositeVDB { private MetadataStore getMetadataStore() { return this.store; } CompositeVDB(VDBMetaData vdb, MetadataStore metadataStore,
            LinkedHashMap<String, VDBResources.Resource> visibilityMap, UDFMetaData udf, FunctionTree systemFunctions,
            ConnectorManagerRepository cmr, VDBRepository vdbRepository, MetadataStore... additionalStores); VDBMetaData getVDB(); void metadataLoadFinished(boolean allowEnv); Collection<Future<?>> clearTasks(); void removeTask(Future<?> future); void addTask(Future<?> future); VDBKey getVDBKey(); }
CompositeVDB { private MetadataStore getMetadataStore() { return this.store; } CompositeVDB(VDBMetaData vdb, MetadataStore metadataStore,
            LinkedHashMap<String, VDBResources.Resource> visibilityMap, UDFMetaData udf, FunctionTree systemFunctions,
            ConnectorManagerRepository cmr, VDBRepository vdbRepository, MetadataStore... additionalStores); VDBMetaData getVDB(); void metadataLoadFinished(boolean allowEnv); Collection<Future<?>> clearTasks(); void removeTask(Future<?> future); void addTask(Future<?> future); VDBKey getVDBKey();  }