Class UserCodeControllerDataDAO
java.lang.Object
fr.paris.lutece.plugins.accesscontrol.business.UserCodeControllerDataDAO
- All Implemented Interfaces:
IUserCodeControllerDataDAO
@ApplicationScoped
@Named("accesscontrol.userCodeControllerDataDAO")
public class UserCodeControllerDataDAO
extends Object
implements IUserCodeControllerDataDAO
Implements
IUserCodeControllerDataDAO-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckUserCode(String strUser, String strCode, int idAccessControl, fr.paris.lutece.portal.service.plugin.Plugin plugin) Checks if the pair user/code existsvoidDelete 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.Load the data from the tableloadAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadDateInvalid(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table
-
Constructor Details
-
UserCodeControllerDataDAO
public UserCodeControllerDataDAO()
-
-
Method Details
-
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(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(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
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(String strUser, 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 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
-