Examples of ItemStateFactory


Examples of org.apache.jackrabbit.jcr2spi.state.ItemStateFactory

        /**
         * Retrieved a fresh ItemState from the persistent layer. Which will
         * then be merged into the current state.
         */
        try {
            ItemStateFactory isf = getItemStateFactory();
            if (denotesNode()) {
                NodeEntry ne = (NodeEntry) this;
                isf.createNodeState(ne.getWorkspaceId(), ne);
            } else {
                PropertyEntry pe = (PropertyEntry) this;
                isf.createPropertyState(pe.getWorkspaceId(), pe);
            }
        } catch (ItemNotFoundException e) {
            // remove hierarchyEntry including all children
            log.debug("Item '" + getName() + "' cannot be found on the persistent layer -> remove.");
            remove();
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.state.ItemStateFactory

        /**
         * Retrieved a fresh ItemState from the persistent layer. Which will
         * then be merged into the current state.
         */
        try {
            ItemStateFactory isf = factory.getItemStateFactory();
            if (denotesNode()) {
                NodeEntry ne = (NodeEntry) this;
                isf.createNodeState(ne.getWorkspaceId(), ne);
            } else {
                PropertyEntry pe = (PropertyEntry) this;
                isf.createPropertyState(pe.getWorkspaceId(), pe);
            }
        } catch (ItemNotFoundException e) {
            // remove hierarchyEntry including all children
            log.debug("Item '" + getName() + "' cannot be found on the persistent layer -> remove.");
            remove();
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.state.ItemStateFactory

        /**
         * Retrieved a fresh ItemState from the persistent layer. Which will
         * then be merged into the current state.
         */
        try {
            ItemStateFactory isf = getItemStateFactory();
            if (denotesNode()) {
                NodeEntry ne = (NodeEntry) this;
                isf.createNodeState(ne.getWorkspaceId(), ne);
            } else {
                PropertyEntry pe = (PropertyEntry) this;
                isf.createPropertyState(pe.getWorkspaceId(), pe);
            }
        } catch (ItemNotFoundException e) {
            // remove hierarchyEntry including all children
            log.debug("Item '" + getName() + "' cannot be found on the persistent layer -> remove.");
            remove();
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.state.ItemStateFactory

        /**
         * Retrieved a fresh ItemState from the persistent layer. Which will
         * then be merged into the current state.
         */
        try {
            ItemStateFactory isf = getItemStateFactory();
            if (denotesNode()) {
                NodeEntry ne = (NodeEntry) this;
                isf.createNodeState(ne.getWorkspaceId(), ne);
            } else {
                PropertyEntry pe = (PropertyEntry) this;
                isf.createPropertyState(pe.getWorkspaceId(), pe);
            }
        } catch (ItemNotFoundException e) {
            // remove hierarchyEntry including all children
            log.debug("Item '" + getName() + "' cannot be found on the persistent layer -> remove.");
            remove();
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.state.ItemStateFactory

        /**
         * Retrieved a fresh ItemState from the persistent layer. Which will
         * then be merged into the current state.
         */
        try {
            ItemStateFactory isf = getItemStateFactory();
            if (denotesNode()) {
                NodeEntry ne = (NodeEntry) this;
                isf.createNodeState(ne.getWorkspaceId(), ne);
            } else {
                PropertyEntry pe = (PropertyEntry) this;
                isf.createPropertyState(pe.getWorkspaceId(), pe);
            }
        } catch (ItemNotFoundException e) {
            // remove hierarchyEntry including all children
            log.debug("Item '" + getName() + "' cannot be found on the persistent layer -> remove.");
            remove();
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.state.ItemStateFactory

        /**
         * Retrieved a fresh ItemState from the persistent layer. Which will
         * then be merged into the current state.
         */
        try {
            ItemStateFactory isf = factory.getItemStateFactory();
            if (denotesNode()) {
                NodeEntry ne = (NodeEntry) this;
                isf.createNodeState(ne.getWorkspaceId(), ne);
            } else {
                PropertyEntry pe = (PropertyEntry) this;
                isf.createPropertyState(pe.getWorkspaceId(), pe);
            }
        } catch (ItemNotFoundException e) {
            // remove hierarchyEntry including all children
            log.debug("Item '" + getName() + "' cannot be found on the persistent layer -> remove.");
            remove();
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.