org.jbpm.formbuilder.server.form
Class GuvnorFormDefinitionService

java.lang.Object
  extended by org.jbpm.formapi.shared.form.AbstractBaseFormDefinitionService
      extended by org.jbpm.formbuilder.server.form.GuvnorFormDefinitionService
All Implemented Interfaces:
FormDefinitionService, org.springframework.beans.factory.InitializingBean

public class GuvnorFormDefinitionService
extends AbstractBaseFormDefinitionService
implements FormDefinitionService, org.springframework.beans.factory.InitializingBean


Constructor Summary
GuvnorFormDefinitionService()
           
 
Method Summary
 void afterPropertiesSet()
           
 void deleteForm(String pkgName, String formId)
           
 void deleteFormItem(String pkgName, String formItemId)
           
 FormRepresentation getAssociatedForm(String pkgName, TaskRef task)
           
 String getBaseUrl()
           
 FormRepresentation getForm(String pkgName, String formId)
           
 FormRepresentation getFormByUUID(String packageName, String uuid)
           
 FormItemRepresentation getFormItem(String pkgName, String formItemId)
           
 Map<String,FormItemRepresentation> getFormItems(String pkgName)
           
 List<FormRepresentation> getForms(String pkgName)
           
 GuvnorHelper getHelper()
           
 String getPassword()
           
 String getUser()
           
 String saveForm(String pkgName, FormRepresentation form)
           
 String saveFormItem(String pkgName, String formItemName, FormItemRepresentation formItem)
           
 void saveTemplate(String packageName, String templateName, String content)
           
 void setBaseUrl(String baseUrl)
           
 void setHelper(GuvnorHelper helper)
           
 void setPassword(String password)
           
 void setUser(String user)
           
protected  boolean templateExists(String pkgName, String templateName)
           
 
Methods inherited from class org.jbpm.formapi.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.formapi.shared.form.FormDefinitionService
createFormFromTask
 

Constructor Detail

GuvnorFormDefinitionService

public GuvnorFormDefinitionService()
Method Detail

getBaseUrl

public String getBaseUrl()

setBaseUrl

public void setBaseUrl(String baseUrl)

getUser

public String getUser()

setUser

public void setUser(String user)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

setHelper

public void setHelper(GuvnorHelper helper)

getHelper

public GuvnorHelper getHelper()

saveForm

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

saveFormItem

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

getForm

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

getFormByUUID

public FormRepresentation getFormByUUID(String packageName,
                                        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)
                                                throws FormServiceException
Specified by:
getFormItems in interface FormDefinitionService
Throws:
FormServiceException

getForms

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

deleteForm

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

deleteFormItem

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

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

templateExists

protected boolean templateExists(String pkgName,
                                 String templateName)
                          throws FormServiceException
Throws:
FormServiceException


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