Examples of modified()


Examples of org.apache.jackrabbit.core.state.ChangeLog.modified()

        node.setStatus(ItemState.STATUS_EXISTING);
        ChangeLog update = new ChangeLog();
        update.modified(references);
        node.removePropertyName(TEST);
        update.deleted(property);
        update.modified(node);
        manager.store(update);

        assertTrue(manager.exists(NODE_ID));
        assertTrue(manager.exists(CHILD_ID));
        assertFalse(manager.exists(PROPERTY_ID));
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ChangeLog.modified()

            targetNode.setNodeTypeName(sourceNode.getNodeTypeName());
            targetNode.setMixinTypeNames(sourceNode.getMixinTypeNames());
            targetNode.setPropertyNames(sourceNode.getPropertyNames());
            targetNode.setChildNodeEntries(sourceNode.getChildNodeEntries());
            if (target.exists(targetNode.getNodeId())) {
                changes.modified(targetNode);
            } else {
                changes.added(targetNode);
            }

            // Copy all associated property states
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ChangeLog.modified()

                        }
                    }
                }
                targetState.setValues(values);
                if (target.exists(targetState.getPropertyId())) {
                    changes.modified(targetState);
                } else {
                    changes.added(targetState);
                }
            }
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ChangeLog.modified()

            }

            // Copy all node references
            NodeReferencesId refsId = new NodeReferencesId(sourceNode.getNodeId());
            if (source.exists(refsId)) {
                changes.modified(source.load(refsId));
            } else if (target.exists(refsId)) {
                 NodeReferences references = target.load(refsId);
                references.clearAllReferences();
                changes.modified(references);
            }
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ChangeLog.modified()

            if (source.exists(refsId)) {
                changes.modified(source.load(refsId));
            } else if (target.exists(refsId)) {
                 NodeReferences references = target.load(refsId);
                references.clearAllReferences();
                changes.modified(references);
            }

            // Persist the copied states
            target.store(changes);
        } catch (IOException e) {
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ChangeLog.modified()

    public boolean setNodeReferences(ChangeLog references) {
        ChangeLog changeLog = ((XAItemStateManager) stateMgr).getChangeLog();
        if (changeLog != null) {
            Iterator iterator = references.modifiedRefs();
            while (iterator.hasNext()) {
                changeLog.modified((NodeReferences) iterator.next());
            }
            return true;
        } else {
            return false;
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ChangeLog.modified()

                historyState.addChildNodeEntry(NameConstants.JCR_ACTIVITIES, activitiesId);
                               
                ChangeLog cl = new ChangeLog();
                cl.added(root);
                cl.added(pt);
                cl.modified(historyState);
                pMgr.store(cl);
            }

            sharedStateMgr = createItemStateManager(pMgr, storageId, ntReg, cacheFactory, ismLocking);
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ChangeLog.modified()

    public boolean setNodeReferences(ChangeLog references) {
        ChangeLog changeLog = ((XAItemStateManager) stateMgr).getChangeLog();
        if (changeLog != null) {
            Iterator iterator = references.modifiedRefs();
            while (iterator.hasNext()) {
                changeLog.modified((NodeReferences) iterator.next());
            }
            return true;
        } else {
            return false;
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ChangeLog.modified()

    public boolean setNodeReferences(ChangeLog references) {
        ChangeLog changeLog = ((XAItemStateManager) stateMgr).getChangeLog();
        if (changeLog != null) {
            Iterator iterator = references.modifiedRefs();
            while (iterator.hasNext()) {
                changeLog.modified((NodeReferences) iterator.next());
            }
            return true;
        } else {
            return false;
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ChangeLog.modified()

        ChangeLog changes = new ChangeLog();
        changes.added(n1);
        changes.added(p1);
        changes.deleted(p2);
        changes.modified(n2);
        changes.deleted(n3);

        List events = new ArrayList();
        events.add(createEventState(n1, Event.NODE_ADDED, "{}n1"));
        events.add(createEventState(p1, n1, Event.PROPERTY_ADDED));
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.