org.jbpm.formbuilder.shared.form
Class AbstractBaseFormDefinitionService

java.lang.Object
  extended by org.jbpm.formbuilder.shared.form.AbstractBaseFormDefinitionService
Direct Known Subclasses:
GuvnorFormDefinitionService, MockFormDefinitionService

public abstract class AbstractBaseFormDefinitionService
extends Object


Constructor Summary
AbstractBaseFormDefinitionService()
           
 
Method Summary
protected
<T> Map<String,T>
asMapOfNull(List<String> keys, Class<T> type)
           
 FormRepresentation createFormFromTask(TaskRef task)
           
 List<String> get(Map<String,List<String>> map, String keyPart)
           
protected  boolean isFormName(String assetId)
           
protected  boolean isItemName(String assetId)
           
 void putActionsForItem(String className, List<String> actionClassNames)
           
 void putEffectsForItem(String className, List<String> effectClassNames)
           
protected  Map<String,InputData> toInputDataMap(List<TaskPropertyRef> inputs)
           
protected  Map<String,OutputData> toOutputDataMap(List<TaskPropertyRef> outputs)
           
protected  boolean updateFormName(FormRepresentation form)
           
protected  boolean updateItemName(String formItemName, StringBuilder returnName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBaseFormDefinitionService

public AbstractBaseFormDefinitionService()
Method Detail

updateFormName

protected boolean updateFormName(FormRepresentation form)
Parameters:
form - FormRepresentation with name to be changed
Returns:
true if its an update, false if it is an insert

updateItemName

protected boolean updateItemName(String formItemName,
                                 StringBuilder returnName)

isItemName

protected boolean isItemName(String assetId)

isFormName

protected boolean isFormName(String assetId)

putEffectsForItem

public void putEffectsForItem(String className,
                              List<String> effectClassNames)

putActionsForItem

public void putActionsForItem(String className,
                              List<String> actionClassNames)

asMapOfNull

protected <T> Map<String,T> asMapOfNull(List<String> keys,
                                        Class<T> type)

get

public List<String> get(Map<String,List<String>> map,
                        String keyPart)

createFormFromTask

public FormRepresentation createFormFromTask(TaskRef task)

toInputDataMap

protected Map<String,InputData> toInputDataMap(List<TaskPropertyRef> inputs)

toOutputDataMap

protected Map<String,OutputData> toOutputDataMap(List<TaskPropertyRef> outputs)


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