public final class DatabaseUserParameterService extends Object implements IDatabaseUserParameterService
| Modifier and Type | Method and Description |
|---|---|
int |
countUserPasswordHistoryFromDate(Timestamp minDate,
int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
fr.paris.lutece.util.ReferenceList |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all parameters
|
fr.paris.lutece.util.ReferenceItem |
findByKey(String strParameterKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the parameter from a given key
|
String |
getEncryptionAlgorithm(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the encryption algorithm
|
static DatabaseUserParameterService |
getService()
Get the instance of the service
|
boolean |
isAccountCreationValidationEmail(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the account creation must be validated by email
|
boolean |
isAutoLoginAfterValidationEmail(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the user must be automatically logged after validation email
|
boolean |
isJcaptchaEnable(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the jcaptcha is enable or not
|
boolean |
isPasswordEncrypted(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the passwords must be encrypted or not
|
List<String> |
selectUserPasswordHistory(int nUserID,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
update(fr.paris.lutece.util.ReferenceItem userParam,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a parameter
|
public static DatabaseUserParameterService getService()
public fr.paris.lutece.util.ReferenceItem findByKey(String strParameterKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByKey in interface fr.paris.lutece.plugins.mylutece.service.IUserParameterServicestrParameterKey - the keyplugin - the pluginpublic void update(fr.paris.lutece.util.ReferenceItem userParam,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
update in interface fr.paris.lutece.plugins.mylutece.service.IUserParameterServiceuserParam - the parameterplugin - the pluginpublic fr.paris.lutece.util.ReferenceList findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll in interface fr.paris.lutece.plugins.mylutece.service.IUserParameterServiceplugin - the pluginpublic boolean isPasswordEncrypted(fr.paris.lutece.portal.service.plugin.Plugin plugin)
isPasswordEncrypted in interface fr.paris.lutece.plugins.mylutece.service.IUserParameterServiceplugin - the pluginfalse. Passwords are in fact salted and hashed, but we don't want
plugin-mylutece to try and hash the password itselfpublic String getEncryptionAlgorithm(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getEncryptionAlgorithm in interface fr.paris.lutece.plugins.mylutece.service.IUserParameterServiceplugin - the pluginpublic boolean isAccountCreationValidationEmail(fr.paris.lutece.portal.service.plugin.Plugin plugin)
isAccountCreationValidationEmail in interface IDatabaseUserParameterServiceplugin - the pluginpublic boolean isAutoLoginAfterValidationEmail(fr.paris.lutece.portal.service.plugin.Plugin plugin)
isAutoLoginAfterValidationEmail in interface IDatabaseUserParameterServiceplugin - the pluginpublic boolean isJcaptchaEnable(fr.paris.lutece.portal.service.plugin.Plugin plugin)
isJcaptchaEnable in interface IDatabaseUserParameterServiceplugin - the pluginpublic int countUserPasswordHistoryFromDate(Timestamp minDate, int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countUserPasswordHistoryFromDate in interface fr.paris.lutece.plugins.mylutece.service.IUserParameterServiceCopyright © 2018 City of Paris. All rights reserved.