Examples of ItemImpl


Examples of org.apache.chemistry.opencmis.client.runtime.ItemImpl

        case CMIS_POLICY:
            return new PolicyImpl((SessionImpl) this.session, type, objectData, context);
        case CMIS_RELATIONSHIP:
            return new RelationshipImpl((SessionImpl) this.session, type, objectData, context);
        case CMIS_ITEM:
            return new ItemImpl((SessionImpl) this.session, type, objectData, context);
        case CMIS_SECONDARY:
            throw new CmisRuntimeException("Secondary type is used as object type: " + objectData.getBaseTypeId());
        default:
            throw new CmisRuntimeException("Unsupported base type: " + objectData.getBaseTypeId());
        }
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.runtime.ItemImpl

        case CMIS_POLICY:
            return new PolicyImpl((SessionImpl) this.session, type, objectData, context);
        case CMIS_RELATIONSHIP:
            return new RelationshipImpl((SessionImpl) this.session, type, objectData, context);
        case CMIS_ITEM:
            return new ItemImpl((SessionImpl) this.session, type, objectData, context);
        case CMIS_SECONDARY:
            throw new CmisRuntimeException("Secondary type is used as object type: " + objectData.getBaseTypeId());
        default:
            throw new CmisRuntimeException("Unsupported base type: " + objectData.getBaseTypeId());
        }
View Full Code Here

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

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

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

Examples of org.apache.jackrabbit.core.ItemImpl

        }
        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

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

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

Examples of org.apache.jackrabbit.core.ItemImpl

        }
        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

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
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.