"fr.norsys.mapper.jndi.JNDIXMLConfigurator");
Mapper mapper = null;
for (Iterator it = application.getResources().iterator(); it
.hasNext();) {
Resource r = (Resource) (it.next());
String name = r.getName();
StringBuffer root = new StringBuffer();
Map inputMap = new Map("input-" + name);
Map outputMap = new Map("output-" + name);
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());
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();
if(a.getRule() != null && !"".equals(a.getRule())) {
mapper.getRegexps().add(new RegExp(a.getName(),a.getRule(),a.getIgnoreNull()));
}