Package org.bonitasoft.engine.core.form
Class LegacyURLAdapter
java.lang.Object
org.bonitasoft.engine.core.form.LegacyURLAdapter
- All Implemented Interfaces:
URLAdapter
- Author:
- Baptiste Mesta, Anthony Birembaut
-
Constructor Summary
ConstructorsConstructorDescriptionLegacyURLAdapter(ProcessDefinitionService processDefinitionService, FormMappingService formMappingService) -
Method Summary
Modifier and TypeMethodDescriptionadapt an url based on a contextprotected StringgenerateLegacyURL(String contextPath, String locale, String bpmId, SFormMapping formMapping, SProcessDefinition processDefinition, String user, boolean assignTask, String mode, boolean autoInstantiate) getId()protected String
-
Constructor Details
-
LegacyURLAdapter
public LegacyURLAdapter(ProcessDefinitionService processDefinitionService, FormMappingService formMappingService)
-
-
Method Details
-
adapt
public String adapt(String url, String key, Map<String, Serializable> context) throws SExecutionExceptionDescription copied from interface:URLAdapteradapt an url based on a context- Specified by:
adaptin interfaceURLAdapter- Parameters:
url- the base urlkey- the url keycontext- the provided context- Returns:
- the new url
- Throws:
SExecutionException- when the URL rewriting fails
-
generateLegacyURL
protected String generateLegacyURL(String contextPath, String locale, String bpmId, SFormMapping formMapping, SProcessDefinition processDefinition, String user, boolean assignTask, String mode, boolean autoInstantiate) -
urlEncode
-
getId
- Specified by:
getIdin interfaceURLAdapter- Returns:
- the identifier for this url adapter
-