fr.paris.lutece.plugins.newsletter.business.portlet
Interface INewsLetterSubscriptionPortletDAO

All Superinterfaces:
fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
All Known Implementing Classes:
NewsLetterSubscriptionPortletDAO

public interface INewsLetterSubscriptionPortletDAO
extends fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

This class provides Data Access methods for NewsLetterSubscriptionPortlet objects


Method Summary
 java.util.Set<java.lang.Integer> findSelectedNewsletters(int nPortletId)
          Returns all the newsletters associated to a given portlet.
 void insertSubscription(int nPortletId, int nNewsletterId)
          Associates a new subscription to a given portlet.
 void removeSubscription(int nPortletId, int nSubscriptionId)
          De-associate a subscription from a given portlet.
 
Methods inherited from interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
delete, insert, load, store
 

Method Detail

insertSubscription

void insertSubscription(int nPortletId,
                        int nNewsletterId)
Associates a new subscription to a given portlet.

Parameters:
nPortletId - the identifier of the portlet.
nNewsletterId - the identifier of the newsletter

removeSubscription

void removeSubscription(int nPortletId,
                        int nSubscriptionId)
De-associate a subscription from a given portlet.

Parameters:
nPortletId - the identifier of the portlet.
nSubscriptionId - the identifier of the subscription.

findSelectedNewsletters

java.util.Set<java.lang.Integer> findSelectedNewsletters(int nPortletId)
Returns all the newsletters associated to a given portlet.

Parameters:
nPortletId - the identifier of the portlet.
Returns:
a Set of Integer objects containing the identifers of the subscriptions.


Copyright © 2007 Mairie de Paris. All Rights Reserved.