Package com.adobe.aemds.guide.utils
Class JSONCreationOptions
- java.lang.Object
-
- com.adobe.aemds.guide.utils.JSONCreationOptions
-
public class JSONCreationOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,java.lang.Integer>adobeSignNameIndexMapjava.util.Map<java.lang.String,java.lang.Integer>somMap
-
Constructor Summary
Constructors Constructor Description JSONCreationOptions()JSONCreationOptions(I18n i18n, boolean includeJcrPath, boolean includeFragmentJson, java.util.Locale locale, Resource formResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetAdobeSignFieldNameIndex(java.lang.String name)Gets the index in case adobe sign field has a duplicate name.java.util.MapgetBindRefToAFNameMap()booleangetContextNeeded()java.lang.StringgetData()java.lang.StringgetDataRef()java.util.Map<java.lang.String,java.lang.String>getExpTreeJsonMap()Gets the expression editor tree json this is required to initialize expression editor scope/context before generating scriptsjava.lang.StringgetFormContainerPath()ResourcegetFormResource()java.lang.StringgetFormResourceProperty(java.lang.String propertyName)I18ngetI18n()java.util.LocalegetLocale()java.lang.StringgetPagePath()java.util.MapgetPrefillServiceParams()SlingHttpServletRequestgetRequest()ScriptablegetRulesScriptsScope()get the rhino scope initialized with objects required to generate scripts from rulesSignerResourcegetSignerResource()Gets the guideContainer signer information in form of SignerResourcejava.lang.IntegergetSOMIndex(java.lang.String som)ResourcePropertyTransformergetTransformer()java.util.Map<java.lang.String,java.lang.String>getWebVariableAssignments()booleanisIncludeFragmentJson()booleanisIncludeJcrPath()booleanisV2Form()voidsetBindRefToAFNameMap(java.util.Map bindRefToAFNameMap)JSONCreationOptionssetData(java.lang.String data)JSONCreationOptionssetDataRef(java.lang.String dataRef)JSONCreationOptionssetExpTreeJsonMap(java.util.Map<java.lang.String,java.lang.String> treeJsonMap)Set the expression editor tree json this is require to initialize expression editor scope/context before generating scriptsJSONCreationOptionssetFormContainerPath(java.lang.String formContainerPath)voidsetFormResource(Resource formResource)JSONCreationOptionssetI18n(I18n i18n)voidsetIncludeFragmentJson(boolean includeFragmentJson)voidsetLocale(java.util.Locale locale)JSONCreationOptionssetPagePath(java.lang.String pagePath)voidsetPrefillServiceParams(java.util.Map prefillServiceParams)voidsetRequest(SlingHttpServletRequest request)JSONCreationOptionssetRulesScriptsScope(Scriptable rulesScriptsScope)Set scope initialized with objects required to generate scripts from rulesvoidsetTransformer(ResourcePropertyTransformer transformer)voidsetV2Form(boolean isV2Form)voidsetWebVariableAssignments(java.util.Map<java.lang.String,java.lang.String> webVariableAssignments)
-
-
-
Method Detail
-
isV2Form
public boolean isV2Form()
-
setV2Form
public void setV2Form(boolean isV2Form)
-
getLocale
public java.util.Locale getLocale()
-
setLocale
public void setLocale(java.util.Locale locale)
-
getContextNeeded
public boolean getContextNeeded()
-
setTransformer
public void setTransformer(ResourcePropertyTransformer transformer)
-
setI18n
public JSONCreationOptions setI18n(I18n i18n)
-
getI18n
public I18n getI18n()
-
isIncludeJcrPath
public boolean isIncludeJcrPath()
-
isIncludeFragmentJson
public boolean isIncludeFragmentJson()
-
setIncludeFragmentJson
public void setIncludeFragmentJson(boolean includeFragmentJson)
-
getFormResource
public Resource getFormResource()
-
setFormResource
public void setFormResource(Resource formResource)
-
getFormResourceProperty
public java.lang.String getFormResourceProperty(java.lang.String propertyName)
-
getTransformer
public ResourcePropertyTransformer getTransformer()
-
getDataRef
public java.lang.String getDataRef()
-
setDataRef
public JSONCreationOptions setDataRef(java.lang.String dataRef)
-
getPagePath
public java.lang.String getPagePath()
-
setPagePath
public JSONCreationOptions setPagePath(java.lang.String pagePath)
-
getBindRefToAFNameMap
public java.util.Map getBindRefToAFNameMap()
-
setBindRefToAFNameMap
public void setBindRefToAFNameMap(java.util.Map bindRefToAFNameMap)
-
getFormContainerPath
public java.lang.String getFormContainerPath()
-
setFormContainerPath
public JSONCreationOptions setFormContainerPath(java.lang.String formContainerPath)
-
getData
public java.lang.String getData()
-
setData
public JSONCreationOptions setData(java.lang.String data)
-
getRulesScriptsScope
public Scriptable getRulesScriptsScope()
get the rhino scope initialized with objects required to generate scripts from rules- Returns:
-
setRulesScriptsScope
public JSONCreationOptions setRulesScriptsScope(Scriptable rulesScriptsScope)
Set scope initialized with objects required to generate scripts from rules- Parameters:
rulesScriptsScope-- Returns:
-
getExpTreeJsonMap
public java.util.Map<java.lang.String,java.lang.String> getExpTreeJsonMap()
Gets the expression editor tree json this is required to initialize expression editor scope/context before generating scripts- Returns:
-
setExpTreeJsonMap
public JSONCreationOptions setExpTreeJsonMap(java.util.Map<java.lang.String,java.lang.String> treeJsonMap)
Set the expression editor tree json this is require to initialize expression editor scope/context before generating scripts- Parameters:
treeJsonMap-- Returns:
-
getSignerResource
public SignerResource getSignerResource()
Gets the guideContainer signer information in form of SignerResource- Returns:
- SignerResource
-
getAdobeSignFieldNameIndex
public java.lang.Integer getAdobeSignFieldNameIndex(java.lang.String name)
Gets the index in case adobe sign field has a duplicate name.- Parameters:
name-- Returns:
- index, in case there is repetition in name
-
getSOMIndex
public java.lang.Integer getSOMIndex(java.lang.String som)
-
getPrefillServiceParams
public java.util.Map getPrefillServiceParams()
-
setPrefillServiceParams
public void setPrefillServiceParams(java.util.Map prefillServiceParams)
-
getRequest
public SlingHttpServletRequest getRequest()
-
setRequest
public void setRequest(SlingHttpServletRequest request)
-
getWebVariableAssignments
public java.util.Map<java.lang.String,java.lang.String> getWebVariableAssignments()
-
setWebVariableAssignments
public void setWebVariableAssignments(java.util.Map<java.lang.String,java.lang.String> webVariableAssignments)
-
-