Examples of modified()


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

        ChangeLog create = new ChangeLog();
        create.added(node);
        create.added(child);
        create.added(property);
        create.modified(references);
        manager.store(create);

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

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

        assertEquals(references, manager.loadReferencesTo(CHILD_ID));

        references.removeReference(PROPERTY_ID);
        node.setStatus(ItemState.STATUS_EXISTING);
        ChangeLog update = new ChangeLog();
        update.modified(references);
        node.removePropertyName(TEST);
        update.deleted(property);
        update.modified(node);
        manager.store(update);
View Full Code Here

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()

     */
    public boolean setNodeReferences(ChangeLog references) {
        ChangeLog changeLog = ((XAItemStateManager) stateMgr).getChangeLog();
        if (changeLog != null) {
            for (NodeReferences refs : references.modifiedRefs()) {
                changeLog.modified(refs);
            }
            return true;
        } else {
            return false;
        }
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.state.ItemState.MergeResult.modified()

            int currentStatus = currentState.getStatus();
            boolean keepChanges = Status.isTransient(currentStatus) || Status.isStale(currentStatus);
            MergeResult mergeResult = currentState.merge(state, keepChanges);
            if (currentStatus == Status.INVALIDATED) {
                currentState.setStatus(Status.EXISTING);
            } else if (mergeResult.modified()) {
                currentState.setStatus(Status.MODIFIED);
            } // else: not modified. just leave status as it is.
            mergeResult.dispose();
        }
    }
View Full Code Here

Examples of org.metagrid.gatekeeper.test.apple.Apple.modified()

                    )
                )
            );
        log.debug("Weight   [" + apple.weight() + "]");       
        log.debug("Created  [" + apple.created() + "]");       
        log.debug("Modified [" + apple.modified() + "]");       
        assertEquals(
            27,
            apple.weight().intValue()
            );
        assertEquals(
View Full Code Here

Examples of org.metagrid.gatekeeper.test.apple.bean.AppleBean.modified()

            );
        //
        // Check the AppleBean modified date.
        assertEquals(
            future,
            apple.modified()
            );
        }

    /**
     * Check we can't set the created date.
View Full Code Here

Examples of org.metagrid.gatekeeper.test.apple.bean.AppleBeanImpl.modified()

            );
        //
        // Check the AppleBean modified date.
        assertEquals(
            future,
            apple.modified()
            );
        }

    /**
     * Check we can't set the created date.
View Full Code Here

Examples of org.metagrid.gatekeeper.test.orange.bean.OrangeBean.modified()

            );
        //
        // Check the modified date.
        assertEquals(
            future,
            orange.modified()
            );
        }

    /**
     * Check we can't set the created date.
View Full Code Here

Examples of org.metagrid.gatekeeper.test.orange.bean.OrangeBeanImpl.modified()

            );
        //
        // Check the modified date.
        assertEquals(
            future,
            orange.modified()
            );
        }

    /**
     * Check we can't set the created date.
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.