HierarchyResolver getHierarchyResolver() throws RepositoryException { return ((HippoWorkspace) upstream).getHierarchyResolver(); }
protected Node traverse(Session session, String path) throws RepositoryException { if (path.startsWith("/")) { path = path.substring(1); } return ((HippoWorkspace) session.getWorkspace()).getHierarchyResolver().getNode(session.getRootNode(), path); }
newValues = new String[] { arguments.get(propPath) }; } else { final HierarchyResolver hr = ((HippoWorkspace) rootSession.getWorkspace()).getHierarchyResolver(); Property parentProperty = hr.getProperty(target, propPath); if (parentProperty == null) {
public RemoteHierarchyResolver getHierarchyResolver() throws RepositoryException, RemoteException { try { HierarchyResolver hierarchyResolver = workspace.getHierarchyResolver(); return ((RemoteServicingAdapterFactory)getFactory()).getRemoteHierarchyResolver(hierarchyResolver, workspace.getSession()); } catch (RepositoryException ex) { throw getRepositoryException(ex); } }
@Override public IRequestHandler mapRequest(final Request request, final MountParameters mountParams) { String path = Strings.join("/", request.getUrl().getSegments()); try { javax.jcr.Session subSession = UserSession.get().getJcrSession(); Node node = ((HippoWorkspace) subSession.getWorkspace()).getHierarchyResolver().getNode( subSession.getRootNode(), path); // YUCK: no exception! if (node == null) { log.info("no binary found at " + path); } else { if (node.isNodeType(HippoNodeType.NT_DOCUMENT)) { node = (Node) JcrHelper.getPrimaryItem(node); } return new JcrResourceRequestHandler(node); } } catch (PathNotFoundException e) { log.info("binary not found " + e.getMessage()); } catch (javax.jcr.LoginException ex) { log.warn(ex.getMessage()); } catch (RepositoryException ex) { log.error(ex.getMessage()); } return null; }
Node mirrorNode = ((HippoWorkspace)((HippoSession)node.getSession()).getWorkspace()).getHierarchyResolver().getNode(node, path); if (mirrorNode != null) { return reqContext.getHstLinkCreator().create(mirrorNode, reqContext.getResolvedSiteMapItem());