public interface YFormFacade
| Modifier and Type | Method and Description |
|---|---|
YFormDataData |
createOrUpdateYFormData(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId,
YFormDataTypeEnum type,
java.lang.String formDataContent)
Create or Update YFormDataModel.
|
YFormDataData |
createOrUpdateYFormData(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId,
YFormDataTypeEnum type,
java.lang.String refId,
java.lang.String formDataContent)
Create or Update YFormDataModel.
|
YFormDataData |
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.
|
YFormDefinitionData |
createYFormDefinition(java.lang.String applicationId,
java.lang.String formId,
java.lang.String content,
java.lang.String documentId)
Create a new YFormDefinition with specific parameters.
|
java.lang.String |
getFormDataContent(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId)
Returns the content of form data with specific application id, form id and form data id.
|
java.lang.String |
getFormDataContentTemplate(java.lang.String applicationId,
java.lang.String formId)
For a given application id and form id a form data content template (an empty content generated from
YFormDefinition with given form id) is returned.
|
java.lang.String |
getInlineFormHtml(java.lang.String applicationId,
java.lang.String formId)
For a given application id and form id an inline form definition is returned.
The inline form definition can be injected in to a page instead of getting entire xform tagged between |
java.lang.String |
getInlineFormHtml(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId)
For a given application id, form id and form data id an inline form definition is returned.
The inline form definition can be injected in to a page instead of getting entire xform tagged between |
java.lang.String |
getInlineFormHtml(java.lang.String applicationId,
java.lang.String formId,
YFormDataActionEnum action,
java.lang.String formDataId)
For a given application id, form id, form data id and action an inline form definition is returned.
The inline form definition can be injected in to a page instead of getting entire xform tagged between |
java.lang.String |
getInlineFormHtml(java.lang.String applicationId,
java.lang.String formId,
YFormDataActionEnum action,
java.lang.String formDataId,
YFormPreprocessorStrategy strategy)
For a given application id, form id, form data id, action and strategy an inline form definition is returned.
The inline form definition can be injected in to a page instead of getting entire xform tagged between |
java.lang.String |
getInlineFormHtml(java.lang.String applicationId,
java.lang.String formId,
YFormDataActionEnum action,
java.lang.String formDataId,
YFormPreprocessorStrategy strategy,
java.util.Map<java.lang.String,java.lang.Object> params)
For a given application id, form id, form data id, action and strategy (plus parameters) an inline form definition
is returned.
The inline form definition can be injected in to a page instead of getting entire xform tagged between |
java.lang.String |
getNewFormDataId()
Generates a new form Data id.
|
YFormDataData |
getYFormData(java.lang.String formDataId)
For a given id a form data is returned.
|
YFormDataData |
getYFormData(java.lang.String applicationId,
java.lang.String formId,
java.lang.String refId)
For the given application id, form id and reference id a form data is returned.
|
YFormDataData |
getYFormData(java.lang.String applicationId,
java.lang.String formId,
java.lang.String refId,
YFormDataTypeEnum type)
For the given application id, form id, reference id and form type a form data is returned.
|
YFormDataData |
getYFormData(java.lang.String formDataId,
YFormDataTypeEnum type)
For a given id and type a form data is returned.
|
YFormDefinitionData |
getYFormDefinition(java.lang.String documentId)
For a given document id a form definition is returned.
|
YFormDefinitionData |
getYFormDefinition(java.lang.String applicationId,
java.lang.String formId)
For a given application id and form id a form definition is returned.
|
YFormDefinitionData |
getYFormDefinition(java.lang.String applicationId,
java.lang.String formId,
int version)
This method is available for testing purposes, to get the latest YFormDefinition use other method.
|
java.lang.String |
recreateYFormDefinitionCounterpart(java.lang.String applicationId,
java.lang.String formId,
int version)
Creates the form data counterpart form definition with specific application id, form id and version number.
|
void |
setFormDefinitionStatus(java.lang.String applicationId,
java.lang.String formId,
YFormDefinitionStatusEnum status)
Changes the state of a form definition.
|
YFormDataData |
updateYFormData(java.lang.String formDataId,
YFormDataTypeEnum type,
java.lang.String content)
Update YFormData content of form data with specific id and type.
|
YFormDefinitionData |
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.
|
boolean |
validate(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId)
Indicates if the given Form Data is valid or not.
|
java.lang.String getNewFormDataId()
YFormDefinitionData getYFormDefinition(java.lang.String applicationId, java.lang.String formId) throws YFormServiceException
applicationId - the application id to search form definition forformId - the form id to search form definition forYFormServiceExceptionYFormDefinitionData getYFormDefinition(java.lang.String applicationId, java.lang.String formId, int version) throws YFormServiceException
applicationId - the application id to search form definition forformId - the form id to search form definition forversion - form definition versionYFormServiceException - if form definition cannot with specified parameters be resolvedYFormDefinitionData getYFormDefinition(java.lang.String documentId) throws YFormServiceException
documentId - the document id to search form definition forYFormServiceExceptionYFormDefinitionData createYFormDefinition(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 createdYFormDefinitionData 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 updatedYFormDataData getYFormData(java.lang.String formDataId) throws YFormServiceException
formDataId - the form data id to get data forYFormServiceException - if form data cannot be foundYFormDataData getYFormData(java.lang.String formDataId, YFormDataTypeEnum type) throws YFormServiceException
formDataId - the form data id to get data fortype - the type of the form dataYFormServiceException - if form data cannot be foundYFormDataData 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 to get data forrefId - the reference idtype - the type of the form dataYFormServiceException - if form data cannot be foundYFormDataData getYFormData(java.lang.String applicationId, java.lang.String formId, java.lang.String refId) throws YFormServiceException
applicationId - the application id of the form dataformId - the form id to get data forrefId - the reference idYFormServiceException - if form data cannot be foundYFormDataData 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 createdYFormDataData 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 updatedYFormDataData createOrUpdateYFormData(java.lang.String applicationId, java.lang.String formId, java.lang.String formDataId, YFormDataTypeEnum type, java.lang.String refId, java.lang.String formDataContent) 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 dataformDataContent - the content of the form dataYFormServiceException - if form data cannot be created or updatedYFormDataData createOrUpdateYFormData(java.lang.String applicationId, java.lang.String formId, java.lang.String formDataId, YFormDataTypeEnum type, java.lang.String formDataContent) 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 dataformDataContent - the content of the form dataYFormServiceException - if form data cannot be created or updatedjava.lang.String getInlineFormHtml(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId)
throws YFormServiceException
applicationId - the application id of the definitionformId - the form id of the definitionformDataId - the form data id of the definitionYFormServiceException - if inline definition cannot be returnedjava.lang.String getInlineFormHtml(java.lang.String applicationId,
java.lang.String formId)
throws YFormServiceException
applicationId - the application id of the definitionformId - the form id of the definitionYFormServiceException - if inline definition cannot be returnedjava.lang.String getInlineFormHtml(java.lang.String applicationId,
java.lang.String formId,
YFormDataActionEnum action,
java.lang.String formDataId)
throws YFormServiceException
applicationId - the application id of the definitionformId - the form id of the definitionaction - the action on the definitionformDataId - the form data id of the definitionYFormServiceException - if inline definition cannot be returnedjava.lang.String getInlineFormHtml(java.lang.String applicationId,
java.lang.String formId,
YFormDataActionEnum action,
java.lang.String formDataId,
YFormPreprocessorStrategy strategy)
throws YFormServiceException
applicationId - the application id of the definitionformId - the form id of the definitionaction - the action on the definitionformDataId - the form data id of the definitionstrategy - form preprocessor strategyYFormServiceException - if inline definition cannot be returnedjava.lang.String getInlineFormHtml(java.lang.String applicationId,
java.lang.String formId,
YFormDataActionEnum action,
java.lang.String formDataId,
YFormPreprocessorStrategy strategy,
java.util.Map<java.lang.String,java.lang.Object> params)
throws YFormServiceException
applicationId - the application id of the definitionformId - the form id of the definitionaction - the action on the definitionformDataId - the form data id of the definitionstrategy - form preprocessor strategyparams - map with parameters for preprocessor strategyYFormServiceException - if inline definition cannot be returnedjava.lang.String getFormDataContent(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId)
throws YFormServiceException
applicationId - the application id of the form dataformId - the form id of the form dataformDataId - the id of the form dataYFormServiceException - if form data was not found or its content is invalidjava.lang.String getFormDataContentTemplate(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 there is no YFormDefinition with given applicationId and formId
or YFormDefinition has wrong contentjava.lang.String recreateYFormDefinitionCounterpart(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 number of the form definitionYFormServiceException - if form definition cannot be found or updated or form data cannot be createdvoid setFormDefinitionStatus(java.lang.String applicationId,
java.lang.String formId,
YFormDefinitionStatusEnum status)
throws YFormServiceException
applicationId - the application id of the form definitionformId - the form id of the form definitionstatus - new status of the form definitionYFormServiceException - if form definition cannot be found or updatedboolean validate(java.lang.String applicationId,
java.lang.String formId,
java.lang.String formDataId)
throws YFormServiceException
applicationId - the application id of the form dataformId - the form id of the form dataformDataId - the id of the form dataYFormServiceException - if form data cannot be foundCopyright © 2018 SAP SE. All Rights Reserved.