Class CreateUserAction
- java.lang.Object
-
- org.apache.sling.cms.reference.forms.impl.actions.CreateUserAction
-
- All Implemented Interfaces:
FormAction
public class CreateUserAction extends Object implements FormAction
-
-
Field Summary
Fields Modifier and Type Field Description static String
GROUPS
static String
PN_INTERMEDIATE_PATH
static String
PN_USERNAME
static String
PROFILE_PROPERTIES
static String
RESOURCE_TYPE
-
Constructor Summary
Constructors Constructor Description CreateUserAction(org.apache.sling.api.resource.ResourceResolverFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
PROFILE_PROPERTIES
public static final String PROFILE_PROPERTIES
- See Also:
- Constant Field Values
-
GROUPS
public static final String GROUPS
- See Also:
- Constant Field Values
-
PN_USERNAME
public static final String PN_USERNAME
- See Also:
- Constant Field Values
-
PN_INTERMEDIATE_PATH
public static final String PN_INTERMEDIATE_PATH
- 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:FormAction
Handle a form submission. The form can be assumed to have been validated.- Specified by:
handleForm
in 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:FormAction
Checks if the the Form Action should handle the specified request and action- Specified by:
handles
in interfaceFormAction
- Parameters:
actionResource
- the resource to check- Returns:
- true if this FormAction should handle the configuration, false otherwise
-
-