Package org.apache.wiki.auth
Class AccountLifecycleMailer
java.lang.Object
org.apache.wiki.auth.AccountLifecycleMailer
- All Implemented Interfaces:
AccountLifecycle.Notifier
Tells the owners of the accounts by e-mail what
AccountLifecycle does to them. The texts are the
notification.credentials.* ones of the templates bundle. Nobody is told who has no e-mail address.- Since:
- 3.0.1
-
Constructor Summary
ConstructorsConstructorDescriptionAccountLifecycleMailer(org.apache.wiki.api.core.Engine engine) Creates a mailer that sends the messages with the mail settings of the wiki, in the language of the server. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccountDeleted(UserProfile profile) Tells the owner that the account has been deleted.voidaccountLocked(UserProfile profile, Date deleted) Tells the owner that the account has been locked.voidpasswordWillExpire(UserProfile profile, Date expires) Tells the owner that the password is going to expire.
-
Constructor Details
-
AccountLifecycleMailer
Creates a mailer that sends the messages with the mail settings of the wiki, in the language of the server.- Parameters:
engine- the wiki engine
-
-
Method Details
-
passwordWillExpire
Tells the owner that the password is going to expire. If this throws, the owner is told again at the next pass.- Specified by:
passwordWillExpirein interfaceAccountLifecycle.Notifier- Parameters:
profile- the profile of the accountexpires- the day the password expires
-
accountLocked
Tells the owner that the account has been locked.- Specified by:
accountLockedin interfaceAccountLifecycle.Notifier- Parameters:
profile- the profile of the accountdeleted- the day the account is deleted, ornullif it is not
-
accountDeleted
Tells the owner that the account has been deleted.- Specified by:
accountDeletedin interfaceAccountLifecycle.Notifier- Parameters:
profile- the profile of the account that has been deleted
-