|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.registration.RegistrationManager
public class RegistrationManager
Description:
| Field Summary | |
|---|---|
static java.lang.String |
EMAIL_CHANGE
|
| Method Summary | |
|---|---|
Identity |
createNewUserAndIdentityFromTemporaryKey(java.lang.String login,
java.lang.String pwd,
User myUser,
TemporaryKeyImpl tk)
creates a new user and identity with the data of the temporary key (email) and other supplied user data (within myUser) |
TemporaryKeyImpl |
createTemporaryKeyByEmail(java.lang.String email,
java.lang.String ip,
java.lang.String action)
A temporary key is created |
void |
deleteTemporaryKey(TemporaryKeyImpl key)
deletes a TemporaryKey |
void |
deleteTemporaryKeyWithId(java.lang.String keyValue)
Delete a temporary key. |
java.util.List<Identity> |
getIdentitiesWithConfirmedDisclaimer()
Get a list of all users that did already confirm the disclaimer |
static RegistrationManager |
getInstance()
|
java.util.List<TemporaryKey> |
loadTemporaryKeyByAction(java.lang.String action)
returns an existing list of TemporaryKey by a given action or null if none found |
TemporaryKeyImpl |
loadTemporaryKeyByEmail(java.lang.String email)
returns an existing TemporaryKey by a given email address or null if none found |
TemporaryKeyImpl |
loadTemporaryKeyByRegistrationKey(java.lang.String regkey)
Looks for a TemporaryKey by a given registrationkey |
boolean |
needsToConfirmDisclaimer(Identity identity)
Evaluates whether the given identity needs to accept a disclaimer before logging in or not. |
TemporaryKeyImpl |
register(java.lang.String emailaddress,
java.lang.String ipaddress,
java.lang.String action)
Creates a TemporaryKey and saves it permanently |
void |
revokeAllconfirmedDisclaimers()
Remove all disclaimer confirmations. |
void |
revokeConfirmedDisclaimer(Identity identity)
Remove the disclaimer confirmation for the specified identity. |
void |
sendNewUserNotificationMessage(java.lang.String notificationMailAddress,
Identity newIdentity)
Send a notification messaged to the given notification email address about the registratoin of the given new identity. |
void |
setHasConfirmedDislaimer(Identity identity)
Marks the given identity to have confirmed the disclaimer. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EMAIL_CHANGE
| Method Detail |
|---|
public static RegistrationManager getInstance()
public Identity createNewUserAndIdentityFromTemporaryKey(java.lang.String login,
java.lang.String pwd,
User myUser,
TemporaryKeyImpl tk)
login - Login namepwd - PasswordmyUser - Not yet persisted user objecttk - Temporary key
public void sendNewUserNotificationMessage(java.lang.String notificationMailAddress,
Identity newIdentity)
notificationMailAddress - Email address who should be notified. MUST NOT BE NULLnewIdentity - The newly registered Identity
public TemporaryKeyImpl createTemporaryKeyByEmail(java.lang.String email,
java.lang.String ip,
java.lang.String action)
email - address of new userip - address of new useraction - REGISTRATION or PWCHANGE
public void deleteTemporaryKey(TemporaryKeyImpl key)
key - the temporary key to be deletedpublic TemporaryKeyImpl loadTemporaryKeyByEmail(java.lang.String email)
email -
public java.util.List<TemporaryKey> loadTemporaryKeyByAction(java.lang.String action)
action -
public TemporaryKeyImpl loadTemporaryKeyByRegistrationKey(java.lang.String regkey)
regkey - the encrypted registrationkey
public TemporaryKeyImpl register(java.lang.String emailaddress,
java.lang.String ipaddress,
java.lang.String action)
emailaddress - ipaddress - action - REGISTRATION or PWCHANGE
public void deleteTemporaryKeyWithId(java.lang.String keyValue)
keyValue - public boolean needsToConfirmDisclaimer(Identity identity)
identity -
public void setHasConfirmedDislaimer(Identity identity)
identity - public void revokeAllconfirmedDisclaimers()
public void revokeConfirmedDisclaimer(Identity identity)
identity - public java.util.List<Identity> getIdentitiesWithConfirmedDisclaimer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||