Class DatabaseUserParameterService
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.database.authentication.service.parameter.DatabaseUserParameterService
- All Implemented Interfaces:
IDatabaseUserParameterService,fr.paris.lutece.plugins.mylutece.service.IUserParameterService
@ApplicationScoped
@Named("mylutece-database.databaseUserParameterService")
public class DatabaseUserParameterService
extends Object
implements IDatabaseUserParameterService
DatabaseUserParameterService
-
Method Summary
Modifier and TypeMethodDescriptionintcountUserPasswordHistoryFromDate(Timestamp minDate, int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin) fr.paris.lutece.util.ReferenceListfindAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all parametersfr.paris.lutece.util.ReferenceItemGet the parameter from a given keygetEncryptionAlgorithm(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the encryption algorithmDeprecated.booleanisAccountCreationValidationEmail(fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the account creation must be validated by emailbooleanisAutoLoginAfterValidationEmail(fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the user must be automatically logged after validation emailbooleanisJcaptchaEnable(fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the jcaptcha is enable or notbooleanisPasswordEncrypted(fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the passwords must be encrypted or notselectUserPasswordHistory(int nUserID, fr.paris.lutece.portal.service.plugin.Plugin plugin) voidupdate(fr.paris.lutece.util.ReferenceItem userParam, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update a parameter
-
Method Details
-
getService
Deprecated.Get the instance of the service- Returns:
- the instance of the service
-
findByKey
public fr.paris.lutece.util.ReferenceItem findByKey(String strParameterKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the parameter from a given key- Specified by:
findByKeyin interfacefr.paris.lutece.plugins.mylutece.service.IUserParameterService- Parameters:
strParameterKey- the keyplugin- the plugin- Returns:
- the parameter
-
update
public void update(fr.paris.lutece.util.ReferenceItem userParam, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update a parameter- Specified by:
updatein interfacefr.paris.lutece.plugins.mylutece.service.IUserParameterService- Parameters:
userParam- the parameterplugin- the plugin
-
findAll
public fr.paris.lutece.util.ReferenceList findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all parameters- Specified by:
findAllin interfacefr.paris.lutece.plugins.mylutece.service.IUserParameterService- Parameters:
plugin- the plugin- Returns:
- a ReferenceList
-
isPasswordEncrypted
public boolean isPasswordEncrypted(fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the passwords must be encrypted or not- Specified by:
isPasswordEncryptedin interfacefr.paris.lutece.plugins.mylutece.service.IUserParameterService- Parameters:
plugin- the plugin- Returns:
false. Passwords are in fact salted and hashed, but we don't want plugin-mylutece to try and hash the password itself
-
getEncryptionAlgorithm
Get the encryption algorithm- Specified by:
getEncryptionAlgorithmin interfacefr.paris.lutece.plugins.mylutece.service.IUserParameterService- Parameters:
plugin- the plugin- Returns:
- the encryption algorithm
-
isAccountCreationValidationEmail
public boolean isAccountCreationValidationEmail(fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the account creation must be validated by email- Specified by:
isAccountCreationValidationEmailin interfaceIDatabaseUserParameterService- Parameters:
plugin- the plugin- Returns:
- true if it must be validated by email, false otherwise
-
isAutoLoginAfterValidationEmail
public boolean isAutoLoginAfterValidationEmail(fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the user must be automatically logged after validation email- Specified by:
isAutoLoginAfterValidationEmailin interfaceIDatabaseUserParameterService- Parameters:
plugin- the plugin- Returns:
- true if the user must be automatically logged after validation email
-
isJcaptchaEnable
public boolean isJcaptchaEnable(fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the jcaptcha is enable or not- Specified by:
isJcaptchaEnablein interfaceIDatabaseUserParameterService- Parameters:
plugin- the plugin- Returns:
- true if it is enable, false otherwise
-
countUserPasswordHistoryFromDate
public int countUserPasswordHistoryFromDate(Timestamp minDate, int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin) - Specified by:
countUserPasswordHistoryFromDatein interfacefr.paris.lutece.plugins.mylutece.service.IUserParameterService
-
selectUserPasswordHistory
public List<String> selectUserPasswordHistory(int nUserID, fr.paris.lutece.portal.service.plugin.Plugin plugin) - Specified by:
selectUserPasswordHistoryin interfacefr.paris.lutece.plugins.mylutece.service.IUserParameterService
-