de.mklinger.qetcher.liferay.client.impl.QetcherClientWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qetcher-adapter-liferay-71 Show documentation
Show all versions of qetcher-adapter-liferay-71 Show documentation
Qetcher Liferay 7.1.x Adapter
The newest version!
package de.mklinger.qetcher.liferay.client.impl;
import java.io.File;
import java.nio.file.OpenOption;
import java.nio.file.Path;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import de.mklinger.qetcher.client.InputConversionFile;
import de.mklinger.qetcher.client.InputJob;
import de.mklinger.qetcher.client.QetcherClient;
import de.mklinger.qetcher.client.model.v1.AvailableConversion;
import de.mklinger.qetcher.client.model.v1.AvailableNode;
import de.mklinger.qetcher.client.model.v1.ConversionFile;
import de.mklinger.qetcher.client.model.v1.Job;
/**
* @author Marc Klinger - mklinger[at]mklinger[dot]de
*/
public class QetcherClientWrapper implements QetcherClient {
private final QetcherClient delegate;
public QetcherClientWrapper(final QetcherClient delegate) {
this.delegate = delegate;
}
@Override
public CompletableFuture uploadFile(final InputConversionFile inputFile) {
return delegate.uploadFile(inputFile);
}
@Override
public CompletableFuture getFile(final String fileId) {
return delegate.getFile(fileId);
}
@Override
public CompletableFuture> getFiles() {
return delegate.getFiles();
}
@Override
public CompletableFuture deleteFile(final String fileId) {
return delegate.deleteFile(fileId);
}
@Override
public CompletableFuture downloadAsFile(final String fileId, final Path file, final OpenOption... openOptions) {
return delegate.downloadAsFile(fileId, file, openOptions);
}
@Override
public CompletableFuture createJob(final InputJob inputJob) {
return delegate.createJob(inputJob);
}
@Override
public CompletableFuture getJob(final String jobId) {
return delegate.getJob(jobId);
}
@Override
public CompletableFuture> getJobs() {
return delegate.getJobs();
}
@Override
public CompletableFuture deleteJob(final String jobId) {
return delegate.deleteJob(jobId);
}
@Override
public CompletableFuture> getAvailableConversions() {
return delegate.getAvailableConversions();
}
@Override
public CompletableFuture> getAvailableNodes() {
return delegate.getAvailableNodes();
}
@Override
public CompletableFuture getFile(final ConversionFile file) {
return delegate.getFile(file);
}
@Override
public CompletableFuture deleteFile(final ConversionFile file) {
return delegate.deleteFile(file);
}
@Override
public CompletableFuture downloadAsFile(final String fileId, final Path file) {
return delegate.downloadAsFile(fileId, file);
}
@Override
public CompletableFuture downloadAsFile(final String fileId, final File file) {
return delegate.downloadAsFile(fileId, file);
}
@Override
public CompletableFuture downloadAsTempFile(final String fileId) {
return delegate.downloadAsTempFile(fileId);
}
@Override
public CompletableFuture downloadAsTempFile(final String fileId, final Path dir) {
return delegate.downloadAsTempFile(fileId, dir);
}
@Override
public CompletableFuture getJob(final Job job) {
return delegate.getJob(job);
}
@Override
public CompletableFuture deleteJob(final Job job) {
return delegate.deleteJob(job);
}
@Override
public CompletableFuture getJobDone(final Job job) {
return delegate.getJobDone(job);
}
@Override
public CompletableFuture getJobDone(final String jobId) {
return delegate.getJobDone(jobId);
}
@Override
public void close() {
delegate.close();
}
}