nodeMetaData.setTxnId(status.getDbTxnId());
nodeMetaData.setTxnId(status.getDbTxnId());
Status status = nodeService.getNodeStatus(nodeRef4); Long lastCascadeTx = (Long)nodeService.getProperty(nodeRef4, ContentModel.PROP_CASCADE_TX); assertTrue(status.getDbTxnId().equals(lastCascadeTx)); assertTrue(nodeService.getProperty(nodeRef4, ContentModel.PROP_CASCADE_CRC) != null); Long crcIn3 = (Long)nodeService.getProperty(nodeRef4, ContentModel.PROP_CASCADE_CRC);
txnIdCreate = liveStatus.getDbTxnId(); txnIdCreate, liveStatus.getDbTxnId()); txnIdDelete = liveStatus.getDbTxnId(); txnIdDelete, liveStatus.getDbTxnId()); txnIdDelete, archivedStatus.getDbTxnId()); txnIdRestore = liveStatus.getDbTxnId(); txnIdRestore, liveStatus.getDbTxnId()); txnIdRestore, archivedStatus.getDbTxnId());
public Long execute() throws Throwable { PropertyMap props = new PropertyMap(); props.put(ContentModel.PROP_NAME, "Container100Nodes"); NodeRef container = nodeService.createNode( rootNodeRef, ContentModel.ASSOC_CHILDREN, ContentModel.ASSOC_CHILDREN, ContentModel.TYPE_FOLDER, props).getChildRef(); setExpectedNodeStatus(container, NodeStatus.UPDATED); for(int i = 0; i < 99; i++) { FileInfo contentInfo = fileFolderService.create(container, "Content" + i, ContentModel.TYPE_CONTENT); NodeRef nodeRef = contentInfo.getNodeRef(); setExpectedNodeStatus(nodeRef, NodeStatus.UPDATED); } return nodeDAO.getNodeRefStatus(container).getDbTxnId(); } }));
public Long execute() throws Throwable { PropertyMap props = new PropertyMap(); props.put(ContentModel.PROP_NAME, "ContainerResidual"); container = nodeService.createNode( rootNodeRef, ContentModel.ASSOC_CHILDREN, ContentModel.ASSOC_CHILDREN, ContentModel.TYPE_FOLDER, props).getChildRef(); FileInfo contentInfo = fileFolderService.create(container, "ContentResidual", ContentModel.TYPE_CONTENT); content = contentInfo.getNodeRef(); nodeService.setProperty(content, QName.createQName("{rubbish}rubbish"), "Rubbish"); return nodeDAO.getNodeRefStatus(container).getDbTxnId(); } }));
private void markCascadeUpdate(NodeRef nodeRef) { Status status = nodeService.getNodeStatus(nodeRef); nodeService.setProperty(status.getNodeRef(), ContentModel.PROP_CASCADE_CRC, solrTrackingComponent.getCRC(status.getDbId())); nodeService.setProperty(status.getNodeRef(), ContentModel.PROP_CASCADE_TX, status.getDbTxnId()); } }
private void markCascadeUpdate(NodeRef nodeRef) { Status status = nodeService.getNodeStatus(nodeRef); nodeService.setProperty(status.getNodeRef(), ContentModel.PROP_CASCADE_CRC, solrTrackingComponent.getCRC(status.getDbId())); nodeService.setProperty(status.getNodeRef(), ContentModel.PROP_CASCADE_TX, status.getDbTxnId()); } }