Interface Operation
-
- All Known Implementing Classes:
AbstractOperation
@ProviderType public interface Operation
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_CMDstatic StringPROP_DESCRIPTION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccepts(org.apache.sling.api.SlingHttpServletRequest slingRequest, Command cmd)Checks if the Operation should handle the Command/Request.StringgetCmd()Returns the command operation this Operation is registered for.Collection<Result>getResults(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, Command cmd)Returns a list of Results.
-
-
-
Field Detail
-
PROP_CMD
static final String PROP_CMD
- See Also:
- Constant Field Values
-
PROP_DESCRIPTION
static final String PROP_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
accepts
boolean accepts(org.apache.sling.api.SlingHttpServletRequest slingRequest, Command cmd)Checks if the Operation should handle the Command/Request.- Parameters:
slingRequest- the Request objectcmd- the Command- Returns:
- true is the Operation handles the Command
-
getResults
Collection<Result> getResults(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, Command cmd)
Returns a list of Results.- Parameters:
request- the Request objectresponse- the Response objectcmd- the Command- Returns:
- list of Results
- Throws:
JSONException
-
getCmd
String getCmd()
Returns the command operation this Operation is registered for.- Returns:
- the command operation
-
-