Class NewsLetterSubscriptionPortletHome

java.lang.Object
fr.paris.lutece.portal.business.portlet.PortletHome
fr.paris.lutece.plugins.newsletter.business.portlet.NewsLetterSubscriptionPortletHome
All Implemented Interfaces:
fr.paris.lutece.portal.business.portlet.PortletHomeInterface

public class NewsLetterSubscriptionPortletHome extends fr.paris.lutece.portal.business.portlet.PortletHome
This class provides instances management methods for NewsLetterSubscriptionPortlet objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Set<Integer>
    findSelectedNewsletters(int nPortletId)
    Returns all the newsletters chosen associated with a given portlet.
    fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
    Returns the instance of the portlet DAO singleton
    static fr.paris.lutece.portal.business.portlet.PortletHome
    Returns the instance of NewsLetterSubscription Portlet
    Returns the identifier of the portlet type
    static void
    insertSubscription(int nPortletId, int nSubscriptionId)
    Associates a new subscription to a given portlet.
    static void
    removeNewsletter(int nPortletId, int nIdNewsletter)
    De-associate a subscription from a given portlet.

    Methods inherited from class fr.paris.lutece.portal.business.portlet.PortletHome

    create, findByPrimaryKey, findByType, getAliasList, getLastModifiedPortlet, getPortletListByStyle, getPortletsByRoleKey, getPortletsListbyName, getPortletType, getStylesList, getUsedOrdersForColumns, getXslFile, getXslSource, hasAlias, invalidate, invalidate, notifyListeners, remove, update, updatePosition, updateStatus

    Methods inherited from class java.lang.Object

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

    • NewsLetterSubscriptionPortletHome

      public NewsLetterSubscriptionPortletHome()
  • Method Details

    • getPortletTypeId

      public String getPortletTypeId()
      Returns the identifier of the portlet type
      Returns:
      the portlet type identifier
    • getInstance

      public static fr.paris.lutece.portal.business.portlet.PortletHome getInstance()
      Returns the instance of NewsLetterSubscription Portlet
      Returns:
      the NewsLetterSubscription Portlet instance
    • getDAO

      public fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()
      Returns the instance of the portlet DAO singleton
      Returns:
      the instance of the DAO singleton
    • insertSubscription

      public static void insertSubscription(int nPortletId, int nSubscriptionId)
      Associates a new subscription to a given portlet.
      Parameters:
      nPortletId - the identifier of the portlet.
      nSubscriptionId - the identifier of the subscription.
    • removeNewsletter

      public static void removeNewsletter(int nPortletId, int nIdNewsletter)
      De-associate a subscription from a given portlet.
      Parameters:
      nPortletId - the identifier of the portlet.
      nIdNewsletter - the identifier of the subscription.
    • findSelectedNewsletters

      public static Set<Integer> findSelectedNewsletters(int nPortletId)
      Returns all the newsletters chosen associated with a given portlet.
      Parameters:
      nPortletId - the identifier of the portlet.
      Returns:
      a Set of Integer containing the identifiers.