public class Query extends Object
Constructor and Description |
---|
Query(String formDataModelPath,
DataContext dataContext)
Create Query using form data model path and data context
|
Query(String formDataModelPath,
DataContext dataContext,
OperationOptions options)
Create Query using form data model path, data context and operation arguments
|
Modifier and Type | Method and Description |
---|---|
org.apache.sling.commons.json.JSONObject |
getArguments()
Deprecated.
Use
getArgumentsValueMap() instead |
IValueMap |
getArgumentsValueMap()
Get arguments representing the input of the operation as IValueMap
|
DataContext |
getDataContext()
Gets
DataContext represents a pluggable mechanism for resolving a operation arguments at evaluation time. |
String |
getFormDataModelPath()
Get FormDataModel unique identifier
|
OperationOptions |
getOptions()
Get
OperationOptions which provide additional option of query |
boolean |
getOutputTypeArray()
Tells whether return type of this operation is an array or not
|
boolean |
isEvaluateComputedAttrs() |
void |
setArguments(org.apache.sling.commons.json.JSONObject arguments)
Deprecated.
Use
setArgumentsValueMap(IValueMap) instead |
void |
setArgumentsValueMap(IValueMap arguments)
Set operation arguments, accepts an IValueMap for arguments
Input arguments can be given either as a JSONObject or as IValueMap - these two formats are mutually exclusive.
|
void |
setDataContext(DataContext dataContext)
Sets the dataContext which will be used for resolving a operation arguments at evaluation time.
|
void |
setEvaluateComputedAttrs(boolean evaluateComputedAttrs) |
void |
setFormDataModelPath(String formDataModelPath)
Sets the formDataModel unique identifier.
|
void |
setOptions(OperationOptions options)
Set
OperationOptions in query |
void |
setOutputTypeArray(boolean isOutputTypeArray)
Sets whether return type of this operation is an array or not
|
public Query(String formDataModelPath, DataContext dataContext)
formDataModelPath
- dataContext
- public Query(String formDataModelPath, DataContext dataContext, OperationOptions options)
formDataModelPath
- dataContext
- options
- public DataContext getDataContext()
DataContext
represents a pluggable mechanism for resolving a operation arguments at evaluation time.DataContext
public void setDataContext(DataContext dataContext)
dataContext
- DataContext
public String getFormDataModelPath()
public void setFormDataModelPath(String formDataModelPath)
formDataModelPath
- - unique identifier of FormDataModelpublic OperationOptions getOptions()
OperationOptions
which provide additional option of queryOperationOptions
public void setOptions(OperationOptions options)
OperationOptions
in queryoptions
- OperationOptions
@Deprecated public void setArguments(org.apache.sling.commons.json.JSONObject arguments)
setArgumentsValueMap(IValueMap)
insteadarguments
- public void setArgumentsValueMap(IValueMap arguments)
arguments
- @Deprecated public org.apache.sling.commons.json.JSONObject getArguments()
getArgumentsValueMap()
insteadJSONObject
formatpublic IValueMap getArgumentsValueMap()
IValueMap
formatpublic boolean getOutputTypeArray()
public void setOutputTypeArray(boolean isOutputTypeArray)
public boolean isEvaluateComputedAttrs()
public void setEvaluateComputedAttrs(boolean evaluateComputedAttrs)
Copyright © 1982–2022 Adobe Systems Inc.. All rights reserved.