[MAGNOLIA-5777] NodeUtil should provide a method to copy a node Created: 20/May/14  Updated: 28/May/14  Resolved: 23/May/14

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 4.5.19
Fix Version/s: 4.5.20

Type: Improvement Priority: Neutral
Reporter: Nils Breunese Assignee: Karel Nedoma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates MAGNOLIA-5463 Change implementation of copyInSessio... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

The deprecated ContentUtil class provides a copyInSession(src, dest) method, but its replacement NodeUtil does not offer a method to copy a node.



 Comments   
Comment by Jan Haderka [ 20/May/14 ]

NodeUtil provides info.magnolia.jcr.util.NodeUtil.copyInSession(Node, String) is that not enough?

Comment by Nils Breunese [ 20/May/14 ]

It doesn't where I'm looking: http://nexus.magnolia-cms.com/content/sites/magnolia.public.sites/ref/4.5.19/magnolia-core/apidocs/info/magnolia/jcr/util/NodeUtil.html

Comment by Jan Haderka [ 20/May/14 ]

Oh, I see. It's fixed on 5.x branch with MAGNOLIA-5463

Comment by Nils Breunese [ 20/May/14 ]

Maybe MAGNOLIA-5463 can be backported to 4.5.20?

Comment by Jan Haderka [ 20/May/14 ]

Yeah, maybe it can. Let's see.

Comment by Roman Kovařík [ 23/May/14 ]
  1. /Users/romankovarik/projects/master/magnolia_main/magnolia-core/src/main/java/info/magnolia/jcr/util/NodeUtil.java:36:8: Unused import - info.magnolia.cms.core.Content.
  2. Why was info.magnolia.cms.util.ContentUtilRepoTest.testSessionBasedCopy() removed?
Comment by Roman Kovařík [ 23/May/14 ]

Please squash to single commit when integrating.

Generated at Mon Feb 12 04:08:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.