public interface YFormService
| Modifier and Type | Method and Description |
|---|---|
YFormDataModel |
createOrUpdateYFormData(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId,
YFormDataTypeEnum type,
java.lang.String refId,
java.lang.String content)
Create or Update YFormDataModel.
|
YFormDataModel |
createYFormData(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId,
YFormDataTypeEnum type,
java.lang.String refId,
java.lang.String content)
Creates YFormData if it doesn't exist and assigns it to the corresponding YFormDefinition.
|
YFormDataModel |
createYFormData(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId,
YFormDataTypeEnum type,
java.lang.String refId,
java.lang.String content,
java.lang.String ownerApplicationId,
java.lang.String ownerFormId)
Creates YFormData if it doesn't exist already and assigns it to the corresponding YFormDefinition.
|
YFormDataModel |
createYFormData(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId,
YFormDataTypeEnum type,
java.lang.String refId,
java.lang.String content,
java.lang.String ownerApplicationId,
java.lang.String ownerFormId,
boolean system)
Creates YFormData if it doesn't exist already and assigns it to the corresponding YFormDefinition.
|
YFormDefinitionModel |
createYFormDefinition(java.lang.String applicationId,
java.lang.String formId,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.lang.String documentId)
Create a new YFormDefinition with specific parameters.
|
YFormDataModel |
getYFormData(java.lang.String applicationId,
java.lang.String formId,
java.lang.String refId,
YFormDataTypeEnum type)
Return the form data model with the specified parameters.
|
YFormDataModel |
getYFormData(java.lang.String formDataId,
YFormDataTypeEnum type)
Return form data model with specific id and type.
|
java.util.List<YFormDataModel> |
getYFormDataByRefId(java.lang.String refId)
Return a list of the form data models with specified reference id.
|
YFormDefinitionModel |
getYFormDefinition(java.lang.String applicationId,
java.lang.String formId)
For a given applicationId and formId a form definition is returned.
|
YFormDefinitionModel |
getYFormDefinition(java.lang.String applicationId,
java.lang.String formId,
int version)
Only for testing purposes, shouldn't be used to get the latest YFormDefinition
|
void |
setFormDefinitionStatus(java.lang.String applicationId,
java.lang.String formId,
YFormDefinitionStatusEnum status)
Set the status for all the form definitions with specific application id and form id.
|
YFormDataModel |
updateYFormData(java.lang.String formDataId,
YFormDataTypeEnum type,
java.lang.String content)
Update YFormData content of form data with specific id and type.
|
YFormDefinitionModel |
updateYFormDefinition(java.lang.String applicationId,
java.lang.String formId,
java.lang.String content,
java.lang.String documentId)
Update YFormDefinition if it exists in the database.
|
YFormDefinitionModel getYFormDefinition(java.lang.String applicationId, java.lang.String formId) throws YFormServiceException
applicationId - the application id of the form definitionformId - the form id of the form definitionYFormServiceException - if definition is not foundYFormDefinitionModel getYFormDefinition(java.lang.String applicationId, java.lang.String formId, int version) throws YFormServiceException
applicationId - the application id of the form definitionformId - the form id of the form definitionversion - the version of the form definitionYFormServiceException - if definition is not foundYFormDefinitionModel updateYFormDefinition(java.lang.String applicationId, java.lang.String formId, java.lang.String content, java.lang.String documentId) throws YFormServiceException
applicationId - the application id of the form definitionformId - the form id of the form definitioncontent - the content of the form definitiondocumentId - the document id of the form definitionYFormServiceException - if form definition cannot be savedYFormDefinitionModel createYFormDefinition(java.lang.String applicationId, java.lang.String formId, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String documentId) throws YFormServiceException
applicationId - the application id of the form definition, should exist in a catalogformId - the form id of the form definitiontitle - the tile of the form definitiondescription - the description of the form definitioncontent - the content of the form definitiondocumentId - the document id of the form definitionYFormServiceException - if form definition cannot be createdYFormDataModel getYFormData(java.lang.String formDataId, YFormDataTypeEnum type) throws YFormServiceException
formDataId - the id of the form datatype - the type of the form dataYFormServiceException - if form data is not foundYFormDataModel createOrUpdateYFormData(java.lang.String applicationId, java.lang.String formId, java.lang.String formDataId, YFormDataTypeEnum type, java.lang.String refId, java.lang.String content) throws YFormServiceException
applicationId - the application id of the form dataformId - the form id of the form dataformDataId - the form data id of the form datatype - the type of the form datarefId - the reference id of the form datacontent - the content of the form dataYFormServiceException - if form data cannot be created or updatedYFormDataModel updateYFormData(java.lang.String formDataId, YFormDataTypeEnum type, java.lang.String content) throws YFormServiceException
formDataId - the id of the form datatype - the type of the form datacontent - new content of the form dataYFormServiceException - if form data cannot be updatedYFormDataModel createYFormData(java.lang.String applicationId, java.lang.String formId, java.lang.String formDataId, YFormDataTypeEnum type, java.lang.String refId, java.lang.String content) throws YFormServiceException
applicationId - the application id of the form dataformId - the form id of the form dataformDataId - the form data id of the form datatype - the type of the form datarefId - the reference id of the form datacontent - the content of the form dataYFormServiceException - if form data cannot be createdYFormDataModel createYFormData(java.lang.String applicationId, java.lang.String formId, java.lang.String formDataId, YFormDataTypeEnum type, java.lang.String refId, java.lang.String content, java.lang.String ownerApplicationId, java.lang.String ownerFormId) throws YFormServiceException
applicationId - the application id of the form dataformId - the form id of the form dataformDataId - the form data id of the form datatype - the type of the form datarefId - the reference id of the form datacontent - the content of the form dataownerApplicationId - the id of the owner applicationownerFormId - the id of the owner formYFormServiceException - if form data cannot be createdYFormDataModel createYFormData(java.lang.String applicationId, java.lang.String formId, java.lang.String formDataId, YFormDataTypeEnum type, java.lang.String refId, java.lang.String content, java.lang.String ownerApplicationId, java.lang.String ownerFormId, boolean system) throws YFormServiceException
applicationId - the application id of the form dataformId - the form id of the form dataformDataId - the form data id of the form datatype - the type of the form datarefId - the reference id of the form datacontent - the content of the form dataownerApplicationId - the id of the owner applicationownerFormId - the id of the owner formsystem - the system flag of the form dataYFormServiceException - if form data cannot be createdYFormDataModel getYFormData(java.lang.String applicationId, java.lang.String formId, java.lang.String refId, YFormDataTypeEnum type) throws YFormServiceException
applicationId - the application id of the form dataformId - the form id of the form datarefId - the reference id of the form datatype - the type of the form dataYFormServiceException - if form data is not foundjava.util.List<YFormDataModel> getYFormDataByRefId(java.lang.String refId)
refId - the reference id of the form data modelsvoid setFormDefinitionStatus(java.lang.String applicationId,
java.lang.String formId,
YFormDefinitionStatusEnum status)
formId - the form id of the form definitionapplicationId - the application id of the form definitionstatus - the new status of the form definitionCopyright © 2018 SAP SE. All Rights Reserved.