public interface AccountManager
Modifier and Type | Method and Description |
---|---|
User |
createAccount(String uid,
String pwd,
String group,
Map<String,RequestParameter[]> properties)
Convenience to create a new
User together
with setting properties in one method call. |
User |
findAccount(String fragment) |
User |
getOrCreateAccount(String id,
String pwd,
String group,
Map<String,RequestParameter[]> properties)
Convenenience to either search and update an existing account or create it
|
boolean |
requestAccount(String email,
URL requestUrl)
Request for creating a new account.
|
boolean |
requestPasswordReset(User user,
URL requestUrl)
Request a password rest.
|
String |
resetPassword(User user)
Reset the Password of the Account to a randomly generated
|
String |
resetPassword(User user,
String key)
Reset the Password of the Account to a randomly generated, requires a key
in order to verify, that the reset has been requested by the key owner.
|
boolean |
sendMail(User user,
String from,
String subject,
String body,
Map<String,String> replace)
Simple utility to send a mail to a given user account.
|
boolean |
setPassword(User user,
String key,
String pwd)
Set the Password of the Account to a given password.
|
void |
updateAccount(User user,
Map<String,RequestParameter[]> properties)
Convenience update an Account with a set of properties
with setting properties in one method call.
|
User findAccount(String fragment)
fragment
- of the id / namenull
if no User is related to the fragmentUser createAccount(String uid, String pwd, String group, Map<String,RequestParameter[]> properties) throws AccessDeniedException, RepositoryException
User
together
with setting properties in one method call.
Where the keys are the propertie names and the value theuid
- to create account forpwd
- to set on the new user accountgroup
- to assign membership to the new groupproperties
- to setnull
if no User is related to the fragmentjavax.jcr.RepositoryException
- in case of error creating the userjavax.jcr.AccessDeniedException
- in case of missing privileges to create accountsAccessDeniedException
RepositoryException
UserManager.createUser(String, String, String, String)
void updateAccount(User user, Map<String,RequestParameter[]> properties) throws RepositoryException
user
- to updateproperties
- to setRepositoryException
- in case of error updateing the accountUser getOrCreateAccount(String id, String pwd, String group, Map<String,RequestParameter[]> properties) throws AccessDeniedException, RepositoryException
id
- of the account to update or to use for creationpwd
- in case the acoount should be createdgroup
- to assign to a newly created userproperties
- to set to the userjavax.jcr.RepositoryException
- in case of error creating the userjavax.jcr.AccessDeniedException
- in case of missing privileges to create accountsAccessDeniedException
RepositoryException
findAccount(String)
,
createAccount(String, String, String, Map)
,
updateAccount(User, Map)
String resetPassword(User user) throws AccessDeniedException, RepositoryException
user
- to reset the password forjavax.jcr.RepositoryException
- in case of error creating the userjavax.jcr.AccessDeniedException
- in case of missing privileges to create accountsAccessDeniedException
RepositoryException
String resetPassword(User user, String key) throws AccessDeniedException, RepositoryException
requestPasswordReset(User, URL)
user
- to reset the password forkey
- required to reset the passwordjavax.jcr.RepositoryException
- in case of error creating the userjavax.jcr.AccessDeniedException
- in case of missing privileges to create accountsAccessDeniedException
RepositoryException
requestPasswordReset(User, URL)
boolean setPassword(User user, String key, String pwd) throws AccessDeniedException, RepositoryException
requestPasswordReset(User, URL)
user
- to reset the password forkey
- required to set the passwordpwd
- new passwordjavax.jcr.RepositoryException
- in case of error creating the userjavax.jcr.AccessDeniedException
- in case of missing privileges to create accountsAccessDeniedException
RepositoryException
requestPasswordReset(User, URL)
boolean requestPasswordReset(User user, URL requestUrl) throws RepositoryException
value
.user
- to reset the password forrequestUrl
- the url called to request the resetjavax.jcr.RepositoryException
- in case of error creating the userjavax.jcr.AccessDeniedException
- in case of missing privileges to create accountsRepositoryException
resetPassword(User, String)
boolean requestAccount(String email, URL requestUrl) throws RepositoryException
email
- email address of requesterrequestUrl
- the url called to request the resetRepositoryException
boolean sendMail(User user, String from, String subject, String body, Map<String,String> replace) throws RepositoryException
user
- to receive the mailfrom
- the from e-mail addresssubject
- of the mail to sendbody
- of the mail to sendreplace
- map of replacements for variables, with variable name as key
and value as valueRepositoryException
- in case of error accessing the repository"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"