Package org.apache.jackrabbit.jcr2spi.hierarchy

Examples of org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEntry.denotesNode()


                info = cached.info;
            }

            // Build the hierarchy entry for the item info
            HierarchyEntry entry = createHierarchyEntries(info, anyParent);
            if (entry == null || !entry.denotesNode()) {
                throw new ItemNotFoundException(
                        "HierarchyEntry does not belong to any existing ItemInfo. No ItemState was created.");
            } else {
                // Now we can check wheter the item info from the cache is up to date
                long generation = entry.getGeneration();
View Full Code Here


            }

            // Build the hierarchy entry for the item info
            HierarchyEntry entry = createHierarchyEntries(info, anyParent);

            if (entry == null || entry.denotesNode()) {
                throw new ItemNotFoundException(
                        "HierarchyEntry does not belong to any existing ItemInfo. No ItemState was created.");
            } else {
                if (isOutdated(cached, entry)) {
                    // if not, retreive the item info from the service and put the whole batch into the cache
View Full Code Here

                info = cached.info;
            }

            // Build the hierarchy entry for the item info
            HierarchyEntry entry = createHierarchyEntries(info, anyParent);
            if (entry == null || !entry.denotesNode()) {
                throw new ItemNotFoundException(
                        "HierarchyEntry does not belong to any existing ItemInfo. No ItemState was created.");
            } else {
                // Now we can check whether the item info from the cache is up to date
                long generation = entry.getGeneration();
View Full Code Here

            }

            // Build the hierarchy entry for the item info
            HierarchyEntry entry = createHierarchyEntries(info, anyParent);

            if (entry == null || entry.denotesNode()) {
                throw new ItemNotFoundException(
                        "HierarchyEntry does not belong to any existing ItemInfo. No ItemState was created.");
            } else {
                if (isOutdated(cached, entry)) {
                    // if not, retreive the item info from the service and put the whole batch into the cache
View Full Code Here

                info = cached.info;
            }

            // Build the hierarchy entry for the item info
            HierarchyEntry entry = createHierarchyEntries(info, anyParent);
            if (entry == null || !entry.denotesNode()) {
                throw new ItemNotFoundException(
                        "HierarchyEntry does not belong to any existing ItemInfo. No ItemState was created.");
            } else {
                // Now we can check whether the item info from the cache is up to date
                long generation = entry.getGeneration();
View Full Code Here

                info = cached.info;
            }

            // Build the hierarchy entry for the item info
            HierarchyEntry entry = createHierarchyEntries(info, anyParent);
            if (entry == null || entry.denotesNode()) {
                throw new ItemNotFoundException(
                        "HierarchyEntry does not belong to any existing ItemInfo. No ItemState was created.");
            } else {
                long generation = entry.getGeneration();
                if (isOutdated(cached, entry)) {
View Full Code Here

                }
            } else {
                // rp length > 1
                Path p = getQPath(rp);
                HierarchyEntry entry = session.getHierarchyManager().getHierarchyEntry(p.getCanonicalPath());
                if (entry.denotesNode()) {
                    targetEntry = (NodeEntry) entry;
                } // else:  not a node
            }
        } catch (PathNotFoundException e) {
            // item does not exist -> ignore and return null
View Full Code Here

            } else {
                // build and resolve absolute path
                Path p = getQPath(rp).getCanonicalPath();
                try {
                    HierarchyEntry entry = session.getHierarchyManager().getHierarchyEntry(p);
                    if (!entry.denotesNode()) {
                        targetEntry = (PropertyEntry) entry;
                    } // else: not a property
                } catch (PathNotFoundException e) {
                    // ignore -> return null;
                }
View Full Code Here

        NodeId lockNodeId = lockInfo.getNodeId();
        if (lockNodeId.equals(nId)) {
            lockHoldingState = nodeState;
        } else {
            HierarchyEntry lockedEntry = wspManager.getHierarchyManager().getHierarchyEntry(lockNodeId);
            if (lockedEntry.denotesNode()) {
                try {
                    lockHoldingState = ((NodeEntry) lockedEntry).getNodeState();
                } catch (RepositoryException e) {
                    log.warn("Cannot build LockState");
                    throw new RepositoryException("Cannot build LockState", e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.