fr.paris.lutece.plugins.calendar.business.portlet
Class CalendarPortletHome

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

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

This class provides instances management methods for CalendarPortlet objects


Constructor Summary
CalendarPortletHome()
          Constructor
 
Method Summary
static java.util.List<AgendaResource> findAgendaBetween(int nPortletId, java.util.Date dateBegin, java.util.Date dateEnd)
          Returns all the agenda associated with a given portlet.
static java.util.List<AgendaResource> findAgendasInPortlet(int nPortletId)
          Returns all the agenda associated with a given portlet.
static java.lang.String getBeginDate(int nPortletId)
          Returns the beginning date of the display of corresponding events
 fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()
          Returns the instance of the portlet DAO singleton
static java.lang.String getEndDate(int nPortletId)
          Returns the last date of the display
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 int getRepetitionDays(int nPortletId)
          Returns the number of days within which the events will occur
static void insertAgendaInterval(int nPortletId, java.lang.String strAgendaId, java.lang.String strDateBegin, java.lang.String strDateEnd)
          Associates a new agenda to a given portlet.
static void insertCalendar(int nPortletId, java.lang.String strAgendaId, int nDays)
          Associates a new calendar to a given portlet.
static void removeAgenda(int nPortletId, java.lang.String strAgenda)
          De-associate an agenda from a given portlet.
static void removeAllAgendas(int nPortletId)
          De-associate an agenda from a given portlet.
 
Methods inherited from class fr.paris.lutece.portal.business.portlet.PortletHome
create, findByPrimaryKey, findByType, 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

CalendarPortletHome

public CalendarPortletHome()
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

insertAgendaInterval

public static void insertAgendaInterval(int nPortletId,
                                        java.lang.String strAgendaId,
                                        java.lang.String strDateBegin,
                                        java.lang.String strDateEnd)
Associates a new agenda to a given portlet.

Parameters:
strAgendaId - The identifier of the agenda
strDateBegin - The beginning date
strDateEnd - The end date
nPortletId - The identifier of the portlet.

removeAgenda

public static void removeAgenda(int nPortletId,
                                java.lang.String strAgenda)
De-associate an agenda from a given portlet.

Parameters:
nPortletId - the identifier of the portlet.
strAgenda - the identifier of the agenda

removeAllAgendas

public static void removeAllAgendas(int nPortletId)
De-associate an agenda from a given portlet.

Parameters:
nPortletId - the identifier of the portlet.

findAgendasInPortlet

public static java.util.List<AgendaResource> findAgendasInPortlet(int nPortletId)
Returns all the agenda associated with a given portlet.

Parameters:
nPortletId - the identifier of the portlet.
Returns:
a list of agenda resources unfiltered

findAgendaBetween

public static java.util.List<AgendaResource> findAgendaBetween(int nPortletId,
                                                               java.util.Date dateBegin,
                                                               java.util.Date dateEnd)
Returns all the agenda associated with a given portlet.

Parameters:
dateBegin - The start date
dateEnd - The end date
nPortletId - the identifier of the portlet.
Returns:
a list of agenda resources unfiltered

insertCalendar

public static void insertCalendar(int nPortletId,
                                  java.lang.String strAgendaId,
                                  int nDays)
Associates a new calendar to a given portlet.

Parameters:
strAgendaId - The id of the agenda
nDays - The number of days
nPortletId - the identifier of the portlet.

getBeginDate

public static java.lang.String getBeginDate(int nPortletId)
Returns the beginning date of the display of corresponding events

Parameters:
nPortletId - The id portlet
Returns:
Returns the start date

getEndDate

public static java.lang.String getEndDate(int nPortletId)
Returns the last date of the display

Parameters:
nPortletId - The id of the portlet
Returns:
The End date of the portlet display

getRepetitionDays

public static int getRepetitionDays(int nPortletId)
Returns the number of days within which the events will occur

Parameters:
nPortletId - The id of the portlet
Returns:
Returns the number of days


Copyright © 2008 Mairie de Paris. All Rights Reserved.