Interface IUserParameterService
public interface IUserParameterService
User parameter service interface
-
Method Summary
Modifier and TypeMethodDescriptionintcountUserPasswordHistoryFromDate(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.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 algorithmbooleanisPasswordEncrypted(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) Gets the history of password of the given uservoidupdate(fr.paris.lutece.util.ReferenceItem userParam, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update a parameter
-
Method Details
-
findByKey
fr.paris.lutece.util.ReferenceItem findByKey(String strParameterKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the parameter from a given key- Parameters:
strParameterKey- the keyplugin- the plugin- Returns:
- the parameter
-
findAll
fr.paris.lutece.util.ReferenceList findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all parameters- Parameters:
plugin- the plugin- Returns:
- a ReferenceList
-
update
void update(fr.paris.lutece.util.ReferenceItem userParam, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update a parameter- Parameters:
userParam- the parameterplugin- the plugin
-
isPasswordEncrypted
boolean isPasswordEncrypted(fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the passwords must be encrypted or not- Parameters:
plugin- the plugin- Returns:
- true if they are encrypted, false otherwise
-
getEncryptionAlgorithm
Get the encryption algorithm- Parameters:
plugin- the plugin- Returns:
- the encryption algorithm
-
countUserPasswordHistoryFromDate
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.- Parameters:
minDate- Minimum date to consider.nUserId- Id of the userplugin- the plugin- Returns:
- The number of password change done by the user since the given date.
-
selectUserPasswordHistory
List<String> selectUserPasswordHistory(int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Gets the history of password of the given user- Parameters:
nUserId- Id of the userplugin- the plugin- Returns:
- The collection of recent passwords used by the user.
-