Examples of Modify


Examples of eu.planets_project.services.modify.Modify

            .byValue(new File("build.xml"))).build();
    private static final URI FORMAT = FormatRegistryFactory.getFormatRegistry().createExtensionUri("xml");

    @Test
    public void createService() throws MalformedURLException, ClassNotFoundException {
        Modify modify = ServiceUtils.createService(Modify.QNAME, Modify.class, new URL(ENDPOINT));
        modify.modify(DIGITAL_OBJECT, FORMAT, null);
    }
View Full Code Here

Examples of eu.planets_project.services.modify.Modify

    @Test
    public void createServiceFromDescription() throws MalformedURLException {
        ServiceDescription.Builder builder = new ServiceDescription.Builder(NAME, INTERFACE_NAME);
        builder.endpoint(new URL(ENDPOINT));
        ServiceDescription shotgun = builder.build();
        Modify modify = ServiceUtils.createService(shotgun);
        modify.modify(DIGITAL_OBJECT, FORMAT, null);
    }
View Full Code Here

Examples of fr.norsys.mapper.console.mapping.Modify

  }

  private void fillModify(Application application, Vector modifyList,
      Vector maps, Vector regexps) {
    for (Iterator it = modifyList.iterator(); it.hasNext();) {
      Modify m1 = (Modify) it.next();
      if(LOG.isDebugEnabled()) {
        LOG.debug("Modify mapper mapped: " + m1.getName());
      }
      regexps.addAll(m1.getRegexps());
      Resource r = new Resource(m1.getName(), getBaseDn(m1.getRoot()), getIdentifiant(m1.getRoot()),
          ConsoleCst.MODIFY_MAPPER_TYPE, null, null);
      Vector inputAttr = new Vector();
      Vector outputAttr = new Vector();
      for (Iterator it2 = maps.iterator(); it2.hasNext();) {
        Map m = (Map) it2.next();
        if (m1.getInput().equals(m.getName())) {
          inputAttr = m.getAttributes();
        } else if (m1.getOutput().equals(m.getName())) {
          outputAttr = m.getAttributes();
        }
      }
      fillInAttributes(r, inputAttr, regexps);
      fillOutAttributes(r, outputAttr, regexps);
View Full Code Here

Examples of fr.norsys.mapper.console.mapping.Modify

        mapperConfig.getJndiMapper().getSource().getAddList().add(mapper);
      } else if (ConsoleCst.DELETE_MAPPER_TYPE.equals(r.getType())) {
        mapper = new Delete(name, "input-" + name, "output-" + name, root.toString());
        mapperConfig.getJndiMapper().getSource().getDeleteList().add(mapper);
      } else if (ConsoleCst.MODIFY_MAPPER_TYPE.equals(r.getType())) {
        mapper = new Modify(name, "input-" + name, "output-" + name, root.toString());
        mapperConfig.getJndiMapper().getSource().getModifyList().add(mapper);
      }
      for (Iterator it2 = r.getAttributes().iterator(); it2
          .hasNext();) {
        Attribute a = (Attribute)it2.next();
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.