Class SendEmailAction
- java.lang.Object
-
- org.apache.sling.cms.reference.forms.impl.actions.SendEmailAction
-
- All Implemented Interfaces:
FormAction
public class SendEmailAction extends Object implements FormAction
-
-
Constructor Summary
Constructors Constructor Description SendEmailAction(org.apache.sling.commons.messaging.mail.MailService mailService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormActionResulthandleForm(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 Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
FROM
public static final String FROM
- See Also:
- Constant Field Values
-
MESSAGE
public static final String MESSAGE
- See Also:
- Constant Field Values
-
SUBJECT
public static final String SUBJECT
- See Also:
- Constant Field Values
-
TO
public static final String TO
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-