Update of /var/cvs/contributions/CMSContainer_Modules/dataconversion/src/java/com/finalist/cmsc/dataconversion/service In directory james.mmbase.org:/tmp/cvs-serv27312/service
Modified Files: NodeService.java Log Message: CMSC-1166, KNMI migration to the CMS Container,improve reverse See also: http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/dataconversion/src/java/com/finalist/cmsc/dataconversion/service See also: http://www.mmbase.org/jira/browse/CMSC-1166 Index: NodeService.java =================================================================== RCS file: /var/cvs/contributions/CMSContainer_Modules/dataconversion/src/java/com/finalist/cmsc/dataconversion/service/NodeService.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- NodeService.java 28 Nov 2008 08:07:42 -0000 1.6 +++ NodeService.java 10 Dec 2008 07:17:55 -0000 1.7 @@ -64,7 +64,8 @@ while (properties.hasNext()) { Map.Entry<String,Object> entry= properties.next(); if(!entry.getKey().toString().equals("lastmodifieddate")) { - node.setObjectValue(entry.getKey().toString(), entry.getValue()) ; + node.setValueWithoutProcess(entry.getKey().toString(), entry.getValue()); + //node.setObjectValue(entry.getKey().toString(), entry.getValue()) ; } else { modifyDate = entry.getValue(); @@ -95,7 +96,7 @@ Node desNode = cloud.getNode(dnumber.intValue()); type = data.getDestinationRelationType(); Relation relate; - if ("true".equals(data.getReverse())) { + if ("destinationtype".equals(data.getReverse())) { relate = RelationUtil.createRelation(desNode, sourceNode, data.getDestinationRelationType()); }else{ relate = RelationUtil.createRelation(sourceNode, desNode, data.getDestinationRelationType()); @@ -117,7 +118,8 @@ relate.setObjectValue(name, "intro") ; } else { - relate.setObjectValue(entry.getKey().toString(), entry.getValue()) ; + relate.setValueWithoutProcess(entry.getKey().toString(), entry.getValue()); + // relate.setObjectValue(entry.getKey().toString(), entry.getValue()) ; } } relate.commit(); @@ -168,7 +170,7 @@ Node desNode = cloud.getNode(dnumber.intValue()); type = reldata.getDestinationRelationType(); Relation relate; - if ("true".equals(reldata.getReverse())) { + if ("destinationtype".equals(reldata.getReverse())) { relate = RelationUtil.createRelation(desNode, sourceNode, type); } else { relate = RelationUtil.createRelation(sourceNode, desNode, type); _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs