void onResourceCopied(@Observes final ResourceCopiedEvent copiedEvent) { if (path != null && path.equals(copiedEvent.getPath())) { if (sessionInfo.getId().equals(copiedEvent.getSessionInfo().getId())) { executeCopyCommands(); } else { executeConcurrentCopyCommand(copiedEvent.getPath(), copiedEvent.getDestinationPath(), copiedEvent.getSessionInfo().getId(), copiedEvent.getSessionInfo().getIdentity()); } } }
@Override public String toString() { return "ResourceCopiedEvent{" + "sourcePath=" + sourcePath + ", destinationPath=" + getDestinationPath() + ", message=" + getMessage() + ", sessionInfo=" + sessionInfo + '}'; } }
public void processResourceCopied(@Observes final ResourceCopiedEvent resourceCopiedEvent) { processResourceChange(resourceCopiedEvent.getSessionInfo(), resourceCopiedEvent.getPath(), ResourceChangeType.COPY); incrementalBuilder.addResource(resourceCopiedEvent.getPath()); //¿? }
public void onResourceCopied(@Observes final ResourceCopiedEvent event) { refreshView(event.getDestinationPath()); }
@Test public void testResourceCopyEvent() { doReturn(createPath()).when(pathPlaceRequest).getPath(); observablePathImpl.onResourceCopied(new ResourceCopiedEvent(pathPlaceRequest.getPath(), destinationPath, MESSAGE, createSessionInfo())); verify(onCopy).execute(any()); verify(observablePathImpl).executeConcurrentCopyCommand(pathPlaceRequest.getPath(), destinationPath, RESOURCE_SESSION_ID, identityUser); }
public void processResourceCopied(@Observes final ResourceCopiedEvent resourceCopiedEvent) { processResourceChange(resourceCopiedEvent.getSessionInfo(), resourceCopiedEvent.getPath(), ResourceChangeType.COPY); incrementalBuilder.addResource(resourceCopiedEvent.getPath()); //¿? }
public void onResourceCopied(@Observes final ResourceCopiedEvent event) { refreshView(event.getDestinationPath()); }
@Test public void testResourceCopyEvent() { doReturn(createPath()).when(pathPlaceRequest).getPath(); observablePathImpl.onResourceCopied(new ResourceCopiedEvent(pathPlaceRequest.getPath(), destinationPath, MESSAGE, createSessionInfo())); verify(onCopy).execute(any()); verify(observablePathImpl).executeConcurrentCopyCommand(pathPlaceRequest.getPath(), destinationPath, RESOURCE_SESSION_ID, identityUser); }
public void processResourceCopied(@Observes final ResourceCopiedEvent resourceCopiedEvent) { processResourceChange(resourceCopiedEvent.getSessionInfo(), resourceCopiedEvent.getPath(), ResourceChangeType.COPY); incrementalBuilder.addResource(resourceCopiedEvent.getPath()); //¿? }
public void onResourceCopied(@Observes final ResourceCopiedEvent event) { refresh(event.getDestinationPath()); }
resourceCopiedEvent.fire(new ResourceCopiedEvent(path, targetPath, comment,
resourceCopiedEvent.fire(new ResourceCopiedEvent(path, targetPath, comment,