/** * {@inheritDoc} * * @see java.lang.Object#toString() */ @Override public String toString() { if (desiredName != null) { return "clone " + printable(from()) + " (in '" + fromWorkspace + "' workspace) into " + printable(into()) + " with name '" + desiredName + "' (in '" + intoWorkspace + "' workspace)"; } return "clone " + printable(from()) + " (in '" + fromWorkspace + "' workspace) into " + printable(into()) + " (in '" + intoWorkspace + "' workspace) as child '" + desiredSegment() + "'"; }
newParent, request.desiredName(), request.desiredSegment(), request.removeExisting(), removedExistingNodes);
newParent, request.desiredName(), request.desiredSegment(), request.removeExisting(), removedExistingNodes);
request.desiredName(), request.desiredSegment(), request.removeExisting());
@Override public void process( CloneBranchRequest request ) { // Create a child under the new parent ... if (request.into().hasPath()) { Name childName = request.desiredName(); if (childName == null) childName = request.desiredSegment().getName(); Path childPath = context.getValueFactories().getPathFactory().create(request.into().getPath(), childName); Location newChild = actualLocationOf(Location.create(childPath)); // Just update the actual location request.setActualLocations(actualLocationOf(request.from()), newChild); } else { // Just update the actual location request.setActualLocations(actualLocationOf(request.from()), actualLocationOf(request.into())); } }