continue; Set<Object> conformedTo = aNode.getConformedTo(); if (conformedTo == null) { conformedSources.retainAll(Collections.singletonList(aNode.getModelId()));
continue; Set<Object> conformedTo = aNode.getConformedTo(); if (conformedTo == null) { conformedSources.retainAll(Collections.singletonList(aNode.getModelId()));
continue; Set<Object> conformedTo = aNode.getConformedTo(); if (conformedTo == null) { conformedSources.retainAll(Collections.singletonList(aNode.getModelId()));
public static Object validateCommandPushdown(Object critNodeModelID, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, AccessNode aNode, boolean considerConformed) throws TeiidComponentException { // Check that query in access node is for the same model as current node try { if (!(aNode.getCommand() instanceof QueryCommand)) { return null; } Object modelID = aNode.getModelId(); if (critNodeModelID == null) { critNodeModelID = modelID; } else if(!CapabilitiesUtil.isSameConnector(critNodeModelID, modelID, metadata, capFinder) && (!considerConformed || !RuleRaiseAccess.isConformed(metadata, capFinder, aNode.getConformedTo(), modelID, null, critNodeModelID))) { return null; } } catch(QueryMetadataException e) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30272, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30272)); } return critNodeModelID; }
public static Object validateCommandPushdown(Object critNodeModelID, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, AccessNode aNode, boolean considerConformed) throws TeiidComponentException { // Check that query in access node is for the same model as current node try { if (!(aNode.getCommand() instanceof QueryCommand)) { return null; } Object modelID = aNode.getModelId(); if (critNodeModelID == null) { critNodeModelID = modelID; } else if(!CapabilitiesUtil.isSameConnector(critNodeModelID, modelID, metadata, capFinder) && (!considerConformed || !RuleRaiseAccess.isConformed(metadata, capFinder, aNode.getConformedTo(), modelID, null, critNodeModelID))) { return null; } } catch(QueryMetadataException e) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30272, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30272)); } return critNodeModelID; }
public static Object validateCommandPushdown(Object critNodeModelID, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, AccessNode aNode, boolean considerConformed) throws TeiidComponentException { // Check that query in access node is for the same model as current node try { if (!(aNode.getCommand() instanceof QueryCommand)) { return null; } Object modelID = aNode.getModelId(); if (critNodeModelID == null) { critNodeModelID = modelID; } else if(!CapabilitiesUtil.isSameConnector(critNodeModelID, modelID, metadata, capFinder) && (!considerConformed || !RuleRaiseAccess.isConformed(metadata, capFinder, aNode.getConformedTo(), modelID, null, critNodeModelID))) { return null; } } catch(QueryMetadataException e) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30272, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30272)); } return critNodeModelID; }