org.jbpm.formbuilder.server.form
Class FSFormDefinitionService
java.lang.Object
org.jbpm.formapi.shared.form.AbstractBaseFormDefinitionService
org.jbpm.formbuilder.server.form.FSFormDefinitionService
- All Implemented Interfaces:
- FormDefinitionService, org.springframework.beans.factory.InitializingBean
public class FSFormDefinitionService
- extends AbstractBaseFormDefinitionService
- implements FormDefinitionService, org.springframework.beans.factory.InitializingBean
|
Method Summary |
void |
afterPropertiesSet()
|
void |
deleteForm(String formUrl)
|
void |
deleteForm(String pkgName,
String formId)
|
void |
deleteFormItem(String itemUrl)
|
void |
deleteFormItem(String pkgName,
String formItemId)
|
FormRepresentation |
getAssociatedForm(String pkgName,
TaskRef task)
|
String |
getBaseUrl()
|
FSFileService |
getFileService()
|
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)
|
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 |
setFileService(FSFileService fileService)
|
| 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 |
FSFormDefinitionService
public FSFormDefinitionService()
getForms
public List<FormRepresentation> getForms(String pkgName)
throws FormServiceException
- Specified by:
getForms in interface FormDefinitionService
- Throws:
FormServiceException
getFormItems
public Map<String,FormItemRepresentation> getFormItems(String pkgName)
throws FormServiceException
- Specified by:
getFormItems in interface FormDefinitionService
- Throws:
FormServiceException
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
deleteForm
public void deleteForm(String pkgName,
String formId)
throws FormServiceException
- Specified by:
deleteForm in interface FormDefinitionService
- Throws:
FormServiceException
deleteForm
public void deleteForm(String formUrl)
throws FormServiceException
- Throws:
FormServiceException
deleteFormItem
public void deleteFormItem(String pkgName,
String formItemId)
throws FormServiceException
- Specified by:
deleteFormItem in interface FormDefinitionService
- Throws:
FormServiceException
deleteFormItem
public void deleteFormItem(String itemUrl)
throws FormServiceException
- 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
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
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
getBaseUrl
public String getBaseUrl()
setBaseUrl
public void setBaseUrl(String baseUrl)
getFileService
public FSFileService getFileService()
setFileService
public void setFileService(FSFileService fileService)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.