Package com.avoka.fc.core.service
Class UserPasswordExpiryService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.UserPasswordExpiryService
Provides methods around user password expiry.
- Since:
- 24.10.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Checks and sends the password expiry reminder email to users before password expiry based on PASSWORD_EXPIRY_REMINDER days parameter of security manager.int
Checks and sets the changePasswordAfterLogin flag for users who have not changed their passwords since (PASSWORD_EXPIRY_PARAMETER) days parameter of the SecurityManager.Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Constructor Details
-
UserPasswordExpiryService
public UserPasswordExpiryService()
-
-
Method Details
-
checkAndSetPasswordExpiry
public int checkAndSetPasswordExpiry()Checks and sets the changePasswordAfterLogin flag for users who have not changed their passwords since (PASSWORD_EXPIRY_PARAMETER) days parameter of the SecurityManager.- Returns:
- the number of user accounts for which changePasswordAfterLogin has been set to true
-
checkAndSendPasswordExpiryNotificationEmail
public int checkAndSendPasswordExpiryNotificationEmail()Checks and sends the password expiry reminder email to users before password expiry based on PASSWORD_EXPIRY_REMINDER days parameter of security manager.- Returns:
- the number of emails queued to be sent for users
-