/**
* @author a.kohlbecker
* @since 24.03.2011
- *
*/
@Service
@Transactional(readOnly = false)
-public class PolytomousKeyNodeServiceImpl extends VersionableServiceBase<PolytomousKeyNode, IPolytomousKeyNodeDao> implements IPolytomousKeyNodeService {
-
+public class PolytomousKeyNodeServiceImpl
+ extends VersionableServiceBase<PolytomousKeyNode, IPolytomousKeyNodeDao>
+ implements IPolytomousKeyNodeService {
@Override
@Autowired
DeleteResult result = new DeleteResult();
PolytomousKeyNode node = dao.findByUuid(nodeUUID);
node = HibernateProxyHelper.deproxy(node);
- if(node == null) {
- // result.addException(new Exception("The polytomouskey node was already deleted."));;
+ if (node == null) {
+ // result.addException(new Exception("The polytomouskey node was already deleted."));
return result;
}
List<PolytomousKeyNode> children = new ArrayList<>();
}
if(!deleteChildren){
-
for (PolytomousKeyNode child: children){
if (!child.equals(node)){
parent.addChild(child);
dao.saveOrUpdate(child);
result.addUpdatedObject(child);
}
-
}
-
dao.saveOrUpdate(node);
result.addUpdatedObject(node);
}
}
return result;
-
}
-
-}
+}
\ No newline at end of file