public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { try { Composite patched = applyXPath(composite, context.getDefinitions(), context.getMonitor()); return patched; } catch (Exception e) { throw new CompositeBuilderException(e); } }
public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { try { Composite patched = applyXPath(composite, context.getDefinitions(), context.getMonitor()); return patched; } catch (Exception e) { throw new CompositeBuilderException(e); } }
public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { try { Definitions definitions = context.getDefinitions(); if (definitions == null || (definitions.getPolicySets().isEmpty() && definitions.getExternalAttachments().isEmpty()) ) { return composite; } // create a DOM for the Domain Composite Infoset Document document = saveAsDOM(composite); // create a cache of evaluated node against each policy set so we don't // have to keep evaluating policy sets that appear in multiple places Map<PolicySet, List<PolicySubject>> appliesToSubjects = new HashMap<PolicySet, List<PolicySubject>>(); // for all implementations, endpoint and endpoint references check that // the policy sets validly apply return checkAppliesTo(document, appliesToSubjects, composite, context); } catch (Exception e) { throw new CompositeBuilderException(e); } }
public Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException { try { Definitions definitions = context.getDefinitions(); if (definitions == null || (definitions.getPolicySets().isEmpty() && definitions.getExternalAttachments().isEmpty()) ) { return composite; } // create a DOM for the Domain Composite Infoset Document document = saveAsDOM(composite); // create a cache of evaluated node against each policy set so we don't // have to keep evaluating policy sets that appear in multiple places Map<PolicySet, List<PolicySubject>> appliesToSubjects = new HashMap<PolicySet, List<PolicySubject>>(); // for all implementations, endpoint and endpoint references check that // the policy sets validly apply return checkAppliesTo(document, appliesToSubjects, composite, context); } catch (Exception e) { throw new CompositeBuilderException(e); } }
throw new CompositeBuilderException("Exception while building model " + composite.getName(), e);
throw new CompositeBuilderException("Exception while building model " + composite.getName(), e);