/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualFromLocation = null; this.actualIntoLocation = null; }
/** * Record the supplied change request for publishing through the event mechanism. * * @param request the completed change request; may not be null, and may not be cancelled or have an error */ protected void recordChange( ChangeRequest request ) { assert request != null; assert !request.isCancelled(); assert !request.hasError(); if (changes != null) changes.add(request); }
Location location = change.changedLocation(); assert (location.getPath() != null); String workspace = change.changedWorkspace(); NetChangeDetails details = null; Location original; switch (change.getType()) { case CREATE_NODE: CreateNodeRequest create = (CreateNodeRequest)change;
Changes changes = allChanges.removeFirst(); assertThat(changes.getChangeRequests().get(0), is(instanceOf(CreateNodeRequest.class))); assertThat(changes.getChangeRequests().get(0).changedLocation().getPath(), is(path("/a"))); assertThat(changes.getChangeRequests().get(1), is(instanceOf(CreateNodeRequest.class))); assertThat(changes.getChangeRequests().get(1).changedLocation().getPath(), is(path("/a/b"))); assertThat(changes.getChangeRequests().get(2), is(instanceOf(CreateNodeRequest.class))); assertThat(changes.getChangeRequests().get(2).changedLocation().getPath(), is(path("/a/b/c"))); assertThat(changes.getChangeRequests().get(3), is(instanceOf(CreateNodeRequest.class))); assertThat(changes.getChangeRequests().get(3).changedLocation().getPath(), is(path("/a/b/d")));
assert request instanceof ChangeRequest; ChangeRequest change = (ChangeRequest)request; if (change.changes(workspaceName, node.getPath())) { iter.remove();
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#freeze() */ @Override public boolean freeze() { if (super.freeze()) { if (createdPropertyNames != null) { if (createdPropertyNames.isEmpty()) { createdPropertyNames = Collections.emptySet(); } else if (createdPropertyNames.size() == 1) { createdPropertyNames = Collections.singleton(createdPropertyNames.iterator().next()); } else { createdPropertyNames = Collections.unmodifiableSet(createdPropertyNames); } } return true; } return false; }
assert request instanceof ChangeRequest; ChangeRequest change = (ChangeRequest)request; if (change.changes(workspaceName, path)) { branchRequests.add(request); } else {
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualLocation = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualLocation = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualOldLocation = null; this.actualNewLocation = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualLocation = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualFromLocation = null; this.actualIntoLocation = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualLocationOfRoot = null; this.actualWorkspaceName = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualLocation = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualLocation = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualLocation = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualNewLocation = null; this.actualOldLocation = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualWorkspaceName = null; this.actualLocationOfRoot = null; }
/** * {@inheritDoc} * * @see org.modeshape.graph.request.Request#cancel() */ @Override public void cancel() { super.cancel(); this.actualLocation = null; }