Class SoapFormClient
- java.lang.Object
 - 
- com.logicaldoc.webservice.soap.client.SoapClient<FormService>
 - 
- com.logicaldoc.form.webservice.soap.client.SoapFormClient
 
 
 
- 
- All Implemented Interfaces:
 FormService
public class SoapFormClient extends com.logicaldoc.webservice.soap.client.SoapClient<FormService> implements FormService
Java client to invoke the Form service- Since:
 - 7.4.1
 - Author:
 - Marco Meschieri - LogicalDOC
 
 
- 
- 
Constructor Summary
Constructors Constructor Description SoapFormClient(String endpoint)SoapFormClient(String endpoint, int gzipThreshold, boolean log, int timeout) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.logicaldoc.webservice.model.WSDocumentcreateDocument(String sid, long formId, com.logicaldoc.webservice.model.WSDocument doc)Create a new document rendered with the given formvoiddelete(String sid, long formId)Deletes an existing formWSFormgetForm(String sid, long formId)Gets an existing formWSFormgetFormByName(String sid, String name)Gets an existing formWSForm[]list(String sid)Lists all the available froms in the tenantWSFormstore(String sid, WSForm form)Creates/Updates a form 
 - 
 
- 
- 
Constructor Detail
- 
SoapFormClient
public SoapFormClient(String endpoint, int gzipThreshold, boolean log, int timeout) throws IOException
- Throws:
 IOException
 
- 
SoapFormClient
public SoapFormClient(String endpoint) throws IOException
- Throws:
 IOException
 
 - 
 
- 
Method Detail
- 
list
public WSForm[] list(String sid) throws Exception
Description copied from interface:FormServiceLists all the available froms in the tenant- Specified by:
 listin interfaceFormService- Parameters:
 sid- Session identifier- Returns:
 - the list of form definitions
 - Throws:
 Exception- If it was not possible to list the forms
 
- 
store
public WSForm store(String sid, WSForm form) throws Exception
Description copied from interface:FormServiceCreates/Updates a form- Specified by:
 storein interfaceFormService- Parameters:
 sid- Session identifierform- the form to create/update- Returns:
 - the newly created form
 - Throws:
 Exception- If it was not possible to store the form
 
- 
getFormByName
public WSForm getFormByName(String sid, String name) throws Exception
Description copied from interface:FormServiceGets an existing form- Specified by:
 getFormByNamein interfaceFormService- Parameters:
 sid- Session identifiername- the name of the form- Returns:
 - the The found form's definition
 - Throws:
 Exception- If any error happens
 
- 
delete
public void delete(String sid, long formId) throws Exception
Description copied from interface:FormServiceDeletes an existing form- Specified by:
 deletein interfaceFormService- Parameters:
 sid- Session identifierformId- the identifier of the form- Throws:
 Exception- If any error happens
 
- 
getForm
public WSForm getForm(String sid, long formId) throws Exception
Description copied from interface:FormServiceGets an existing form- Specified by:
 getFormin interfaceFormService- Parameters:
 sid- Session identifierformId- the identifier of the form- Returns:
 - the The found form's definition
 - Throws:
 Exception- If any error happens
 
- 
createDocument
public com.logicaldoc.webservice.model.WSDocument createDocument(String sid, long formId, com.logicaldoc.webservice.model.WSDocument doc) throws Exception
Description copied from interface:FormServiceCreate a new document rendered with the given form- Specified by:
 createDocumentin interfaceFormService- Parameters:
 sid- Session identifierformId- The identifier of the formdoc- The matadata for the creation, please populate the title, the folderId and all the needed extended attributes specified in the form- Returns:
 - The new created document
 - Throws:
 Exception- If any error happens
 
 - 
 
 -