Class AwaitingActivationDAO
java.lang.Object
fr.paris.lutece.plugins.newsletter.business.AwaitingActivationDAO
- All Implemented Interfaces:
IAwaitingActivationDAO
@ApplicationScoped
@Named("newsletter.awaitingActivationDAO")
public class AwaitingActivationDAO
extends Object
implements IAwaitingActivationDAO
AwaitingActivationDAO provides newsletter_awaiting_confirmation table management
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Removes the entrybooleanexists(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Checks if the pair user/key already exists.voidinsert(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Adds a new pair user/key entry
-
Constructor Details
-
AwaitingActivationDAO
public AwaitingActivationDAO()
-
-
Method Details
-
delete
public void delete(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Removes the entry- Specified by:
deletein interfaceIAwaitingActivationDAO- Parameters:
nIdUser- the user idnKey- the keyplugin- the plugin
-
exists
public boolean exists(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Checks if the pair user/key already exists.- Specified by:
existsin interfaceIAwaitingActivationDAO- Parameters:
nIdUser- the user idnKey- the generated keyplugin- the plugin- Returns:
- true if the pair already exists, false otherwise.
-
insert
public void insert(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Adds a new pair user/key entry- Specified by:
insertin interfaceIAwaitingActivationDAO- Parameters:
nIdUser- the user idnKey- the generated keyplugin- the plugin
-