|
||||||||||
| 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,
java.util.Locale locale)
Anonymize user data from his id. |
static boolean |
checkEmail(java.lang.String strEmail)
Check if the given email is valid or not. |
static java.lang.String |
checkPassword(javax.servlet.http.HttpServletRequest request,
java.lang.String strPassword,
int nUserId)
Check that the password respect user parameters |
static java.lang.String |
checkPassword(javax.servlet.http.HttpServletRequest request,
java.lang.String strPassword,
int nUserId,
boolean bSkipeHistoryCheck)
Check that the password respect user parameters |
static void |
doInsertRegularExpression(int nRegularExpressionId)
Do insert a regular expression |
static void |
doModifyEmailPattern(java.lang.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 java.lang.String |
encryptPassword(java.lang.String strPassword)
Encrypt a password with the encryption algorithm choosed by the admin |
static java.sql.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(java.lang.String strParameterkey)
Get a boolean user parameter from its key. |
static java.lang.String |
getEmailErrorMessageUrl(javax.servlet.http.HttpServletRequest request)
Get the email error message url |
static java.util.List<java.lang.Integer> |
getExpiredUserIdList()
Get the list of id of expired users |
static java.util.List<AdminUser> |
getFilteredUsersInterface(java.util.List<AdminUser> listUsers,
javax.servlet.http.HttpServletRequest request,
java.util.Map<java.lang.String,java.lang.Object> model,
UrlItem url)
Get the filtered list of admin users |
static int |
getIntegerSecurityParameter(java.lang.String strParameterkey)
Get an integer user parameter from its key. |
static java.util.Locale |
getLocale(javax.servlet.http.HttpServletRequest request)
Get the locale for the current request |
static java.util.Map<java.lang.String,java.lang.Object> |
getManageAdvancedParameters(AdminUser user)
Build the advanced parameters management |
static java.sql.Timestamp |
getPasswordMaxValidDate()
Compute the maximum valid date of a password with the current time and the parameters in the database. |
static java.util.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 |
updateSecurityParameter(java.lang.String strParameterKey,
java.lang.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 java.util.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 java.util.List<AdminUser> getFilteredUsersInterface(java.util.List<AdminUser> listUsers,
javax.servlet.http.HttpServletRequest request,
java.util.Map<java.lang.String,java.lang.Object> model,
UrlItem url)
listUsers - the initial list of usersrequest - HttpServletRequestmodel - mapurl - URL of the current interface
public static java.util.Map<java.lang.String,java.lang.Object> getManageAdvancedParameters(AdminUser user)
user - The AdminUser object
public static boolean checkEmail(java.lang.String strEmail)
strEmail -
public static void doModifyEmailPattern(java.lang.String strEmailPattern,
boolean bIsSetManually)
strEmailPattern - the email patternbIsSetManually - true if it is know set manually, false otherwisepublic static void doResetEmailPattern()
public static java.lang.String getEmailErrorMessageUrl(javax.servlet.http.HttpServletRequest 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 java.util.List<RegularExpression> getSelectedRegularExpressions()
RegularExpressionpublic static int getIntegerSecurityParameter(java.lang.String strParameterkey)
strParameterkey - Key of the parameter
public static boolean getBooleanSecurityParameter(java.lang.String strParameterkey)
strParameterkey - Key of the parameter
public static void updateSecurityParameter(java.lang.String strParameterKey,
java.lang.String strValue)
strParameterKey - The key of the parameterstrValue - The new value
public static java.lang.String checkPassword(javax.servlet.http.HttpServletRequest request,
java.lang.String strPassword,
int nUserId)
request - The requeststrPassword - The password to checknUserId - The id of the modified user
public static java.lang.String checkPassword(javax.servlet.http.HttpServletRequest request,
java.lang.String strPassword,
int nUserId,
boolean bSkipeHistoryCheck)
request - The requeststrPassword - The password to checknUserId - The id of the modified userbSkipeHistoryCheck - Indicates if the password history should be
checked or not.
public static java.lang.String encryptPassword(java.lang.String strPassword)
strPassword - The password to encrypt
public static void useAdvancedSecurityParameters()
public static void removeAdvancedSecurityParameters()
public static java.sql.Timestamp getPasswordMaxValidDate()
public static java.sql.Timestamp getAccountMaxValidDate()
public static void anonymizeUser(int nAdminUserId,
java.util.Locale locale)
nAdminUserId - Id of the user to anonymizelocale - The localepublic static java.util.List<java.lang.Integer> getExpiredUserIdList()
public static void updateUserExpirationDate(AdminUser user)
user - The user to update
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||