Class SoapFormService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.form.webservice.soap.endpoint.SoapFormService
- All Implemented Interfaces:
- FormService
public class SoapFormService
extends com.logicaldoc.webservice.AbstractService
implements FormService
Implementation of the FormService
- Since:
- 7.4.1
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.logicaldoc.webservice.model.WSDocumentcreateDocument(String sid, long formId, com.logicaldoc.webservice.model.WSDocument doc) Create a new document rendered with the given formvoidDeletes an existing formGets an existing formgetFormByName(String sid, String name) Gets an existing formLists all the available froms in the tenantCreates/Updates a formMethods inherited from class com.logicaldoc.webservice.AbstractServiceconvertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
- 
Constructor Details- 
SoapFormServicepublic SoapFormService()
 
- 
- 
Method Details- 
listpublic List<WSForm> list(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException Description copied from interface:FormServiceLists all the available froms in the tenant- Specified by:
- listin interface- FormService
- Parameters:
- sid- Session identifier
- Returns:
- the list of form definitions
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissions
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.PersistenceException- Error in the data layer
- FeatureNotEnabledException- The feature is not enabled in the license
 
- 
storepublic WSForm store(String sid, WSForm frm) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException Description copied from interface:FormServiceCreates/Updates a form- Specified by:
- storein interface- FormService
- Parameters:
- sid- Session identifier
- frm- the form to create/update
- Returns:
- the newly created form
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissions
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.PersistenceException- Error in the data layer
- FeatureNotEnabledException- The feature is not enabled in the license
 
- 
deletepublic void delete(String sid, long formId) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException Description copied from interface:FormServiceDeletes an existing form- Specified by:
- deletein interface- FormService
- Parameters:
- sid- Session identifier
- formId- the identifier of the form
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissions
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.PersistenceException- Error in the data layer
- FeatureNotEnabledException- The feature is not enabled in the license
 
- 
getFormpublic WSForm getForm(String sid, long formId) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException Description copied from interface:FormServiceGets an existing form- Specified by:
- getFormin interface- FormService
- Parameters:
- sid- Session identifier
- formId- the identifier of the form
- Returns:
- the The found form's definition
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissions
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.PersistenceException- Error in the data layer
- FeatureNotEnabledException- The feature is not enabled in the license
 
- 
getFormByNamepublic WSForm getFormByName(String sid, String name) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException Description copied from interface:FormServiceGets an existing form- Specified by:
- getFormByNamein interface- FormService
- Parameters:
- sid- Session identifier
- name- the name of the form
- Returns:
- the The found form's definition
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissions
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.PersistenceException- Error in the data layer
- FeatureNotEnabledException- The feature is not enabled in the license
 
- 
createDocumentpublic com.logicaldoc.webservice.model.WSDocument createDocument(String sid, long formId, com.logicaldoc.webservice.model.WSDocument doc) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException, com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.core.security.authorization.UnexistingResourceException Description copied from interface:FormServiceCreate a new document rendered with the given form- Specified by:
- createDocumentin interface- FormService
- Parameters:
- sid- Session identifier
- formId- The identifier of the form
- doc- 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:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.PersistenceException- Error in the data layer
- FeatureNotEnabledException- The feature is not enabled in the license
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissions
- com.logicaldoc.core.security.authorization.UnexistingResourceException- The specified form does not exist
 
 
-