Search in sources :

Example 1 with CopyRequest

use of org.eclipse.che.plugin.svn.shared.CopyRequest in project che by eclipse.

the class SubversionClientServiceImpl method copy.

@Override
public Promise<CLIOutputResponse> copy(Path project, Path source, Path destination, String comment, Credentials credentials) {
    final CopyRequest request = dtoFactory.createDto(CopyRequest.class).withProjectPath(project.toString()).withSource(source.toString()).withDestination(destination.toString()).withComment(comment);
    if (credentials != null) {
        request.setUsername(credentials.getUsername());
        request.setPassword(credentials.getPassword());
    }
    return asyncRequestFactory.createPostRequest(getBaseUrl() + "/copy", request).loader(loader).send(dtoUnmarshallerFactory.newUnmarshaller(CLIOutputResponse.class));
}
Also used : CopyRequest(org.eclipse.che.plugin.svn.shared.CopyRequest) CLIOutputResponse(org.eclipse.che.plugin.svn.shared.CLIOutputResponse)

Aggregations

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