Class AbstractOperation
- java.lang.Object
-
- com.adobe.acs.commons.quickly.operations.AbstractOperation
-
-
Field Summary
-
Fields inherited from interface com.adobe.acs.commons.quickly.operations.Operation
PROP_CMD, PROP_DESCRIPTION
-
-
Constructor Summary
Constructors Constructor Description AbstractOperation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Collection<Result>getResults(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, Command cmd)Gets results of the operation.protected abstract List<Result>withoutParams(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, Command cmd)Returns a list of results for a Command without params.protected abstract List<Result>withParams(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, Command cmd)Returns a list of results for a Command with params.
-
-
-
Method Detail
-
getResults
public Collection<Result> getResults(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, Command cmd)
Gets results of the operation.- Specified by:
getResultsin interfaceOperation- Parameters:
request- the Request objectresponse- the Response objectcmd- the Command- Returns:
- a list of Results
- Throws:
JSONException
-
withoutParams
protected abstract List<Result> withoutParams(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, Command cmd)
Returns a list of results for a Command without params.- Parameters:
request- the Request objectresponse- the Response objectcmd- the Command object- Returns:
- the list of Results
-
withParams
protected abstract List<Result> withParams(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, Command cmd)
Returns a list of results for a Command with params.- Parameters:
request- the Request objectresponse- the Response objectcmd- the Command object- Returns:
- the list of Results
-
-