|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormBuilderService
Client's interface with the REST API server.
| Nested Class Summary | |
|---|---|
static interface |
FormBuilderService.RolesResponseHandler
|
| Method Summary | |
|---|---|
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 |
deleteMenuItem(String groupName,
FBMenuItem item)
Deletes a custom menu item 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 |
getFiles(List<String> types,
FilesLoadedHandler handler)
|
void |
getForm(String formName)
Returns a single form |
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()
|
void |
loadFormTemplate(FormRepresentation form,
String language)
Loads a file from the server that contains a given language's form template |
void |
logout()
|
void |
populateRepresentationFactory()
Populates the RepresentationFactory with the form items and representations
that belong to them. |
void |
saveForm(FormRepresentation form)
Saves a form on the server |
void |
saveFormItem(FormItemRepresentation formItem,
String formItemName)
Saves a UI component on the server |
void |
saveMenuItem(String groupName,
FBMenuItem item)
Saves a new (custom) menu item 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)
|
FormRepresentation |
toBasicForm(TaskRef task)
Returns the form representation that basically describes a task |
| Method Detail |
|---|
void getMenuItems()
throws FormBuilderException
FormBuilderException - in case of error.
void getMenuOptions()
throws FormBuilderException
FormBuilderException - in case of error.
void saveForm(FormRepresentation form)
throws FormBuilderException
form - The form to be saved
FormBuilderException - in case of error
void saveFormItem(FormItemRepresentation formItem,
String formItemName)
throws FormBuilderException
formItem - the UI component to be savedformItemName - the UI component name
FormBuilderException - in case of error
void deleteForm(FormRepresentation form)
throws FormBuilderException
form - The form to be deleted
FormBuilderException - in case of error
void deleteFile(String url)
throws FormBuilderException
FormBuilderException
void deleteFormItem(String formItemName,
FormItemRepresentation formItem)
throws FormBuilderException
formItemName - The UI component nameformItem - the UI component to be deleted
FormBuilderException - in case of error
void generateForm(FormRepresentation form,
String language,
Map<String,Object> inputs)
throws FormBuilderException
form - Form to be translatedlanguage - Language to translate the form
FormBuilderException - in case of error
void saveMenuItem(String groupName,
FBMenuItem item)
throws FormBuilderException
groupName - Group name of the new menu itemitem - The new menu item to be saved
FormBuilderException - in case of error
void deleteMenuItem(String groupName,
FBMenuItem item)
throws FormBuilderException
groupName - Group name of the custom menu item to be deleteditem - The custom menu item to be deleted
FormBuilderException - in case of error
void getExistingIoAssociations(String filter)
throws FormBuilderException
filter - a filter for a google-like search textfield
FormBuilderException - in case of error
void selectIoAssociation(String pkgName,
String processName,
String taskName)
throws FormBuilderException
pkgName - the name of the packageprocessName - the name of the processtaskName - the name of the task
FormBuilderException - in case of error
void getExistingValidations()
throws FormBuilderException
FormBuilderException - in case of error
void getForm(String formName)
throws FormBuilderException
formName - the name of the form to be returned
FormBuilderException - in case of error.
void getForms()
throws FormBuilderException
FormBuilderException - in case of error.
void populateRepresentationFactory()
throws FormBuilderException
RepresentationFactory with the form items and representations
that belong to them.
callback - callback to tell the client what to do once it finishes
FormBuilderException - in case of error.
void loadFormTemplate(FormRepresentation form,
String language)
throws FormBuilderException
form - the form representation to create a template fromlanguage - the result template expected language
FormBuilderException - in case of error.
void getCurrentRoles(FormBuilderService.RolesResponseHandler handler)
throws FormBuilderException
FormBuilderExceptionFormRepresentation toBasicForm(TaskRef task)
task - a task to be described
String getUploadFileURL()
String getUploadActionURL()
void setPackageName(String packageName)
void logout()
void getFiles(List<String> types,
FilesLoadedHandler handler)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||