Examples of merge()


Examples of org.apache.syncope.core.propagation.PropagationByResource.merge()

                    userMod.getVirtualAttributesToBeRemoved(), userMod.getVirtualAttributesToBeUpdated());
        } else {
            // 2b. generate the propagation task list in two phases: first the ones containing password,
            // the the rest (with no password)
            final PropagationByResource origPropByRes = new PropagationByResource();
            origPropByRes.merge(updated.getPropByRes());

            Set<String> pwdResourceNames = userMod.getPwdPropRequest().getResources();
            SyncopeUser user = binder.getUserFromId(updated.getResult().getKey());
            pwdResourceNames.retainAll(user.getResourceNames());
            final PropagationByResource pwdPropByRes = new PropagationByResource();
View Full Code Here

Examples of org.apache.tajo.engine.function.builtin.AvgLong.merge()

      avg.eval(ctx2, tuples2[i-1]);
    }
    assertTrue((double)55 / 10 == avg.terminate(ctx2).asFloat8());


    avg.merge(ctx, new VTuple(new Datum[] {avg.getPartialResult(ctx2)}));
    assertTrue((double)(15 + 55) / (5 + 10) == avg.terminate(ctx).asFloat8());
  }
}
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.WebXml.merge()

        Map<String, WebXml> fragments = scanForFragments(webXmlParser);
        Set<WebXml> orderedFragments = WebXml.orderWebFragments(webXml, fragments, this);

        // JspC is not affected by annotations so skip that processing, proceed to merge
        webXml.merge(orderedFragments);
        return webXml;
    }

    private Map<String, WebXml> scanForFragments(WebXmlParser webXmlParser) throws JasperException {
        StandardJarScanner scanner = new StandardJarScanner();
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Manifest.merge()

        if (this.manifest == null) {
            this.manifest = inc.manifest;
        } else if (inc.manifest != null) {
            try {
                final Manifest merged = new Manifest();
                merged.merge(inc.manifest);
                merged.merge(this.manifest);
                this.manifest = merged;
            } catch (ManifestException ex) {
                throw new PluginException(ex);
            }
View Full Code Here

Examples of org.apache.tuscany.das.rdb.merge.impl.GraphMerger.merge()

    DataObject graph2 = select.executeQuery();
    assertEquals(5, graph2.getList("CUSTOMER").size());

    GraphMerger merger = new GraphMerger();
    merger.addPrimaryKey("CUSTOMER.ID");
    DataObject mergedGraph = merger.merge(graph1, graph2);

    assertEquals(5, mergedGraph.getList("CUSTOMER").size());
  }

  public void testSingleTableMergeThreeGraphs() throws Exception {
View Full Code Here

Examples of org.apache.velocity.Template.merge()

    context.put("ctxPath", this.request.getContextPath());
    context.put("ctx", result);
    context.put("xctx",request.getSession().getAttribute(HtmlResponseWriter.OPTION_KEY));
    //输出到用户端
    StringWriter writer = new StringWriter();
    template.merge(context, writer);
    String content = writer.toString();
    out.write(content.getBytes());
  }

  /* (non-Javadoc)
 
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView.merge()

        expect(request.getRequest()).andReturn(httpRequest);
        expect(request.getResponse()).andReturn(response);
        expect(view.createContext(httpRequest, response)).andReturn(context);
        expect(view.getTemplate("/test.vm")).andReturn(template);
        expect(request.getWriter()).andReturn(writer);
        view.merge(template, context, writer);

        replay(view, request, httpRequest, response, context, template, writer);
        Renderer renderer = new VelocityRenderer(view);
        renderer.render("/test.vm", request);
        verify(view, request, httpRequest, response, context, template, writer);
View Full Code Here

Examples of org.apache.ws.policy.Policy.merge()

        result = getPolicy();
       
      } else {
       
        if (getPolicy() != null) {
          result = (Policy) parentPolicy.merge(getPolicy(), reg);
         
        } else {
          result = parentPolicy;
        }
      }
View Full Code Here

Examples of org.apache.xmlgraphics.xmp.merge.PropertyMerger.merge()

        while (iter.hasNext()) {
            XMPProperty prop = (XMPProperty)iter.next();
            XMPSchema schema = registry.getSchema(prop.getNamespace());
            MergeRuleSet rules = schema.getDefaultMergeRuleSet();
            PropertyMerger merger = rules.getPropertyMergerFor(prop);
            merger.merge(prop, target);
        }
    }

    /** {@inheritDoc} */
    public void toSAX(ContentHandler handler) throws SAXException {
View Full Code Here

Examples of org.beangle.ems.security.Authority.merge()

    for (final Group group : groups) {
      List<Authority> groupAuths = getAuthorities(group);
      for (final Authority groupAuth : groupAuths) {
        if (authorities.containsKey(groupAuth.getResource())) {
          Authority existed = authorities.get(groupAuth.getResource());
          existed.merge(groupAuth);
        } else {
          authorities.put(groupAuth.getResource(), groupAuth);
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.