|
jBPM distribution 6.0.0.Alpha9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.form.builder.services.impl.FormBuilderServiceImpl
@ApplicationScoped public class FormBuilderServiceImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jbpm.form.builder.services.api.FormBuilderService |
---|
FormBuilderService.RolesResponseHandler |
Constructor Summary | |
---|---|
FormBuilderServiceImpl()
|
Method Summary | |
---|---|
void |
applySettings(Settings settings)
|
void |
deleteFile(String url)
|
void |
deleteForm(FormRepresentation form)
Deletes a form from the server |
void |
deleteFormItem(String formItemName,
FormItemRepresentation formItem)
Deletes a UI component from the server |
void |
generateForm(FormRepresentation form,
String language,
Map<String,Object> inputs)
Translates a form. |
void |
getCurrentRoles(FormBuilderService.RolesResponseHandler handler)
|
void |
getExistingIoAssociations(String filter)
Returns the IoAssociations as matching on a simple string filter |
void |
getExistingValidations()
Returns existing validations from the server |
void |
getForm(String formName)
Returns a single form |
String |
getFormDisplay()
|
void |
getForms()
Returns all forms |
void |
getMenuItems()
Gets a map of groups indexed by group name. |
void |
getMenuOptions()
Gets a list of menu options, generally for a menu bar. |
String |
getUploadActionURL()
|
String |
getUploadFileURL()
|
FormRepresentation |
loadForm(String json)
|
void |
loadFormTemplate(FormRepresentation form,
String language)
Loads a file from the server that contains a given language's form template |
void |
loadSettings()
|
void |
logout()
|
void |
populateRepresentationFactory()
Populates the RepresentationFactory with the form items and representations
that belong to them. |
String |
saveForm(FormRepresentation form)
Saves a form on the server |
String |
saveFormGWT(Map<String,Object> form)
|
void |
saveFormItem(FormItemRepresentation formItem,
String formItemName)
Saves a UI component on the server |
void |
selectIoAssociation(String pkgName,
String processName,
String taskName)
Fires a TaskSelectedEvent in case you can find the proper task in the server |
void |
setPackageName(String packageName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormBuilderServiceImpl()
Method Detail |
---|
public void getMenuItems() throws FormBuilderServiceException
FormBuilderService
getMenuItems
in interface FormBuilderService
FormBuilderServiceException
public void getMenuOptions() throws FormBuilderServiceException
FormBuilderService
getMenuOptions
in interface FormBuilderService
FormBuilderServiceException
public String saveFormGWT(Map<String,Object> form) throws FormBuilderServiceException
FormBuilderServiceException
public String saveForm(FormRepresentation form) throws FormBuilderServiceException
FormBuilderService
saveForm
in interface FormBuilderService
form
- The form to be saved
FormBuilderServiceException
public void saveFormItem(FormItemRepresentation formItem, String formItemName) throws FormBuilderServiceException
FormBuilderService
saveFormItem
in interface FormBuilderService
formItem
- the UI component to be savedformItemName
- the UI component name
FormBuilderServiceException
public void deleteForm(FormRepresentation form) throws FormBuilderServiceException
FormBuilderService
deleteForm
in interface FormBuilderService
form
- The form to be deleted
FormBuilderServiceException
public void deleteFile(String url) throws FormBuilderServiceException
deleteFile
in interface FormBuilderService
FormBuilderServiceException
public void deleteFormItem(String formItemName, FormItemRepresentation formItem) throws FormBuilderServiceException
FormBuilderService
deleteFormItem
in interface FormBuilderService
formItemName
- The UI component nameformItem
- the UI component to be deleted
FormBuilderServiceException
public void generateForm(FormRepresentation form, String language, Map<String,Object> inputs) throws FormBuilderServiceException
FormBuilderService
generateForm
in interface FormBuilderService
form
- Form to be translatedlanguage
- Language to translate the form
FormBuilderServiceException
public void getExistingIoAssociations(String filter) throws FormBuilderServiceException
FormBuilderService
getExistingIoAssociations
in interface FormBuilderService
filter
- a filter for a google-like search textfield
FormBuilderServiceException
public void selectIoAssociation(String pkgName, String processName, String taskName) throws FormBuilderServiceException
FormBuilderService
selectIoAssociation
in interface FormBuilderService
pkgName
- the name of the packageprocessName
- the name of the processtaskName
- the name of the task
FormBuilderServiceException
public void getExistingValidations() throws FormBuilderServiceException
FormBuilderService
getExistingValidations
in interface FormBuilderService
FormBuilderServiceException
public void getForm(String formName) throws FormBuilderServiceException
FormBuilderService
getForm
in interface FormBuilderService
formName
- the name of the form to be returned
FormBuilderServiceException
public void getForms() throws FormBuilderServiceException
FormBuilderService
getForms
in interface FormBuilderService
FormBuilderServiceException
public void populateRepresentationFactory() throws FormBuilderServiceException
FormBuilderService
RepresentationFactory
with the form items and representations
that belong to them.
populateRepresentationFactory
in interface FormBuilderService
FormBuilderServiceException
public void loadFormTemplate(FormRepresentation form, String language) throws FormBuilderServiceException
FormBuilderService
loadFormTemplate
in interface FormBuilderService
form
- the form representation to create a template fromlanguage
- the result template expected language
FormBuilderServiceException
public void getCurrentRoles(FormBuilderService.RolesResponseHandler handler) throws FormBuilderServiceException
getCurrentRoles
in interface FormBuilderService
FormBuilderServiceException
public String getUploadFileURL()
getUploadFileURL
in interface FormBuilderService
public String getUploadActionURL()
getUploadActionURL
in interface FormBuilderService
public void setPackageName(String packageName)
setPackageName
in interface FormBuilderService
public void logout()
logout
in interface FormBuilderService
public void applySettings(Settings settings)
applySettings
in interface FormBuilderService
public void loadSettings()
loadSettings
in interface FormBuilderService
public String getFormDisplay()
getFormDisplay
in interface FormBuilderService
public FormRepresentation loadForm(String json)
loadForm
in interface FormBuilderService
|
jBPM distribution 6.0.0.Alpha9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |