Search in sources :

Example 1 with RemoteNode

use of org.apache.jackrabbit.rmi.remote.RemoteNode in project jackrabbit by apache.

the class ServerVersionManager method setActivity.

@Override
public RemoteNode setActivity(String activityNodeIdentifier) throws RepositoryException, RemoteException {
    try {
        Node newActivityNode;
        if (activityNodeIdentifier == null) {
            newActivityNode = null;
        } else {
            newActivityNode = session.getNodeByIdentifier(activityNodeIdentifier);
        }
        Node oldActivityNode = manager.setActivity(newActivityNode);
        if (oldActivityNode == null) {
            return null;
        } else {
            return getFactory().getRemoteNode(oldActivityNode);
        }
    } catch (RepositoryException e) {
        throw getRepositoryException(e);
    }
}
Also used : Node(javax.jcr.Node) RemoteNode(org.apache.jackrabbit.rmi.remote.RemoteNode) RepositoryException(javax.jcr.RepositoryException)

Aggregations

Node (javax.jcr.Node)1 RepositoryException (javax.jcr.RepositoryException)1 RemoteNode (org.apache.jackrabbit.rmi.remote.RemoteNode)1