Project

General

Profile

1
package eu.dnetlib.api.functionality;
2

    
3
import eu.dnetlib.api.DriverService;
4
import eu.dnetlib.domain.functionality.ConversionStatus;
5

    
6
public interface ConversionService extends DriverService { 
7
	
8
	/**
9
	 * Adds a conversion job
10
	 * @param fileUrl the url of the file to be converted
11
	 * @param format the desired format 
12
	 * @return the {@link ConversionStatus} of the conversion job
13
	 * @throws ConversionServiceException
14
	 */
15
	public ConversionStatus addJob(String fileUrl, String format)  
16
				throws ConversionServiceException;
17
	/**
18
	 * The {@link ConversionStatus} of a conversion job 
19
	 * @param conversionId the id of the conversion job
20
	 * @return the {@link ConversionStatus}  
21
	 * @throws ConversionServiceException
22
	 */
23
	public ConversionStatus getStatus(String conversionId) 
24
				throws ConversionServiceException;
25
	
26
}
(7-7/23)