Class AwaitingActivationHome

java.lang.Object
fr.paris.lutece.plugins.newsletter.business.AwaitingActivationHome

public final class AwaitingActivationHome extends Object
This class provides instances management methods (create, find, ...) for awaiting activations
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    checkKey(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Checks if the key is correct for the user id
    static void
    create(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Registers a new entry
    static void
    remove(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Removes the entry

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static void create(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Registers a new entry
      Parameters:
      nIdUser - the user id
      nKey - the key
      plugin - the plugin
    • remove

      public static void remove(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Removes the entry
      Parameters:
      nIdUser - the user id
      nKey - the key
      plugin - the plugin
    • checkKey

      public static boolean checkKey(int nIdUser, int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Checks if the key is correct for the user id
      Parameters:
      nIdUser - the user id
      nKey - the key
      plugin - the plugin
      Returns:
      true if the key is correct for the user id, false otherwise