public interface AccountManager
Modifier and Type | Method and Description |
---|---|
User |
createAccount(String uid,
String pwd,
String group,
Map<String,RequestParameter[]> properties)
Deprecated.
Convenience to create a new
User together
with setting properties in one method call. |
User |
findAccount(String fragment)
Deprecated.
|
User |
getOrCreateAccount(String id,
String pwd,
String group,
Map<String,RequestParameter[]> properties)
Deprecated.
Convenience to either search and update an existing account or create it
|
boolean |
requestAccount(String email,
URL requestUrl)
Deprecated.
Request for creating a new account.
|
boolean |
requestPasswordReset(User user,
URL requestUrl)
Deprecated.
Request a password rest.
|
String |
resetPassword(User user)
Deprecated.
Reset the Password of the Account to a randomly generated
|
String |
resetPassword(User user,
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,
String from,
String subject,
String body,
Map<String,String> replace)
Deprecated.
Simple utility to send a mail to a given user account.
|
boolean |
setPassword(User user,
String key,
String pwd)
Deprecated.
Set the Password of the Account to a given password.
|
void |
updateAccount(User user,
Map<String,RequestParameter[]> properties)
Deprecated.
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 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, Map<String,RequestParameter[]> properties) throws RepositoryException
user
- to updateproperties
- to setRepositoryException
- in case of error updating 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 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)
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 accountsString resetPassword(User user, 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, String key, 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, 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(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 repositoryCopyright © 2010 - 2020 Adobe. All Rights Reserved