Package de.xima.fc.mdl.placeholder
Class DefaultReplacerParameters
- java.lang.Object
-
- de.xima.fc.mdl.placeholder.DefaultReplacerParameters
-
- All Implemented Interfaces:
ILanguageTagProviding
,IContextReplacerParams
,IFormReplacerParams
,II18nValueReplacerParams
,IPlaceholderValueParams
,IReplacerParams
,ISessionReplacerParams
,ISystemReplacerParams
,ITemplateReplacerParams
,Serializable
public class DefaultReplacerParameters extends Object implements IPlaceholderValueParams
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.xima.fc.interfaces.placeholder.params.IContextReplacerParams
IContextReplacerParams.IValueReplacer
-
-
Constructor Summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseUrl()
Mandant
getClient()
String
getContextPath()
com.alibaba.fastjson.JSONObject
getCreatorDataJSON()
com.alibaba.fastjson.JSONObject
getEditorDataJSON()
IPlaceholderEscaper
getEscaper()
The placeholder escaper, which should applied for the replaced placeholder values before they returned to the documentIFormDataAdapter
getFormData()
FormVersion
getFormVersion()
String
getLanguageTag()
Map<String,Map<String,String>>
getPlaceholderMap()
Vorgang
getProcess()
Projekt
getProject()
Map<String,IContextReplacerParams.IValueReplacer>
getReplacerMap()
javax.servlet.http.HttpServletRequest
getRequest()
javax.servlet.http.HttpServletResponse
getResponse()
String
getSessionId()
com.alibaba.fastjson.JSONObject
getUserDataJSON()
IBaseWorkflowExecutionContext
getWorkflowExecutionContext()
IWorkflowProcessingContext
getWorkflowProcessing()
boolean
isEncodeForHTML()
boolean
isEncodeFormValuesForPlaceholder()
void
setBaseUrl(String baseUrl)
void
setClient(Mandant client)
void
setContextPath(String contextPath)
void
setCreatorDataJSON(com.alibaba.fastjson.JSONObject creatorData)
void
setEditorDataJSON(com.alibaba.fastjson.JSONObject editorData)
void
setEncodeForHTML(boolean encodeForHTML)
void
setEncodeFormValuesForPlaceholder(boolean encodeFormValuesForPlaceholder)
void
setEscaper(IPlaceholderEscaper escaper)
void
setFormData(IFormDataAdapter formData)
void
setFormVersion(FormVersion formVersion)
void
setLanguageTag(String languageTag)
void
setProcess(Vorgang process)
void
setProject(Projekt project)
void
setRequest(javax.servlet.http.HttpServletRequest request)
void
setResponse(javax.servlet.http.HttpServletResponse response)
void
setSessionId(String sessionId)
void
setUserDataJSON(com.alibaba.fastjson.JSONObject userData)
void
setWorkflowProcessing(IWorkflowProcessingContext wfpctx)
-
-
-
Constructor Detail
-
DefaultReplacerParameters
public DefaultReplacerParameters()
-
DefaultReplacerParameters
public DefaultReplacerParameters(Map<String,Map<String,String>> contextPlaceholderMap, Map<String,IContextReplacerParams.IValueReplacer> contextReplacerMap)
-
DefaultReplacerParameters
public DefaultReplacerParameters(Vorgang process, String sessionId, String baseUrl)
-
DefaultReplacerParameters
public DefaultReplacerParameters(Vorgang process, String sessionId, String baseUrl, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
DefaultReplacerParameters
public DefaultReplacerParameters(IFormDataAdapter formData, FormVersion formVersion, boolean encodeForHTML)
-
DefaultReplacerParameters
public DefaultReplacerParameters(IFormDataAdapter formData, FormVersion formVersion, boolean encodeForHTML, boolean encodeFormValuesForPlaceholder)
-
DefaultReplacerParameters
public DefaultReplacerParameters(IBaseWorkflowExecutionContext wfpctx)
-
DefaultReplacerParameters
public DefaultReplacerParameters(IBaseWorkflowExecutionContext wfpctx, Vorgang formRecord)
-
DefaultReplacerParameters
@Deprecated public DefaultReplacerParameters(IWorkflowProcessingContext wfpctx, Vorgang formRecord)
- Parameters:
wfpctx
- A workflow processing context.formRecord
- A form record to use, instead of the form record of the given processing context.
-
DefaultReplacerParameters
public DefaultReplacerParameters(IFormDataAdapter formData, Vorgang process)
-
DefaultReplacerParameters
@Deprecated public DefaultReplacerParameters(IWorkflowProcessingContext wfpctx)
Deprecated.- Parameters:
wfpctx
- A workflow processing context.
-
DefaultReplacerParameters
public DefaultReplacerParameters(Vorgang process)
-
DefaultReplacerParameters
public DefaultReplacerParameters(Mandant client)
-
-
Method Detail
-
isEncodeFormValuesForPlaceholder
public boolean isEncodeFormValuesForPlaceholder()
- Specified by:
isEncodeFormValuesForPlaceholder
in interfaceIFormReplacerParams
- Specified by:
isEncodeFormValuesForPlaceholder
in interfaceIReplacerParams
-
setEncodeFormValuesForPlaceholder
public void setEncodeFormValuesForPlaceholder(boolean encodeFormValuesForPlaceholder)
-
getWorkflowProcessing
public IWorkflowProcessingContext getWorkflowProcessing()
- Specified by:
getWorkflowProcessing
in interfaceISystemReplacerParams
- Returns:
- The current workflow processing context, or
null
if none is available.
-
getWorkflowExecutionContext
public IBaseWorkflowExecutionContext getWorkflowExecutionContext()
- Specified by:
getWorkflowExecutionContext
in interfaceISystemReplacerParams
-
setWorkflowProcessing
public void setWorkflowProcessing(IWorkflowProcessingContext wfpctx)
-
getClient
public Mandant getClient()
- Specified by:
getClient
in interfaceIFormReplacerParams
- Specified by:
getClient
in interfaceII18nValueReplacerParams
- Specified by:
getClient
in interfaceISystemReplacerParams
- Specified by:
getClient
in interfaceITemplateReplacerParams
- Returns:
- the current
Mandant
object
-
setClient
public void setClient(Mandant client)
-
getProcess
public Vorgang getProcess()
- Specified by:
getProcess
in interfaceIFormReplacerParams
- Specified by:
getProcess
in interfaceISessionReplacerParams
- Specified by:
getProcess
in interfaceISystemReplacerParams
- Returns:
- the current
Vorgang
object
-
setProcess
public void setProcess(Vorgang process)
-
getProject
public Projekt getProject()
- Specified by:
getProject
in interfaceISystemReplacerParams
-
setProject
public void setProject(Projekt project)
-
getSessionId
public String getSessionId()
- Specified by:
getSessionId
in interfaceISessionReplacerParams
-
setSessionId
public void setSessionId(String sessionId)
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
- Specified by:
getRequest
in interfaceISessionReplacerParams
-
setRequest
public void setRequest(javax.servlet.http.HttpServletRequest request)
-
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
- Specified by:
getResponse
in interfaceISessionReplacerParams
-
setResponse
public void setResponse(javax.servlet.http.HttpServletResponse response)
-
getFormData
public IFormDataAdapter getFormData()
- Specified by:
getFormData
in interfaceIFormReplacerParams
- Specified by:
getFormData
in interfaceISystemReplacerParams
-
setFormData
public void setFormData(IFormDataAdapter formData)
- Specified by:
setFormData
in interfaceIFormReplacerParams
- Specified by:
setFormData
in interfaceISystemReplacerParams
-
getFormVersion
public FormVersion getFormVersion()
- Specified by:
getFormVersion
in interfaceIFormReplacerParams
- Returns:
- the current
FormVersion
object
-
setFormVersion
public void setFormVersion(FormVersion formVersion)
-
getContextPath
public String getContextPath()
- Specified by:
getContextPath
in interfaceISessionReplacerParams
-
setContextPath
public void setContextPath(String contextPath)
-
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrl
in interfaceISessionReplacerParams
-
setBaseUrl
public void setBaseUrl(String baseUrl)
-
getLanguageTag
public String getLanguageTag()
- Specified by:
getLanguageTag
in interfaceIFormReplacerParams
- Specified by:
getLanguageTag
in interfaceILanguageTagProviding
- Returns:
- The language tag (
Locale.toLanguageTag()
) provided by this object.
-
setLanguageTag
public void setLanguageTag(String languageTag)
-
isEncodeForHTML
public boolean isEncodeForHTML()
- Specified by:
isEncodeForHTML
in interfaceIFormReplacerParams
- Specified by:
isEncodeForHTML
in interfaceII18nValueReplacerParams
-
setEncodeForHTML
public void setEncodeForHTML(boolean encodeForHTML)
-
getEscaper
public IPlaceholderEscaper getEscaper()
Description copied from interface:IReplacerParams
The placeholder escaper, which should applied for the replaced placeholder values before they returned to the document- Specified by:
getEscaper
in interfaceIFormReplacerParams
- Specified by:
getEscaper
in interfaceIReplacerParams
- Returns:
- an instance of
IPlaceholderEscaper
-
setEscaper
public void setEscaper(IPlaceholderEscaper escaper)
-
getReplacerMap
public Map<String,IContextReplacerParams.IValueReplacer> getReplacerMap()
- Specified by:
getReplacerMap
in interfaceIContextReplacerParams
-
getPlaceholderMap
public Map<String,Map<String,String>> getPlaceholderMap()
- Specified by:
getPlaceholderMap
in interfaceIContextReplacerParams
-
getCreatorDataJSON
public com.alibaba.fastjson.JSONObject getCreatorDataJSON()
- Specified by:
getCreatorDataJSON
in interfaceISystemReplacerParams
-
setCreatorDataJSON
public void setCreatorDataJSON(com.alibaba.fastjson.JSONObject creatorData)
-
getEditorDataJSON
public com.alibaba.fastjson.JSONObject getEditorDataJSON()
- Specified by:
getEditorDataJSON
in interfaceISystemReplacerParams
-
setEditorDataJSON
public void setEditorDataJSON(com.alibaba.fastjson.JSONObject editorData)
-
getUserDataJSON
public com.alibaba.fastjson.JSONObject getUserDataJSON()
- Specified by:
getUserDataJSON
in interfaceISystemReplacerParams
-
setUserDataJSON
public void setUserDataJSON(com.alibaba.fastjson.JSONObject userData)
-
-