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
    Constructor
    Description
     
  • Method Summary

    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 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:
      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