Search in sources :

Example 1 with UpdateRequest

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

the class SubversionClientServiceImpl method update.

@Override
public Promise<CLIOutputWithRevisionResponse> update(Path project, Path[] paths, String revision, String depth, boolean ignoreExternals, String accept, Credentials credentials) {
    final UpdateRequest request = dtoFactory.createDto(UpdateRequest.class).withProjectPath(project.toString()).withPaths(toList(paths)).withRevision(revision).withDepth(depth).withIgnoreExternals(ignoreExternals).withAccept(accept);
    if (credentials != null) {
        request.setUsername(credentials.getUsername());
        request.setPassword(credentials.getPassword());
    }
    return asyncRequestFactory.createPostRequest(getBaseUrl() + "/update", request).loader(loader).send(dtoUnmarshallerFactory.newUnmarshaller(CLIOutputWithRevisionResponse.class));
}
Also used : UpdateRequest(org.eclipse.che.plugin.svn.shared.UpdateRequest) CLIOutputWithRevisionResponse(org.eclipse.che.plugin.svn.shared.CLIOutputWithRevisionResponse)

Aggregations

CLIOutputWithRevisionResponse (org.eclipse.che.plugin.svn.shared.CLIOutputWithRevisionResponse)1 UpdateRequest (org.eclipse.che.plugin.svn.shared.UpdateRequest)1