Package fr.norsys.mapper.console.mapping

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


  }

  private void fillSearch(Application application, Vector searchList,
      Vector maps, Vector regexps) {
    for (Iterator it = searchList.iterator(); it.hasNext();) {
      Search s = (Search) it.next();
      if(LOG.isDebugEnabled()) {
        LOG.debug("Search mapper mapped: " + s.getName());
      }
      regexps.addAll(s.getRegexps());
      Resource r = new Resource(s.getName(), s.getRoot(), null,
          ConsoleCst.SEARCH_MAPPER_TYPE, s.getFilter(), s
              .getSearchScope());
      Vector inputAttr = new Vector();
      Vector outputAttr = new Vector();
      for (Iterator it2 = maps.iterator(); it2.hasNext();) {
        Map m = (Map) it2.next();
        if (s.getInput().equals(m.getName())) {
          inputAttr = m.getAttributes();
        } else if (s.getOutput().equals(m.getName())) {
          outputAttr = m.getAttributes();
        }
      }
      fillInAttributes(r, inputAttr, regexps);
      fillOutAttributes(r, outputAttr, regexps);
View Full Code Here


      if(r.getIdentifiant()!=null && r.getIdentifiant().length()>0){
        root.append(r.getIdentifiant()).append(",");
      }
      root.append(r.getBaseDn());
      if (ConsoleCst.SEARCH_MAPPER_TYPE.equals(r.getType())) {
        mapper = new Search(name, "input-" + name, "output-" + name, r
            .getFilter(), root.toString(), r.getScope(),
            "true", "true", r.getCountLimit());
        mapperConfig.getJndiMapper().getSource().getSearchList().add(mapper);
      } else if (ConsoleCst.ADD_MAPPER_TYPE.equals(r.getType())) {
        mapper = new Add(name, "input-" + name, "output-" + name, root.toString());
View Full Code Here

TOP

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

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.