Class SendEmailAction
java.lang.Object
org.apache.sling.cms.reference.forms.impl.actions.SendEmailAction
- All Implemented Interfaces:
FormAction
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSendEmailAction(org.apache.sling.commons.messaging.mail.MailService mailService) -
Method Summary
Modifier and TypeMethodDescriptionhandleForm(org.apache.sling.api.resource.Resource actionResource, FormRequest request) Handle a form submission.booleanhandles(org.apache.sling.api.resource.Resource actionResource) Checks if the the Form Action should handle the specified request and action
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
FROM
- See Also:
-
MESSAGE
- See Also:
-
SUBJECT
- See Also:
-
TO
- See Also:
-
-
Constructor Details
-
SendEmailAction
public SendEmailAction(org.apache.sling.commons.messaging.mail.MailService mailService)
-
-
Method Details
-
handleForm
public FormActionResult handleForm(org.apache.sling.api.resource.Resource actionResource, FormRequest request) throws FormException Description copied from interface:FormActionHandle a form submission. The form can be assumed to have been validated.- Specified by:
handleFormin interfaceFormAction- Parameters:
actionResource- the configuration to use to configure the form actionrequest- the form request to handle- Returns:
- the result of the action
- Throws:
FormException- an exception occurs handling the form
-
handles
public boolean handles(org.apache.sling.api.resource.Resource actionResource) Description copied from interface:FormActionChecks if the the Form Action should handle the specified request and action- Specified by:
handlesin interfaceFormAction- Parameters:
actionResource- the resource to check- Returns:
- true if this FormAction should handle the configuration, false otherwise
-