Class UpdateUserGeneratedContentAction
java.lang.Object
org.apache.sling.cms.reference.forms.impl.actions.UpdateUserGeneratedContentAction
- All Implemented Interfaces:
FormAction
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateUserGeneratedContentAction(org.apache.sling.api.resource.ResourceResolverFactory factory) -
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
-
Constructor Details
-
UpdateUserGeneratedContentAction
public UpdateUserGeneratedContentAction(org.apache.sling.api.resource.ResourceResolverFactory factory)
-
-
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
-