public static SandeshaPolicyBean loadPropertiesFromAxisDescription(AxisDescription desc, SandeshaPolicyBean parentPropertyBean) throws SandeshaException { Policy policy = desc.getPolicyInclude().getEffectivePolicy();
public void configureOperationPolices(AxisOperation op) throws AxisFault { PolicyInclude policyInclude = op.getPolicyInclude(); Policy policy = policyInclude.getEffectivePolicy(); if (policy != null) {
public void configureOperationPolices(AxisOperation op) throws AxisFault { PolicyInclude policyInclude = op.getPolicyInclude(); Policy policy = policyInclude.getEffectivePolicy(); if (policy != null) {
Policy effecPolicy = policyInclude.getEffectivePolicy();
public void engage(CodeGenConfiguration configuration) { Map namespace2ExtMap = new HashMap(); //initialize init(configuration, namespace2ExtMap); Document document = getEmptyDocument(); Element rootElement = document.createElement("module-codegen-policy-extensions"); AxisOperation axisOperation; QName opName; PolicyInclude policyInclude; Policy policy; List axisServices = configuration.getAxisServices(); AxisService axisService; for (Iterator servicesIter = axisServices.iterator(); servicesIter.hasNext();) { axisService = (AxisService)servicesIter.next(); for (Iterator iterator = axisService.getOperations(); iterator.hasNext();) { axisOperation = (AxisOperation)iterator.next(); opName = axisOperation.getName(); policyInclude = axisOperation.getPolicyInclude(); policy = policyInclude.getEffectivePolicy(); if (policy != null) { processPolicies(document, rootElement, policy, opName, namespace2ExtMap); } } } // TODO: think about this how can we support this configuration.putProperty("module-codegen-policy-extensions", rootElement); }
Policy effecPolicy = policyInclude.getEffectivePolicy();
private void calculateEffectivePolicy() { Policy result; if (getParent() != null) { Policy parentPolicy = getParent().getEffectivePolicy(); if (parentPolicy == null) { result = getPolicy(); } else { if (getPolicy() != null) { result = (Policy) parentPolicy.merge(getPolicy()); } else { result = parentPolicy; } } } else { result = getPolicy(); } setEffectivePolicy(result); }
private void calculateEffectivePolicy() { Policy result; if (getParent() != null) { Policy parentPolicy = getParent().getEffectivePolicy(); if (parentPolicy == null) { result = getPolicy(); } else { if (getPolicy() != null) { result = (Policy) parentPolicy.merge(getPolicy()); } else { result = parentPolicy; } } } else { result = getPolicy(); } setEffectivePolicy(result); }