Interface CreateUser
- All Known Implementing Classes:
CreateUserServlet
public interface CreateUser
The
CreateUser
service api.
This interface is not intended to be implemented by bundles. It is implemented by this bundle and may be used by client bundles.
- Since:
- 2.2.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jackrabbit.api.security.user.User
createUser
(javax.jcr.Session jcrSession, String name, String password, String passwordConfirm, Map<String, ?> properties, List<Modification> changes) Create a new user for the repositorydefault org.apache.jackrabbit.api.security.user.User
createUser
(javax.jcr.Session jcrSession, String password, String passwordConfirm, Map<String, ?> properties, List<Modification> changes) Create a new user for the repository.
-
Method Details
-
createUser
org.apache.jackrabbit.api.security.user.User createUser(javax.jcr.Session jcrSession, String name, String password, String passwordConfirm, Map<String, ?> properties, List<Modification> changes) throws javax.jcr.RepositoryExceptionCreate a new user for the repository- Parameters:
jcrSession
- the JCR session of the user creating the username
- The name of the new user. If null or empty, the name is calculated from the supplied properties (per SLING-10902).password
- The password of the new user (required)passwordConfirm
- The password of the new user again (required)properties
- Extra properties to update on the user. The entry values should be either a String or String[] (optional)changes
- The list of changes for this operation (optional)- Returns:
- the user that was created
- Throws:
javax.jcr.RepositoryException
- if user can't be created
-
createUser
default org.apache.jackrabbit.api.security.user.User createUser(javax.jcr.Session jcrSession, String password, String passwordConfirm, Map<String, ?> properties, List<Modification> changes) throws javax.jcr.RepositoryExceptionCreate a new user for the repository. The name is calculated from the supplied properties (per SLING-10902).- Parameters:
jcrSession
- the JCR session of the user creating the userpassword
- The password of the new user (required)passwordConfirm
- The password of the new user again (required)properties
- Extra properties to update on the user. The entry values should be either a String or String[] (optional)changes
- The list of changes for this operation (optional)- Returns:
- the user that was created
- Throws:
javax.jcr.RepositoryException
- if user can't be created
-