Interface Operation

  • All Known Implementing Classes:
    AbstractOperation

    @ProviderType
    public interface Operation
    • 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 object
        cmd - 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 object
        response - the Response object
        cmd - the Command
        Returns:
        list of Results
        Throws:
        JSONException
      • getCmd

        String getCmd()
        Returns the command operation this Operation is registered for.
        Returns:
        the command operation