public class SendEmailAction extends Object implements org.apache.sling.event.jobs.consumer.JobConsumer, FormAction
Modifier and Type | Field and Description |
---|---|
static String |
FROM |
static String |
MESSAGE |
static String |
SUBJECT |
static String |
TO |
static String |
TOPIC |
Constructor and Description |
---|
SendEmailAction() |
Modifier and Type | Method and Description |
---|---|
void |
activate(SendEmailActonConfig config) |
FormActionResult |
handleForm(org.apache.sling.api.resource.Resource actionResource,
FormRequest request)
Handle a form submission.
|
boolean |
handles(org.apache.sling.api.resource.Resource actionResource)
Checks if the the Form Action should handle the specified request and action
|
org.apache.sling.event.jobs.consumer.JobConsumer.JobResult |
process(org.apache.sling.event.jobs.Job job) |
public static final String FROM
public static final String MESSAGE
public static final String SUBJECT
public static final String TO
public static final String TOPIC
public void activate(SendEmailActonConfig config)
public FormActionResult handleForm(org.apache.sling.api.resource.Resource actionResource, FormRequest request) throws FormException
FormAction
handleForm
in interface FormAction
actionResource
- the configuration to use to configure the form actionrequest
- the form request to handleFormException
- an exception occurs handling the formpublic boolean handles(org.apache.sling.api.resource.Resource actionResource)
FormAction
handles
in interface FormAction
actionResource
- the resource to checkpublic org.apache.sling.event.jobs.consumer.JobConsumer.JobResult process(org.apache.sling.event.jobs.Job job)
process
in interface org.apache.sling.event.jobs.consumer.JobConsumer
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.