public class MyluteceDirectoryDAO extends Object implements IMyluteceDirectoryDAO
| Constructor and Description |
|---|
MyluteceDirectoryDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignDirectory(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Assign a directory as a user directory
|
void |
assignWorkflowModifyAction(int nIdDirectory,
int nIdWfAction,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
assign the workflow action associate to the directory selected(used when a modification is made on the user )
|
void |
createGroupForUser(int nIdRecord,
String strGroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Assign a group to user
|
void |
createRoleForUser(int nIdRecord,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Assign a role to user
|
void |
deleteGroupsForUser(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete groups for a user
|
void |
deleteRolesForUser(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
boolean selectResetPasswordFromLogin( String strLogin, Plugin plugin );
/**
Delete roles for a user
|
int |
findUserIdFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the id of a user from his login
|
boolean |
isMapped(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the specified directory is mapped for managing users
|
Collection<String> |
selectLoginListForRoleKey(String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of DirectoryUsers for a Lutece role
|
Collection<Integer> |
selectMappedDirectories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the list of directory identifier which are mapped as user directory
|
Timestamp |
selectPasswordMaxValideDateFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets the password max valid date of a user from his login.
|
boolean |
selectResetPasswordFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a user has reset his password from his login
|
List<String> |
selectUserGroupsFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find user's groups by login
|
List<String> |
selectUserRolesFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find user's roles by login
|
Integer |
selectWorkflowModifyAction(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
select the workflow action associate to the directory selected(used when a modification is made on the user )
|
void |
unAssignDirectories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Unassign all directories
|
void |
unAssignDirectory(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Unassign a directory
|
void |
unAssignWorkflowModifyAction(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
un asign the workflow action associate to the directory selected(used when a modification is made on the user )
|
void |
updateResetPasswordFromLogin(String strUserName,
boolean bNewValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the reset password attribut of a user from his login
|
public List<String> selectUserRolesFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectUserRolesFromLogin in interface IMyluteceDirectoryDAOstrLogin - the loginplugin - The Plugin using this data access servicepublic Integer selectWorkflowModifyAction(int nIdDirectory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectWorkflowModifyAction in interface IMyluteceDirectoryDAOnIdDirectory - the id directoryplugin - the pluginpublic void assignWorkflowModifyAction(int nIdDirectory,
int nIdWfAction,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
assignWorkflowModifyAction in interface IMyluteceDirectoryDAOnIdDirectory - the id directorynIdWfAction - the worklow actionpublic void unAssignWorkflowModifyAction(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
unAssignWorkflowModifyAction in interface IMyluteceDirectoryDAOnIdDirectory - the id directorypublic boolean selectResetPasswordFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectResetPasswordFromLogin in interface IMyluteceDirectoryDAOstrLogin - the loginplugin - The Plugin using this data access servicepublic Timestamp selectPasswordMaxValideDateFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPasswordMaxValideDateFromLogin in interface IMyluteceDirectoryDAOstrLogin - the login of the userplugin - The pluginpublic void deleteRolesForUser(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRolesForUser in interface IMyluteceDirectoryDAOnIdRecord - The id of the userplugin - The Plugin using this data access servicepublic void createRoleForUser(int nIdRecord,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
createRoleForUser in interface IMyluteceDirectoryDAOnIdRecord - The id of the userstrRoleKey - The key of the roleplugin - The Plugin using this data access servicepublic List<String> selectUserGroupsFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectUserGroupsFromLogin in interface IMyluteceDirectoryDAOstrLogin - The loginplugin - The Plugin using this data access servicepublic Collection<String> selectLoginListForRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectLoginListForRoleKey in interface IMyluteceDirectoryDAOstrRoleKey - The role key of DirectoryUserplugin - The Plugin using this data access servicepublic void deleteGroupsForUser(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteGroupsForUser in interface IMyluteceDirectoryDAOnIdRecord - The id of the userplugin - The Plugin using this data access servicepublic void createGroupForUser(int nIdRecord,
String strGroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
createGroupForUser in interface IMyluteceDirectoryDAOnIdRecord - The id of the userstrGroupKey - The key of the groupplugin - The Plugin using this data access servicepublic boolean isMapped(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
isMapped in interface IMyluteceDirectoryDAOnIdDirectory - The directory identifierplugin - The Plugin using this data access servicepublic Collection<Integer> selectMappedDirectories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMappedDirectories in interface IMyluteceDirectoryDAOplugin - The Plugin using this data access serviceCollection of id directorypublic void assignDirectory(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
assignDirectory in interface IMyluteceDirectoryDAOnIdDirectory - The directory identifierplugin - The Plugin using this data access servicepublic void unAssignDirectories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
unAssignDirectories in interface IMyluteceDirectoryDAOplugin - The Plugin using this data access servicepublic void unAssignDirectory(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
unAssignDirectory in interface IMyluteceDirectoryDAOnIdDirectory - The directory identifierplugin - The Plugin using this data access servicepublic void updateResetPasswordFromLogin(String strUserName, boolean bNewValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateResetPasswordFromLogin in interface IMyluteceDirectoryDAOstrUserName - Login of the user to updatebNewValue - New valueplugin - The pluginpublic int findUserIdFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findUserIdFromLogin in interface IMyluteceDirectoryDAOstrLogin - Login of the userplugin - The pluginCopyright © 2015 Mairie de Paris. All rights reserved.