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
Modifier and TypeMethodDescriptionfindSelectedNewsletters(int nPortletId) Returns all the newsletters associated to a given portlet.voidinsertSubscription(int nPortletId, int nNewsletterId) Associates a new subscription to a given portlet.voidremoveSubscription(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 Details
-
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
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.
-