public interface AccountManager
| Modifier and Type | Method and Description |
|---|---|
User |
createAccount(java.lang.String uid,
java.lang.String pwd,
java.lang.String group,
java.util.Map<java.lang.String,RequestParameter[]> properties)
Deprecated.
Convenience to create a new
User together
with setting properties in one method call. |
User |
findAccount(java.lang.String fragment)
Deprecated.
|
User |
getOrCreateAccount(java.lang.String id,
java.lang.String pwd,
java.lang.String group,
java.util.Map<java.lang.String,RequestParameter[]> properties)
Deprecated.
Convenience to either search and update an existing account or create it
|
boolean |
requestAccount(java.lang.String email,
java.net.URL requestUrl)
Deprecated.
Request for creating a new account.
|
boolean |
requestPasswordReset(User user,
java.net.URL requestUrl)
Deprecated.
Request a password rest.
|
java.lang.String |
resetPassword(User user)
Deprecated.
Reset the Password of the Account to a randomly generated
|
java.lang.String |
resetPassword(User user,
java.lang.String key)
Deprecated.
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,
java.lang.String from,
java.lang.String subject,
java.lang.String body,
java.util.Map<java.lang.String,java.lang.String> replace)
Deprecated.
Simple utility to send a mail to a given user account.
|
boolean |
setPassword(User user,
java.lang.String key,
java.lang.String pwd)
Deprecated.
Set the Password of the Account to a given password.
|
void |
updateAccount(User user,
java.util.Map<java.lang.String,RequestParameter[]> properties)
Deprecated.
Convenience update an Account with a set of properties
with setting properties in one method call.
|
User findAccount(java.lang.String fragment)
fragment - of the id / namenull if no User is related to the fragmentUser createAccount(java.lang.String uid, java.lang.String pwd, java.lang.String group, java.util.Map<java.lang.String,RequestParameter[]> properties) throws AccessDeniedException, RepositoryException
User together
with setting properties in one method call.
Where the keys are the property 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 fragmentRepositoryException - in case of error creating the userAccessDeniedException - in case of missing privileges to create accountsUserManager.createUser(String, String, String, String)void updateAccount(User user, java.util.Map<java.lang.String,RequestParameter[]> properties) throws RepositoryException
user - to updateproperties - to setRepositoryException - in case of error updating the accountUser getOrCreateAccount(java.lang.String id, java.lang.String pwd, java.lang.String group, java.util.Map<java.lang.String,RequestParameter[]> properties) throws AccessDeniedException, RepositoryException
id - of the account to update or to use for creationpwd - in case the account should be createdgroup - to assign to a newly created userproperties - to set to the userRepositoryException - in case of error creating the userAccessDeniedException - in case of missing privileges to create accountsfindAccount(String),
createAccount(String, String, String, Map),
updateAccount(User, Map)java.lang.String resetPassword(User user) throws AccessDeniedException, RepositoryException
user - to reset the password forRepositoryException - in case of error creating the userAccessDeniedException - in case of missing privileges to create accountsjava.lang.String resetPassword(User user, java.lang.String key) throws AccessDeniedException, RepositoryException
requestPasswordReset(User, URL)user - to reset the password forkey - required to reset the passwordRepositoryException - in case of error creating the userAccessDeniedException - in case of missing privileges to create accountsrequestPasswordReset(User, URL)boolean setPassword(User user, java.lang.String key, java.lang.String pwd) throws AccessDeniedException, RepositoryException
requestPasswordReset(User, URL)user - to reset the password forkey - required to set the passwordpwd - new passwordRepositoryException - in case of error creating the userAccessDeniedException - in case of missing privileges to create accountsrequestPasswordReset(User, URL)boolean requestPasswordReset(User user, java.net.URL requestUrl) throws RepositoryException
value.user - to reset the password forrequestUrl - the url called to request the resetRepositoryException - in case of error creating the userAccessDeniedException - in case of missing privileges to create accountsresetPassword(User, String)boolean requestAccount(java.lang.String email,
java.net.URL requestUrl)
throws RepositoryException
email - email address of requesterrequestUrl - the url called to request the resetRepositoryExceptionboolean sendMail(User user, java.lang.String from, java.lang.String subject, java.lang.String body, java.util.Map<java.lang.String,java.lang.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 repositoryCopyright © 2010 - 2023 Adobe. All Rights Reserved