Class SoapImportFolderClient
java.lang.Object
com.logicaldoc.webservice.soap.client.SoapClient<ImportFolderService>
com.logicaldoc.importfolder.webservice.soap.client.SoapImportFolderClient
- All Implemented Interfaces:
ImportFolderService
public class SoapImportFolderClient
extends com.logicaldoc.webservice.soap.client.SoapClient<ImportFolderService>
implements ImportFolderService
-
Constructor Summary
ConstructorDescriptionSoapImportFolderClient
(String endpoint) SoapImportFolderClient
(String endpoint, int gzipThreshold, boolean log, int timeout) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes an imported folder with the given identifierGets folder metadata of all imported folderslong
store
(String sid, WSImportFolder importFolder) Create/Update an imported folder.
-
Constructor Details
-
SoapImportFolderClient
public SoapImportFolderClient(String endpoint, int gzipThreshold, boolean log, int timeout) throws IOException - Throws:
IOException
-
SoapImportFolderClient
- Throws:
IOException
-
-
Method Details
-
list
public WSImportFolder[] list(String sid) throws FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:ImportFolderService
Gets folder metadata of all imported folders- Specified by:
list
in interfaceImportFolderService
- Parameters:
sid
- Session identifier- Returns:
- A value object containing the folders metadata
- Throws:
FeatureNotEnabledException
- Feature not enabled in the licensecom.logicaldoc.webservice.WebserviceException
- Error in the webservicecom.logicaldoc.core.PersistenceException
- Error in the data layer
-
store
public long store(String sid, WSImportFolder importFolder) throws com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException Description copied from interface:ImportFolderService
Create/Update an imported folder. You can completely customize the imported folder through a value object containing the folder's metadata- Specified by:
store
in interfaceImportFolderService
- Parameters:
sid
- Session identifierimportFolder
- Web service value object containing the folder's metadata- Returns:
- id of the created/updated import folder
- Throws:
com.logicaldoc.webservice.WebserviceException
- Error in the webservicecom.logicaldoc.core.PersistenceException
- Error in the data layerFeatureNotEnabledException
- Feature not enabled in the license
-
delete
public void delete(String sid, long id) throws com.logicaldoc.core.PersistenceException, com.logicaldoc.webservice.WebserviceException Description copied from interface:ImportFolderService
Deletes an imported folder with the given identifier- Specified by:
delete
in interfaceImportFolderService
- Parameters:
sid
- Session identifierid
- The folder id- Throws:
com.logicaldoc.core.PersistenceException
- Error in the data layercom.logicaldoc.webservice.WebserviceException
- Error in the webservice
-