org.jbpm.formbuilder.shared.form
Class MockFormDefinitionService

java.lang.Object
  extended by org.jbpm.formbuilder.shared.form.AbstractBaseFormDefinitionService
      extended by org.jbpm.formbuilder.shared.form.MockFormDefinitionService
All Implemented Interfaces:
FormDefinitionService

public class MockFormDefinitionService
extends AbstractBaseFormDefinitionService
implements FormDefinitionService


Constructor Summary
MockFormDefinitionService()
           
 
Method Summary
 void deleteForm(String pkgName, String formId)
           
 void deleteFormItem(String pkgName, String formItemId)
           
 FormRepresentation getAssociatedForm(String pkgName, TaskRef task)
           
 FormRepresentation getForm(String pkgName, String formId)
           
 FormRepresentation getFormByUUID(String pkgName, String uuid)
           
 FormItemRepresentation getFormItem(String pkgName, String formItemId)
           
 Map<String,FormItemRepresentation> getFormItems(String pkgName)
           
 List<FormRepresentation> getForms(String pkgName)
           
 String saveForm(String pkgName, FormRepresentation form)
           
 String saveFormItem(String pkgName, String formItemName, FormItemRepresentation formItem)
           
 void saveTemplate(String packageName, String templateName, String content)
           
 
Methods inherited from class org.jbpm.formbuilder.shared.form.AbstractBaseFormDefinitionService
asMapOfNull, createFormFromTask, get, isFormName, isItemName, putActionsForItem, putEffectsForItem, toInputDataMap, toOutputDataMap, updateFormName, updateItemName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbpm.formbuilder.shared.form.FormDefinitionService
createFormFromTask
 

Constructor Detail

MockFormDefinitionService

public MockFormDefinitionService()
Method Detail

getForms

public List<FormRepresentation> getForms(String pkgName)
Specified by:
getForms in interface FormDefinitionService

getForm

public FormRepresentation getForm(String pkgName,
                                  String formId)
                           throws FormServiceException
Specified by:
getForm in interface FormDefinitionService
Throws:
FormServiceException

getFormByUUID

public FormRepresentation getFormByUUID(String pkgName,
                                        String uuid)
                                 throws FormServiceException
Specified by:
getFormByUUID in interface FormDefinitionService
Throws:
FormServiceException

getFormItem

public FormItemRepresentation getFormItem(String pkgName,
                                          String formItemId)
                                   throws FormServiceException
Specified by:
getFormItem in interface FormDefinitionService
Throws:
FormServiceException

getFormItems

public Map<String,FormItemRepresentation> getFormItems(String pkgName)
Specified by:
getFormItems in interface FormDefinitionService

saveForm

public String saveForm(String pkgName,
                       FormRepresentation form)
Specified by:
saveForm in interface FormDefinitionService

saveFormItem

public String saveFormItem(String pkgName,
                           String formItemName,
                           FormItemRepresentation formItem)
Specified by:
saveFormItem in interface FormDefinitionService

deleteForm

public void deleteForm(String pkgName,
                       String formId)
Specified by:
deleteForm in interface FormDefinitionService

deleteFormItem

public void deleteFormItem(String pkgName,
                           String formItemId)
Specified by:
deleteFormItem in interface FormDefinitionService

getAssociatedForm

public FormRepresentation getAssociatedForm(String pkgName,
                                            TaskRef task)
                                     throws FormServiceException
Specified by:
getAssociatedForm in interface FormDefinitionService
Throws:
FormServiceException

saveTemplate

public void saveTemplate(String packageName,
                         String templateName,
                         String content)
                  throws FormServiceException
Specified by:
saveTemplate in interface FormDefinitionService
Throws:
FormServiceException


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.