Hello Arthur,
what about something like this?:
[code]
public abstract class MoveChildrenTask extends AllChildrenNodesOperation {
private String destination;
public MoveChildrenTask(String name, String description, String
repositoryName, String parentNodePath, String destination) {
super(name, description, repositoryName, parentNodePath);
this.destination = destination;
}
protected void operateOnChildNode(Content node, InstallContext ctx) throws
RepositoryException {
ContentUtil.moveInSession(node, destination + "/" + node.getName());
}
}
[/code]
Hope that helps.
Roman
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=34d20ce3-8f78-4bcd-b37d-7f36a0f1ec61
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------