* @throws SiteException if the moving failed.
*/
public synchronized void moveUp(String documentid) throws SiteException {
Node node = this.getNodeInternal(documentid);
if (node == null) {
throw new SiteException("Node to move: " + documentid + " not found");
}
Node parentNode = node.getParentNode();
if (parentNode == null) {
throw new SiteException("Parentid of node with documentid: " + documentid
+ " not found");
}
Node previousNode;
try {
previousNode = XPathAPI.selectSingleNode(node,
"(preceding-sibling::*[local-name() = 'node'])[last()]");
} catch (TransformerException e) {
throw new SiteException(e);
}
if (previousNode == null) {
getLogger().warn("Couldn't found a preceding sibling");
return;