|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUserHome
public final class MyluteceDirectoryUserHome
This class provides instances management methods (create, find, ...) for MyluteceDirectoryUser objects
| Method Summary | |
|---|---|
static boolean |
checkActivated(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if user is activated |
static boolean |
checkPassword(String strLogin,
String strPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check the password for a DirectoryUser |
static int |
countUserPasswordHistoryFromDate(Timestamp minDate,
int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number of password change done by a user since the given date. |
static MyluteceDirectoryUser |
create(MyluteceDirectoryUser directoryUser,
String strPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of directoryUser |
static List<Integer> |
findAllExpiredUserId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of user with the expired status. |
static MyluteceDirectoryUser |
findByPrimaryKey(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a DirectoryUser whose identifier is specified in parameter |
static Collection<MyluteceDirectoryUser> |
findDirectoryUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of DirectoryUser objects |
static Collection<MyluteceDirectoryUser> |
findDirectoryUsersListForAttributeValue(String strAttributeKeys,
String strAttributeValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
Returns a collection of DirectoryUser objects for a LuteceUser Attribute |
static Collection<MyluteceDirectoryUser> |
findDirectoryUsersListForEmail(String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
Returns a collection of DirectoryUser objects for an email |
static Collection<MyluteceDirectoryUser> |
findDirectoryUsersListForLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of DirectoryUser objects for a login |
static int |
findIdRecordFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a user id from his login |
static String |
findPasswordByPrimaryKey(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the password of the specified user |
static List<String> |
getEmails(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
Get the list of emails given an ID record |
static List<Integer> |
getIdUsersToSendFirstAlert(Timestamp firstAlertMaxDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of users that need to receive their first alert |
static List<Integer> |
getIdUsersToSendOtherAlert(Timestamp alertMaxDate,
Timestamp timeBetweenAlerts,
int maxNumberAlerts,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of users that need to receive their first alert |
static List<Integer> |
getIdUsersWithExpiredLifeTimeList(Timestamp currentTimestamp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of users that have an expired time life but not the expired status |
static List<Integer> |
getIdUsersWithExpiredPasswordsList(Timestamp currentTimestamp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of users that have an expired password but not the change password flag |
static int |
getNbAccountLifeTimeNotification(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number of notification send to a user to warn him about the expiration of his account |
static void |
insertNewPasswordInHistory(String strPassword,
int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Log a password change in the password history |
static void |
remove(MyluteceDirectoryUser directoryUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the directoryUser whose identifier is specified in parameter |
static void |
removeAllPasswordHistoryForUser(int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove every password saved in the password history for a user. |
static List<String> |
selectUserPasswordHistory(int nUserID,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets the history of password of the given user |
static MyluteceDirectoryUser |
update(MyluteceDirectoryUser directoryUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the directoryUser which is specified in parameter |
static void |
updateChangePassword(List<Integer> idUserList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Set the "change password" flag of users to true |
static void |
updateNbAlert(List<Integer> listIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Increment the number of alert send to users by 1 |
static MyluteceDirectoryUser |
updatePassword(MyluteceDirectoryUser directoryUser,
String strNewPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the directoryUser which is specified in parameter |
static MyluteceDirectoryUser |
updateResetPassword(MyluteceDirectoryUser user,
boolean bNewValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the databaseUser which is specified in parameter |
static void |
updateUserExpirationDate(int nIdUser,
Timestamp newExpirationDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the user expiration date with the new values. |
static void |
updateUserLastLoginDate(String strLogin,
Date dateLastLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a user last login date |
static void |
updateUserStatus(List<Integer> listIdUser,
int nNewStatus,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update status of a list of user accounts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MyluteceDirectoryUser create(MyluteceDirectoryUser directoryUser,
String strPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
directoryUser - The instance of the DirectoryUser which contains the informations to storestrPassword - The user's passwordplugin - The current plugin using this method
public static MyluteceDirectoryUser update(MyluteceDirectoryUser directoryUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
directoryUser - The instance of the DirectoryUser which contains the data to storeplugin - The current plugin using this method
public static MyluteceDirectoryUser updatePassword(MyluteceDirectoryUser directoryUser,
String strNewPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
directoryUser - The instance of the DirectoryUser which contains the data to storestrNewPassword - The new password to storeplugin - The current plugin using this method
public static MyluteceDirectoryUser updateResetPassword(MyluteceDirectoryUser user,
boolean bNewValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
databaseUser - The instance of the DatabaseUser which contains the data to storebNewValue - New value of the reset password propertyplugin - The current plugin using this method
public static void remove(MyluteceDirectoryUser directoryUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
directoryUser - The DirectoryUser object to removeplugin - The current plugin using this method
public static MyluteceDirectoryUser findByPrimaryKey(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdRecord - The identifier of Userplugin - The current plugin using this method
public static Collection<MyluteceDirectoryUser> findDirectoryUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The current plugin using this method
public static Collection<MyluteceDirectoryUser> findDirectoryUsersListForLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - The login of the databseUserplugin - The current plugin using this method
public static Collection<MyluteceDirectoryUser> findDirectoryUsersListForAttributeValue(String strAttributeKeys,
String strAttributeValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
strAttributeKeys - The attribute keys list of the DirectoryUser (comma separated)strAttributeValue - The attribute value of the DirectoryUserplugin - The current plugin using this methodlocale - The locale
public static Collection<MyluteceDirectoryUser> findDirectoryUsersListForEmail(String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
strEmail - The email of the DirectoryUserplugin - The current plugin using this methodlocale - The locale
public static String findPasswordByPrimaryKey(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdRecord - The Primary key of the directoryUserplugin - The current plugin using this method
public static boolean checkPassword(String strLogin,
String strPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - The user login of DirectoryUserstrPassword - The password of DirectoryUserplugin - The Plugin using this data access service
public static boolean checkActivated(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - The user login of DirectoryUserplugin - The Plugin using this data access service
public static List<String> getEmails(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
nIdRecord - the ID recordplugin - Pluginlocale - the locale
public static int findIdRecordFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - The login of the userplugin - The plugin
public static List<String> selectUserPasswordHistory(int nUserID,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nUserID - Id of the userplugin - The plugin
public static int countUserPasswordHistoryFromDate(Timestamp minDate,
int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
minDate - Minimum date to consider.nUserId - Id of the userplugin - The plugin
public static void insertNewPasswordInHistory(String strPassword,
int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strPassword - New password of the usernUserId - Id of the userplugin - The plugin
public static void removeAllPasswordHistoryForUser(int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nUserId - Id of the userplugin - The pluginpublic static List<Integer> findAllExpiredUserId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The plugin
public static List<Integer> getIdUsersWithExpiredLifeTimeList(Timestamp currentTimestamp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
currentTimestamp - Timestamp describing the current time.plugin - The plugin
public static List<Integer> getIdUsersToSendFirstAlert(Timestamp firstAlertMaxDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
firstAlertMaxDate - The maximum expiration date to send first alert.plugin - The plugin
public static List<Integer> getIdUsersToSendOtherAlert(Timestamp alertMaxDate,
Timestamp timeBetweenAlerts,
int maxNumberAlerts,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
alertMaxDate - The maximum date to send alerts.timeBetweenAlerts - Timestamp describing the time between two alerts.maxNumberAlerts - Maximum number of alerts to send to a userplugin - The plugin
public static List<Integer> getIdUsersWithExpiredPasswordsList(Timestamp currentTimestamp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
currentTimestamp - Timestamp describing the current time.plugin - The plugin
public static void updateUserStatus(List<Integer> listIdUser,
int nNewStatus,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
listIdUser - List of user accounts to updatenNewStatus - New status of the userplugin - The plugin
public static void updateNbAlert(List<Integer> listIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
listIdUser - The list of users to updateplugin - The plugin
public static void updateChangePassword(List<Integer> idUserList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUserList - The list of users to updateplugin - The plugin
public static void updateUserExpirationDate(int nIdUser,
Timestamp newExpirationDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser - Id of the user to updateplugin - The pluginnewExpirationDate - Id of the user to update
public static int getNbAccountLifeTimeNotification(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser - Id of the userplugin - The plugin
public static void updateUserLastLoginDate(String strLogin,
Date dateLastLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - Login of the user to updatedateLastLogin - date of the last login of the userplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||