Class AwaitingActivationDAO

  • All Implemented Interfaces:
    IAwaitingActivationDAO

    public class AwaitingActivationDAO
    extends java.lang.Object
    implements IAwaitingActivationDAO
    AwaitingActivationDAO provides newsletter_awaiting_confirmation table management
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Removes the entry
      boolean exists​(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Checks if the pair user/key already exists.
      void insert​(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Adds a new pair user/key entry
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AwaitingActivationDAO

        public AwaitingActivationDAO()
    • Method Detail

      • delete

        public void delete​(int nIdUser,
                           int nKey,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Removes the entry
        Specified by:
        delete in interface IAwaitingActivationDAO
        Parameters:
        nIdUser - the user id
        nKey - the key
        plugin - 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:
        exists in interface IAwaitingActivationDAO
        Parameters:
        nIdUser - the user id
        nKey - the generated key
        plugin - 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:
        insert in interface IAwaitingActivationDAO
        Parameters:
        nIdUser - the user id
        nKey - the generated key
        plugin - the plugin