use of org.eclipse.che.plugin.svn.shared.MoveRequest in project che by eclipse.
the class SubversionClientServiceImpl method move.
@Override
public Promise<CLIOutputResponse> move(Path project, Path source, Path destination, String comment, Credentials credentials) {
final MoveRequest request = dtoFactory.createDto(MoveRequest.class).withProjectPath(project.toString()).withSource(Collections.singletonList(source.toString())).withDestination(destination.toString()).withComment(comment);
if (credentials != null) {
request.setUsername(credentials.getUsername());
request.setPassword(credentials.getPassword());
}
return asyncRequestFactory.createPostRequest(getBaseUrl() + "/move", request).loader(loader).send(dtoUnmarshallerFactory.newUnmarshaller(CLIOutputResponse.class));
}
Aggregations