fr.paris.lutece.plugins.newsletter.business
Class AwaitingActivationHome

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

public class AwaitingActivationHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for awaiting activations


Method Summary
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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


Copyright © 2012 Mairie de Paris. All Rights Reserved.