Search in sources :

Example 1 with MoveRequest

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));
}
Also used : MoveRequest(org.eclipse.che.plugin.svn.shared.MoveRequest) CLIOutputResponse(org.eclipse.che.plugin.svn.shared.CLIOutputResponse)

Aggregations

CLIOutputResponse (org.eclipse.che.plugin.svn.shared.CLIOutputResponse)1 MoveRequest (org.eclipse.che.plugin.svn.shared.MoveRequest)1