Package org.apache.jackrabbit.core

Examples of org.apache.jackrabbit.core.ItemImpl


        boolean existingNode = false;
        NodeImpl node;

        ItemManager itemMgr = session.getItemManager();
        try {
            ItemImpl item = itemMgr.getItem(absPath);
            if (item.isNode()) {
                node = (NodeImpl) item;
                existingNode = true;
            } else {
                node = (NodeImpl) item.getParent();
            }
        } catch (RepositoryException e) {
            // path points to a non-persisted item.
            // -> find the nearest persisted node starting from the root.
            Path.Element[] elems = absPath.getElements();
View Full Code Here


        boolean existingNode = false;
        NodeImpl node;

        ItemManager itemMgr = session.getItemManager();
        try {
            ItemImpl item = itemMgr.getItem(absPath);
            if (item.isNode()) {
                node = (NodeImpl) item;
                existingNode = true;
            } else {
                node = (NodeImpl) item.getParent();
            }
        } catch (RepositoryException e) {
            // path points to a non-persisted item.
            // -> find the nearest persisted node starting from the root.
            Path.Element[] elems = absPath.getElements();
View Full Code Here

        boolean existingNode = false;
        NodeImpl node;

        ItemManager itemMgr = session.getItemManager();
        try {
            ItemImpl item = itemMgr.getItem(absPath);
            if (item.isNode()) {
                node = (NodeImpl) item;
                existingNode = true;
            } else {
                node = (NodeImpl) item.getParent();
            }
        } catch (RepositoryException e) {
            // path points to a non-persisted item.
            // -> find the nearest persisted node starting from the root.
            Path.Element[] elems = absPath.getElements();
View Full Code Here

        }
        if (LOG.isDebugEnabled()) {
            String path;
            try {
                NodeId transientRoot = context.getItemStateManager().getIdOfRootTransientNodeState();
                ItemImpl item = context.getItemManager().getItem(transientRoot);
                path = item.getPath();
            } catch (Exception e) {
                LOG.warn("Could not get the path", e);
                path = "?";
            }
            if (LOG_WITH_STACKTRACE) {
View Full Code Here

        boolean existingNode = false;
        NodeImpl node;

        ItemManager itemMgr = session.getItemManager();
        try {
            ItemImpl item = itemMgr.getItem(absPath);
            if (item.isNode()) {
                node = (NodeImpl) item;
                existingNode = true;
            } else {
                node = (NodeImpl) item.getParent();
            }
        } catch (RepositoryException e) {
            // path points to a non-persisted item.
            // -> find the nearest persisted node starting from the root.
            Path.Element[] elems = absPath.getElements();
View Full Code Here

        boolean existingNode = false;
        NodeImpl node;

        ItemManager itemMgr = session.getItemManager();
        try {
            ItemImpl item = itemMgr.getItem(absPath);
            if (item.isNode()) {
                node = (NodeImpl) item;
                existingNode = true;
            } else {
                node = (NodeImpl) item.getParent();
            }
        } catch (RepositoryException e) {
            // path points to a non-persisted item.
            // -> find the nearest persisted node starting from the root.
            Path.Element[] elems = absPath.getElements();
View Full Code Here

        }
        if (LOG.isDebugEnabled()) {
            String path;
            try {
                NodeId transientRoot = context.getItemStateManager().getIdOfRootTransientNodeState();
                ItemImpl item = context.getItemManager().getItem(transientRoot);
                path = item.getPath();
            } catch (Exception e) {
                LOG.warn("Could not get the path", e);
                path = "?";
            }
            if (LOG_WITH_STACKTRACE) {
View Full Code Here

            boolean existingNode = false;
            NodeImpl node;

            ItemManager itemMgr = session.getItemManager();
            try {
                ItemImpl item = itemMgr.getItem(absPath);
                if (item.isNode()) {
                    node = (NodeImpl) item;
                    existingNode = true;
                } else {
                    node = (NodeImpl) item.getParent();
                }
            } catch (RepositoryException e) {
                // path points to a non-persisted item.
                // -> find the nearest persisted node starting from the root.
                Path.Element[] elems = absPath.getElements();
View Full Code Here

    boolean existingNode = false;
    NodeImpl node;

    ItemManager itemMgr = session.getItemManager();
    try {
      ItemImpl item = itemMgr.getItem( absPath );
      if ( item.isNode() ) {
        node = (NodeImpl) item;
        existingNode = true;
      } else {
        node = (NodeImpl) item.getParent();
      }
    } catch ( RepositoryException e ) {
      // path points to a non-persisted item.
      // -> find the nearest persisted node starting from the root.
      Path.Element[] elems = absPath.getElements();
View Full Code Here

        boolean existingNode = false;
        NodeImpl node;

        ItemManager itemMgr = session.getItemManager();
        try {
            ItemImpl item = itemMgr.getItem(absPath);
            if (item.isNode()) {
                node = (NodeImpl) item;
                existingNode = true;
            } else {
                node = (NodeImpl) item.getParent();
            }
        } catch (RepositoryException e) {
            // path points to a non-persisted item.
            // -> find the nearest persisted node starting from the root.
            Path.Element[] elems = absPath.getElements();
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.ItemImpl

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.