Package fr.norsys.mapper.console.mapping

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


        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

Related Classes of fr.norsys.mapper.console.mapping.Modify

Copyright © 2018 www.massapicom. 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.