All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.mklinger.qetcher.liferay.client.impl.QetcherLiferayService Maven / Gradle / Ivy

/*
 * Copyright 2013-present mklinger GmbH - http://www.mklinger.de
 *
 * All rights reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of mklinger GmbH and its suppliers, if any.
 * The intellectual and technical concepts contained herein are
 * proprietary to mklinger GmbH and its suppliers and are protected
 * by trade secret or copyright law. Dissemination of this
 * information or reproduction of this material is strictly forbidden
 * unless prior written permission is obtained from mklinger GmbH.
 */
package de.mklinger.qetcher.liferay.client.impl;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;

import de.mklinger.qetcher.client.model.v1.AvailableConversion;
import de.mklinger.qetcher.liferay.abstraction.LiferayException;

/**
 * @author Marc Klinger - mklinger[at]mklinger[dot]de
 */
public interface QetcherLiferayService {
	//	StatusView getStatus();
	//	ServiceVersionView getVersion();
	//	ConvertersView getConverters();
	//
	List getAvailableConversions();
	//	Map> getSupportedConversionsExtensions();

	//	JobsView getJobs();

	/**
	 * Convert method for DocumentConversionUtil.
	 */
	File convert(final String id, final InputStream inputStream, final String sourceExtension, final String targetExtension) throws IOException, LiferayException;

	/**
	 * Convert method for PDFProcessorImpl.
	 */
	void convert(final InputStream inputStream, final OutputStreamProvider outputStreamProvider, final String sourceExtension, final String targetExtension, final Map targetParameters, String jobReferer) throws IOException, LiferayException;

	/**
	 * Generic convert method.
	 */
	void convert(final InputStream inputStream, final OutputStream outputStream, final String sourceExtension, final String targetExtension, final Map targetParameters, String jobReferer) throws IOException, LiferayException;

	String getFilePath(final String id, final String targetExtension);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy