Examples of HierarchyManager


Examples of org.apache.jackrabbit.core.HierarchyManager

     * @throws ItemStateException  if an error occurs while reading item
     *                             states.
     */
    protected Path getRelativePath(NodeState nodeState, PropertyState propState)
            throws RepositoryException, ItemStateException {
        HierarchyManager hmgr = getContext().getHierarchyManager();
        Path nodePath = hmgr.getPath(nodeState.getId());
        Path propPath = hmgr.getPath(propState.getId());
        Path p = nodePath.computeRelativePath(propPath);
        // make sure it does not contain indexes
        boolean clean = true;
        Path.Element[] elements = p.getElements();
        for (int i = 0; i < elements.length; i++) {
View Full Code Here

Examples of org.apache.jackrabbit.core.HierarchyManager

     * Private constructor.
     */
    private ConsistencyCheck(MultiIndex index, SearchIndex handler, Set<NodeId> excludedIds) {
        this.index = index;
        this.handler = handler;
        final HierarchyManager hierarchyManager = handler.getContext().getHierarchyManager();
        excludedPaths = new HashSet<Path>(excludedIds.size());
        for (NodeId excludedId : excludedIds) {
            try {
                final Path path = hierarchyManager.getPath(excludedId);
                excludedPaths.add(path);
            } catch (ItemNotFoundException e) {
                log.warn("Excluded node does not exist");
            } catch (RepositoryException e) {
                log.error("Failed to get excluded path", e);
View Full Code Here

Examples of org.apache.jackrabbit.core.HierarchyManager

        }
    }

    private boolean isExcluded(NodeId id) {
        try {
            final HierarchyManager hierarchyManager = handler.getContext().getHierarchyManager();
            final Path path = hierarchyManager.getPath(id);
            for (Path excludedPath : excludedPaths) {
                if (excludedPath.isEquivalentTo(path) || excludedPath.isAncestorOf(path)) {
                    return true;
                }
            }
View Full Code Here

Examples of org.apache.jackrabbit.core.HierarchyManager

     * @throws ItemStateException  if an error occurs while reading item
     *                             states.
     */
    protected Path getRelativePath(NodeState nodeState, PropertyState propState)
            throws RepositoryException, ItemStateException {
        HierarchyManager hmgr = getContext().getHierarchyManager();
        Path nodePath = hmgr.getPath(nodeState.getId());
        Path propPath = hmgr.getPath(propState.getId());
        Path p = nodePath.computeRelativePath(propPath);
        // make sure it does not contain indexes
        boolean clean = true;
        Path.Element[] elements = p.getElements();
        for (int i = 0; i < elements.length; i++) {
View Full Code Here

Examples of org.apache.jackrabbit.core.HierarchyManager

     * @throws ItemStateException  if an error occurs while reading item
     *                             states.
     */
    protected Path getRelativePath(NodeState nodeState, PropertyState propState)
            throws RepositoryException, ItemStateException {
        HierarchyManager hmgr = getContext().getHierarchyManager();
        Path nodePath = hmgr.getPath(nodeState.getId());
        Path propPath = hmgr.getPath(propState.getId());
        Path p = nodePath.computeRelativePath(propPath);
        // make sure it does not contain indexes
        boolean clean = true;
        Path.Element[] elements = p.getElements();
        for (int i = 0; i < elements.length; i++) {
View Full Code Here

Examples of org.apache.jackrabbit.core.HierarchyManager

     * Private constructor.
     */
    private ConsistencyCheck(MultiIndex index, SearchIndex handler, Set<NodeId> excludedIds) {
        this.index = index;
        this.handler = handler;
        final HierarchyManager hierarchyManager = handler.getContext().getHierarchyManager();
        excludedPaths = new HashSet<Path>(excludedIds.size());
        for (NodeId excludedId : excludedIds) {
            try {
                final Path path = hierarchyManager.getPath(excludedId);
                excludedPaths.add(path);
            } catch (ItemNotFoundException e) {
                log.warn("Excluded node does not exist");
            } catch (RepositoryException e) {
                log.error("Failed to get excluded path", e);
View Full Code Here

Examples of org.apache.jackrabbit.core.HierarchyManager

        }
    }

    private boolean isExcluded(NodeId id) {
        try {
            final HierarchyManager hierarchyManager = handler.getContext().getHierarchyManager();
            final Path path = hierarchyManager.getPath(id);
            for (Path excludedPath : excludedPaths) {
                if (excludedPath.isEquivalentTo(path) || excludedPath.isAncestorOf(path)) {
                    return true;
                }
            }
View Full Code Here

Examples of org.apache.jackrabbit.core.HierarchyManager

     * @throws ItemStateException  if an error occurs while reading item
     *                             states.
     */
    protected Path getRelativePath(NodeState nodeState, PropertyState propState)
            throws RepositoryException, ItemStateException {
        HierarchyManager hmgr = getContext().getHierarchyManager();
        Path nodePath = hmgr.getPath(nodeState.getId());
        Path propPath = hmgr.getPath(propState.getId());
        Path p = nodePath.computeRelativePath(propPath);
        // make sure it does not contain indexes
        boolean clean = true;
        Path.Element[] elements = p.getElements();
        for (int i = 0; i < elements.length; i++) {
View Full Code Here

Examples of org.apache.jackrabbit.core.HierarchyManager

                                    Analyzer analyzer,
                                    PropertyTypeRegistry propReg,
                                    SynonymProvider synonymProvider,
                                    IndexFormatVersion indexFormatVersion)
            throws RepositoryException {
        HierarchyManager hmgr = new HierarchyManagerImpl(
                RepositoryImpl.ROOT_NODE_ID, sharedItemMgr);
        LuceneQueryBuilder builder = new LuceneQueryBuilder(
                root, session, sharedItemMgr, hmgr, nsMappings,
                analyzer, propReg, synonymProvider, indexFormatVersion);
View Full Code Here

Examples of org.apache.jackrabbit.core.HierarchyManager

     * @throws ItemStateException  if an error occurs while reading item
     *                             states.
     */
    protected Path getRelativePath(NodeState nodeState, PropertyState propState)
            throws RepositoryException, ItemStateException {
        HierarchyManager hmgr = getContext().getHierarchyManager();
        Path nodePath = hmgr.getPath(nodeState.getId());
        Path propPath = hmgr.getPath(propState.getId());
        Path p = nodePath.computeRelativePath(propPath);
        // make sure it does not contain indexes
        boolean clean = true;
        Path.Element[] elements = p.getElements();
        for (int i = 0; i < elements.length; i++) {
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.