fr.paris.lutece.plugins.newsletter.business.portlet
Class NewsLetterArchivePortletHome

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

public class NewsLetterArchivePortletHome
extends fr.paris.lutece.portal.business.portlet.PortletHome

This class provides instances management methods for NewsLetterArchivePortlet objects


Constructor Summary
NewsLetterArchivePortletHome()
          Constructor
 
Method Summary
static java.util.ArrayList<java.lang.Integer> findSendingsInPortlet(int nPortletId)
          Returns all the sendings associated with a given portlet.
 fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()
          Returns the instance of the portlet DAO singleton
static fr.paris.lutece.portal.business.portlet.PortletHome getInstance()
          Returns the instance of NewsLetterArchive Portlet
 java.lang.String getPortletTypeId()
          Returns the identifier of the portlet type
static void insertSending(int nPortletId, int nSendingId)
          Associates a new sending to a given portlet.
static void removeSending(int nPortletId, int nSendingId)
          De-associate a sending from a given portlet.
 
Methods inherited from class fr.paris.lutece.portal.business.portlet.PortletHome
create, findByPrimaryKey, findByType, getAliasList, getPortletListByStyle, getPortletsListbyName, getPortletType, getStylesList, hasAlias, invalidate, invalidate, remove, update, updateStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsLetterArchivePortletHome

public NewsLetterArchivePortletHome()
Constructor

Method Detail

getPortletTypeId

public java.lang.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 NewsLetterArchive Portlet

Returns:
the Archive 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

insertSending

public static void insertSending(int nPortletId,
                                 int nSendingId)
Associates a new sending to a given portlet.

Parameters:
nPortletId - the identifier of the portlet.
nSendingId - the identifier of the sending.

removeSending

public static void removeSending(int nPortletId,
                                 int nSendingId)
De-associate a sending from a given portlet.

Parameters:
nPortletId - the identifier of the portlet.
nSendingId - the identifier of the sending.

findSendingsInPortlet

public static java.util.ArrayList<java.lang.Integer> findSendingsInPortlet(int nPortletId)
Returns all the sendings associated with a given portlet.

Parameters:
nPortletId - the identifier of the portlet.
Returns:
a Set of Integer containing the identifiers.


Copyright © 2010 Mairie de Paris. All Rights Reserved.