Package org.apache.jackrabbit.mk.store

Examples of org.apache.jackrabbit.mk.store.NotFoundException


            if (srcParentPath.equals(destParentPath)) {
                if (srcParent.getChildNodeEntry(destNodeName) != null) {
                    throw new Exception("node already exists at move destination path: " + destPath);
                }
                if (srcParent.rename(srcNodeName, destNodeName) == null) {
                    throw new NotFoundException(srcPath);
                }
            } else {
                ChildNode srcCNE = srcParent.remove(srcNodeName);
                if (srcCNE == null) {
                    throw new NotFoundException(srcPath);
                }

                MutableNode destParent = getOrCreateStagedNode(destParentPath);
                if (destParent.getChildNodeEntry(destNodeName) != null) {
                    throw new Exception("node already exists at move destination path: " + destPath);
View Full Code Here


            String destNodeName = PathUtils.getName(destPath);

            MutableNode srcParent = getOrCreateStagedNode(srcParentPath);
            ChildNode srcCNE = srcParent.getChildNodeEntry(srcNodeName);
            if (srcCNE == null) {
                throw new NotFoundException(srcPath);
            }

            MutableNode destParent = getOrCreateStagedNode(destParentPath);
            destParent.add(new ChildNode(destNodeName, srcCNE.getId()));
View Full Code Here

        if (db.get(null, key, data, LockMode.DEFAULT) == OperationStatus.SUCCESS) {
            ByteArrayInputStream in = new ByteArrayInputStream(data.getData());
            node.deserialize(new BinaryBinding(in));
        } else {
            throw new NotFoundException(id.toString());
        }
    }
View Full Code Here

        if (db.get(null, key, data, LockMode.DEFAULT) == OperationStatus.SUCCESS) {
            ByteArrayInputStream in = new ByteArrayInputStream(data.getData());
            return StoredCommit.deserialize(id, new BinaryBinding(in));
        } else {
            throw new NotFoundException(id.toString());
        }
    }
View Full Code Here

        if (db.get(null, key, data, LockMode.DEFAULT) == OperationStatus.SUCCESS) {
            ByteArrayInputStream in = new ByteArrayInputStream(data.getData());
            return ChildNodeEntriesMap.deserialize(new BinaryBinding(in));
        } else {
            throw new NotFoundException(id.toString());
        }
    }
View Full Code Here

                node.deserialize(new BinaryBinding(in));
            } finally {
                in.close();
            }
        } else {
            throw new NotFoundException(id.toString());
        }
    }
View Full Code Here

                return StoredCommit.deserialize(id, new BinaryBinding(in));
            } finally {
                in.close();
            }
        } else {
            throw new NotFoundException(id.toString());
        }
    }
View Full Code Here

                return ChildNodeEntriesMap.deserialize(new BinaryBinding(in));
            } finally {
                in.close();
            }
        } else {
            throw new NotFoundException(id.toString());
        }
    }
View Full Code Here

        byte[] bytes = objects.get(id);
        if (bytes != null) {
            node.deserialize(new BinaryBinding(new ByteArrayInputStream(bytes)));
            return;
        }
        throw new NotFoundException(id.toString());
    }
View Full Code Here

    public StoredCommit readCommit(Id id) throws NotFoundException, Exception {
        byte[] bytes = objects.get(id);
        if (bytes != null) {
            return StoredCommit.deserialize(id, new BinaryBinding(new ByteArrayInputStream(bytes)));
        }
        throw new NotFoundException(id.toString());
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.mk.store.NotFoundException

Copyright © 2018 www.massapicom. 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.