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);
}
}
Aggregations