Examples of MalformedPathException


Examples of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException

     */
    public Path getPath() throws MalformedPathException {
        if (path != null) {
            return path;
        } else {
            throw new MalformedPathException("empty path");
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException

        public Path getPath(String identifier) throws MalformedPathException {
            try {
                NodeId id = getIdFactory().fromJcrIdentifier(identifier);
                return getHierarchyManager().getNodeEntry(id).getPath();
            } catch (RepositoryException e) {
                throw new MalformedPathException("Invalid identifier '" + identifier + "'.");
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException

         */
        public void checkFormat(String identifier) throws MalformedPathException {
            try {
                NodeId id = getIdFactory().fromJcrIdentifier(identifier);
            } catch (Exception e) {
                throw new MalformedPathException("Invalid identifier '" + identifier + "'.");
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException

     */
    public Path getPath(String identifier) throws MalformedPathException {
        try {
            return context.getHierarchyManager().getPath(NodeId.valueOf(identifier));
        } catch (RepositoryException e) {
            throw new MalformedPathException("Identifier '" + identifier + "' cannot be resolved.");
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException

     */
    public void checkFormat(String identifier) throws MalformedPathException {
        try {
            NodeId.valueOf(identifier);
        } catch (IllegalArgumentException e) {
            throw new MalformedPathException("Invalid identifier: " + identifier);
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException

            // an identifier segment has been specified (JCR-3014)
            try {
                NodeId id = NodeId.valueOf(absPath.substring(1, absPath.length() - 1));
                return getItemManager().itemExists(id);
            } catch (IllegalArgumentException e) {
                throw new MalformedPathException(absPath);
            }
        }
        return perform(SessionItemOperation.itemExists(absPath));
    }
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException

            // an identifier segment has been specified (JCR-3014)
            try {
                NodeId id = NodeId.valueOf(absPath.substring(1, absPath.length() - 1));
                return getItemManager().itemExists(id);
            } catch (IllegalArgumentException e) {
                throw new MalformedPathException(absPath);
            }
        }
        return perform(SessionItemOperation.nodeExists(absPath));
    }
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException

                    Path p1 = buildPath(identifier.substring(0, pos));
                    Path p2 = resolvePath(identifier.substring(pos));
                    return getPathFactory().create(p1, p2, true);
                }
            } catch (RepositoryException e) {
                throw new MalformedPathException(identifier);
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException

     */
    public Path getPath(String identifier) throws MalformedPathException {
        try {
            return getHierarchyManager().getPath(NodeId.valueOf(identifier));
        } catch (RepositoryException e) {
            throw new MalformedPathException("Identifier '" + identifier + "' cannot be resolved.");
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException

     */
    public void checkFormat(String identifier) throws MalformedPathException {
        try {
            NodeId.valueOf(identifier);
        } catch (IllegalArgumentException e) {
            throw new MalformedPathException("Invalid identifier: " + identifier);
        }
    }
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.