public Collection<NodeRef> getNextWork() { if(val != null) { Long aspectQNameId = val.getFirst(); result.clear(); while (result.isEmpty() && minSearchNodeId < maxNodeId) { List<Long> nodeids = getPatchDAO().getNodesByAspectQNameId(aspectQNameId, minSearchNodeId, maxSearchNodeId); for(Long nodeid : nodeids) { NodeRef.Status status = getNodeDAO().getNodeIdStatus(nodeid); if(!status.isDeleted()) { result.add(status.getNodeRef()); } } minSearchNodeId = minSearchNodeId + count; maxSearchNodeId = maxSearchNodeId + count; } } return result; } };
public Collection<NodeRef> getNextWork() { if(val != null) { Long aspectQNameId = val.getFirst(); result.clear(); while (result.isEmpty() && minSearchNodeId < maxNodeId) { List<Long> nodeids = getPatchDAO().getNodesByAspectQNameId(aspectQNameId, minSearchNodeId, maxSearchNodeId); for(Long nodeid : nodeids) { NodeRef.Status status = getNodeDAO().getNodeIdStatus(nodeid); if(!status.isDeleted()) { result.add(status.getNodeRef()); } } minSearchNodeId = minSearchNodeId + count; maxSearchNodeId = maxSearchNodeId + count; } } return result; } };
NodeRef nodeRef = status.getNodeRef(); categoryPaths = getCategoryPaths(status.getNodeRef(), aspects, props); List<Path> directPaths = nodeDAO.getPaths(new Pair<Long, NodeRef>(nodeId, status.getNodeRef()), false); Collection<Pair<Path, QName>> paths = new ArrayList<Pair<Path, QName>>(directPaths.size() + categoryPaths.getPaths().size()); List<Path> unversionedPaths = nodeDAO.getPaths(new Pair<Long, NodeRef>(unversionedStatus.getDbId(), unversionedStatus.getNodeRef()), false); for (Path path : unversionedPaths) nodeMetaData.setOwner(ownableService.getOwner(status.getNodeRef()));
NodeRef nodeRef = status.getNodeRef(); categoryPaths = getCategoryPaths(status.getNodeRef(), aspects, props); List<Path> directPaths = nodeDAO.getPaths(new Pair<Long, NodeRef>(nodeId, status.getNodeRef()), false); Collection<Pair<Path, QName>> paths = new ArrayList<Pair<Path, QName>>(directPaths.size() + categoryPaths.getPaths().size()); List<Path> unversionedPaths = nodeDAO.getPaths(new Pair<Long, NodeRef>(unversionedStatus.getDbId(), unversionedStatus.getNodeRef()), false); for (Path path : unversionedPaths) nodeMetaData.setOwner(ownableService.getOwner(status.getNodeRef()));
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()); } }