|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.admin.AdminUserService
public final class AdminUserService
This service provides features concerning the administration users
| Method Summary | |
|---|---|
static void |
anonymizeUser(int nAdminUserId,
Locale locale)
Anonymize user data from his id. |
static boolean |
checkEmail(String strEmail)
Check if the given email is valid or not. |
static String |
checkPassword(javax.servlet.http.HttpServletRequest request,
String strPassword,
int nUserId)
Check that the password respect user parameters |
static String |
checkPassword(javax.servlet.http.HttpServletRequest request,
String strPassword,
int nUserId,
boolean bSkipHistoryCheck)
Check that the password respect user parameters |
static void |
doInsertRegularExpression(int nRegularExpressionId)
Do insert a regular expression |
static void |
doModifyEmailPattern(String strEmailPattern,
boolean bIsSetManually)
Do modify the email pattern |
static void |
doRemoveRegularExpression(int nRegularExpressionId)
Do remove a regular expression |
static void |
doResetEmailPattern()
Reset the email pattern by putting the default email pattern that is set in the lutece.properties. |
static String |
encryptPassword(String strPassword)
Encrypt a password with the encryption algorithm choosed by the admin |
static Timestamp |
getAccountMaxValidDate()
Compute the maximum valid date of an account with the current time and the parameters in the database. |
static AdminUser |
getAdminUser(javax.servlet.http.HttpServletRequest request)
Get the user in session |
static ReferenceList |
getAvailableRegularExpressions()
Get the available rugalar expressions |
static boolean |
getBooleanSecurityParameter(String strParameterkey)
Get a boolean user parameter from its key. |
static String |
getEmailErrorMessageUrl(javax.servlet.http.HttpServletRequest request)
Get the email error message url. |
static List<Integer> |
getExpiredUserIdList()
Get the list of id of expired users |
static List<AdminUser> |
getFilteredUsersInterface(List<AdminUser> listUsers,
javax.servlet.http.HttpServletRequest request,
Map<String,Object> model,
UrlItem url)
Get the filtered list of admin users |
static int |
getIntegerSecurityParameter(String strParameterkey)
Get an integer user parameter from its key. |
static String |
getLargeSecurityParameter(String strParameterKey)
Get a user parameter from its key. |
static Locale |
getLocale(javax.servlet.http.HttpServletRequest request)
Get the locale for the current request |
static Map<String,Object> |
getManageAdvancedParameters(AdminUser user)
Build the advanced parameters management |
static Timestamp |
getPasswordMaxValidDate()
Compute the maximum valid date of a password with the current time and the parameters in the database. |
static String |
getSecurityParameter(String strParameterkey)
Get a user parameter from its key. |
static List<RegularExpression> |
getSelectedRegularExpressions()
Get the list of selected regular expression |
static boolean |
getUserAdminRightLevel(javax.servlet.http.HttpServletRequest request)
Gets the admin right level |
static void |
init()
Init |
static void |
removeAdvancedSecurityParameters()
Disable advances security parameters |
static void |
updateDateLastLogin(int nIdUser)
Update the date of last login of an admin user |
static void |
updateLargeSecurityParameter(String strParameterKey,
String strValue)
Update a security parameter value. |
static void |
updateSecurityParameter(String strParameterKey,
String strValue)
Update a security parameter value. |
static void |
updateUserExpirationDate(AdminUser user)
Update the user expiration date with new values, and notify him with an email if his account was close to expire. |
static void |
useAdvancedSecurityParameters()
Enable advanced security parameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void init()
public static AdminUser getAdminUser(javax.servlet.http.HttpServletRequest request)
request - The HTTP request
public static Locale getLocale(javax.servlet.http.HttpServletRequest request)
request - The HTTP request
public static boolean getUserAdminRightLevel(javax.servlet.http.HttpServletRequest request)
request - The HTTP request
public static List<AdminUser> getFilteredUsersInterface(List<AdminUser> listUsers,
javax.servlet.http.HttpServletRequest request,
Map<String,Object> model,
UrlItem url)
listUsers - the initial list of usersrequest - HttpServletRequestmodel - mapurl - URL of the current interface
public static Map<String,Object> getManageAdvancedParameters(AdminUser user)
user - The AdminUser object
public static boolean checkEmail(String strEmail)
strEmail - the str email
public static void doModifyEmailPattern(String strEmailPattern,
boolean bIsSetManually)
strEmailPattern - the email patternbIsSetManually - true if it is know set manually, false otherwisepublic static void doResetEmailPattern()
public static String getEmailErrorMessageUrl(javax.servlet.http.HttpServletRequest request)
request - the request
public static void doInsertRegularExpression(int nRegularExpressionId)
nRegularExpressionId - the ID of the regular expressionpublic static void doRemoveRegularExpression(int nRegularExpressionId)
nRegularExpressionId - the ID of the regularexpresionpublic static ReferenceList getAvailableRegularExpressions()
ReferenceListpublic static List<RegularExpression> getSelectedRegularExpressions()
RegularExpressionpublic static int getIntegerSecurityParameter(String strParameterkey)
strParameterkey - Key of the parameter
public static boolean getBooleanSecurityParameter(String strParameterkey)
strParameterkey - Key of the parameter
public static String getSecurityParameter(String strParameterkey)
strParameterkey - Key of the parameter
public static String getLargeSecurityParameter(String strParameterKey)
strParameterKey - Key of the parameter
public static void updateSecurityParameter(String strParameterKey,
String strValue)
strParameterKey - The key of the parameterstrValue - The new value
public static void updateLargeSecurityParameter(String strParameterKey,
String strValue)
strParameterKey - The key of the parameterstrValue - The new value
public static String checkPassword(javax.servlet.http.HttpServletRequest request,
String strPassword,
int nUserId)
request - The requeststrPassword - The password to checknUserId - The id of the modified user
public static String checkPassword(javax.servlet.http.HttpServletRequest request,
String strPassword,
int nUserId,
boolean bSkipHistoryCheck)
request - The requeststrPassword - The password to checknUserId - The id of the modified userbSkipHistoryCheck - Indicates if the password history should be checked or not.
public static String encryptPassword(String strPassword)
strPassword - The password to encrypt
public static void useAdvancedSecurityParameters()
public static void removeAdvancedSecurityParameters()
public static Timestamp getPasswordMaxValidDate()
public static Timestamp getAccountMaxValidDate()
public static void anonymizeUser(int nAdminUserId,
Locale locale)
nAdminUserId - Id of the user to anonymizelocale - The localepublic static List<Integer> getExpiredUserIdList()
public static void updateUserExpirationDate(AdminUser user)
user - The user to updatepublic static void updateDateLastLogin(int nIdUser)
nIdUser - Id of the user to update
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||