Class UserCodeControllerDataDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.accesscontrol.business.UserCodeControllerDataDAO
-
- All Implemented Interfaces:
IUserCodeControllerDataDAO
public class UserCodeControllerDataDAO extends java.lang.Object implements IUserCodeControllerDataDAO
ImplementsIUserCodeControllerDataDAO
-
-
Constructor Summary
Constructors Constructor Description UserCodeControllerDataDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckUserCode(java.lang.String strUser, java.lang.String strCode, int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)Checks if the pair user/code existsvoiddelete(java.lang.String strUser, int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteByAccessControl(int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(UserCodeControllerData userCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.UserCodeControllerDataload(java.lang.String strUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<UserCodeControllerData>loadAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<UserCodeControllerData>loadDateInvalid(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the table
-
-
-
Method Detail
-
insert
public void insert(UserCodeControllerData userCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IUserCodeControllerDataDAOInsert a new record in the table.- Specified by:
insertin interfaceIUserCodeControllerDataDAO- Parameters:
userCode- instance of the ControllerUserCodeData object to insertplugin- the Plugin
-
delete
public void delete(java.lang.String strUser, int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IUserCodeControllerDataDAODelete a record from the table- Specified by:
deletein interfaceIUserCodeControllerDataDAOplugin- the Plugin
-
deleteByAccessControl
public void deleteByAccessControl(int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IUserCodeControllerDataDAODelete a record from the table- Specified by:
deleteByAccessControlin interfaceIUserCodeControllerDataDAOplugin- the Plugin
-
load
public UserCodeControllerData load(java.lang.String strUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IUserCodeControllerDataDAOLoad the data from the table- Specified by:
loadin interfaceIUserCodeControllerDataDAO- Parameters:
strUser- The identifier of the ControllerUserCodeDataplugin- the Plugin- Returns:
- The instance of the ControllerUserCodeData
-
loadAll
public java.util.List<UserCodeControllerData> loadAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IUserCodeControllerDataDAOLoad the data from the table- Specified by:
loadAllin interfaceIUserCodeControllerDataDAO- Parameters:
plugin- the Plugin- Returns:
- A list of instance of the ControllerUserCodeData
-
checkUserCode
public boolean checkUserCode(java.lang.String strUser, java.lang.String strCode, int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IUserCodeControllerDataDAOChecks if the pair user/code exists- Specified by:
checkUserCodein interfaceIUserCodeControllerDataDAO- Returns:
-
loadDateInvalid
public java.util.List<UserCodeControllerData> loadDateInvalid(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IUserCodeControllerDataDAOLoad the data from the table- Specified by:
loadDateInvalidin interfaceIUserCodeControllerDataDAO- Parameters:
plugin- the Plugin- Returns:
- A list of instance of the ControllerUserCodeData
-
-