Class SoapImpexClient
- java.lang.Object
-
- com.logicaldoc.webservice.soap.client.SoapClient<ImpexService>
-
- com.logicaldoc.impex.webservice.soap.client.SoapImpexClient
-
- All Implemented Interfaces:
ImpexService
public class SoapImpexClient extends com.logicaldoc.webservice.soap.client.SoapClient<ImpexService> implements ImpexService
-
-
Constructor Summary
Constructors Constructor Description SoapImpexClient(String endpoint)SoapImpexClient(String endpoint, int gzipThreshold, boolean log, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDocumentToExportArchive(String sid, long archiveId, long docId)Adds a document to an existing export archivevoidcloseExportArchive(String sid, long archiveId)Closes an export archivelongcreateExportArchive(String sid, String name, String description)Defines a new export archive.voiddeleteExportArchive(String sid, long archiveId)Deletes an export archiveLonggetArchiveIdByName(String sid, String name)Retrieves the ID of an existing archive
-
-
-
Constructor Detail
-
SoapImpexClient
public SoapImpexClient(String endpoint, int gzipThreshold, boolean log, int timeout) throws IOException
- Throws:
IOException
-
SoapImpexClient
public SoapImpexClient(String endpoint) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createExportArchive
public long createExportArchive(String sid, String name, String description) throws Exception
Description copied from interface:ImpexServiceDefines a new export archive.- Specified by:
createExportArchivein interfaceImpexService- Parameters:
sid- Session identifiername- Name of the archive, mandatorydescription- Description of the archive, optional- Returns:
- The id of the newly created export archive
- Throws:
Exception- error in the server
-
addDocumentToExportArchive
public void addDocumentToExportArchive(String sid, long archiveId, long docId) throws Exception
Description copied from interface:ImpexServiceAdds a document to an existing export archive- Specified by:
addDocumentToExportArchivein interfaceImpexService- Parameters:
sid- Session identifierarchiveId- identifier of the archive to be useddocId- identifier of the document to be added- Throws:
Exception- error in the server
-
closeExportArchive
public void closeExportArchive(String sid, long archiveId) throws Exception
Description copied from interface:ImpexServiceCloses an export archive- Specified by:
closeExportArchivein interfaceImpexService- Parameters:
sid- Session identifierarchiveId- identifier of the archive to be closed- Throws:
Exception- error in the server
-
deleteExportArchive
public void deleteExportArchive(String sid, long archiveId) throws Exception
Description copied from interface:ImpexServiceDeletes an export archive- Specified by:
deleteExportArchivein interfaceImpexService- Parameters:
sid- Session identifierarchiveId- identifier of the archive to be closed- Throws:
Exception- error in the server
-
getArchiveIdByName
public Long getArchiveIdByName(String sid, String name) throws Exception
Description copied from interface:ImpexServiceRetrieves the ID of an existing archive- Specified by:
getArchiveIdByNamein interfaceImpexService- Parameters:
sid- Session identifiername- Name of the archive- Returns:
- The id of the archive
- Throws:
Exception- error in the server
-
-