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>
adobeSignNameIndexMap
java.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.Integer
getAdobeSignFieldNameIndex(java.lang.String name)
Gets the index in case adobe sign field has a duplicate name.java.util.Map
getBindRefToAFNameMap()
boolean
getContextNeeded()
java.lang.String
getData()
java.lang.String
getDataRef()
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.String
getFormContainerPath()
Resource
getFormResource()
java.lang.String
getFormResourceProperty(java.lang.String propertyName)
I18n
getI18n()
java.util.Locale
getLocale()
java.lang.String
getPagePath()
java.util.Map
getPrefillServiceParams()
SlingHttpServletRequest
getRequest()
Scriptable
getRulesScriptsScope()
get the rhino scope initialized with objects required to generate scripts from rulesSignerResource
getSignerResource()
Gets the guideContainer signer information in form of SignerResourcejava.lang.Integer
getSOMIndex(java.lang.String som)
ResourcePropertyTransformer
getTransformer()
java.util.Map<java.lang.String,java.lang.String>
getWebVariableAssignments()
boolean
isIncludeFragmentJson()
boolean
isIncludeJcrPath()
boolean
isV2Form()
void
setBindRefToAFNameMap(java.util.Map bindRefToAFNameMap)
JSONCreationOptions
setData(java.lang.String data)
JSONCreationOptions
setDataRef(java.lang.String dataRef)
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 scriptsJSONCreationOptions
setFormContainerPath(java.lang.String formContainerPath)
void
setFormResource(Resource formResource)
JSONCreationOptions
setI18n(I18n i18n)
void
setIncludeFragmentJson(boolean includeFragmentJson)
void
setLocale(java.util.Locale locale)
JSONCreationOptions
setPagePath(java.lang.String pagePath)
void
setPrefillServiceParams(java.util.Map prefillServiceParams)
void
setRequest(SlingHttpServletRequest request)
JSONCreationOptions
setRulesScriptsScope(Scriptable rulesScriptsScope)
Set scope initialized with objects required to generate scripts from rulesvoid
setTransformer(ResourcePropertyTransformer transformer)
void
setV2Form(boolean isV2Form)
void
setWebVariableAssignments(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)
-
-