fr.paris.lutece.plugins.calendar.business
Interface ICalendarDAO

All Known Implementing Classes:
CalendarDAO

public interface ICalendarDAO

Author:
nguyenme

Method Summary
 void deleteEvent(int nProjectId, java.lang.String strDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete an Event from the table calendar_events
 void deleteProject(int nProjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a Project from the table calendar_projects
 void insertEvent(int nProjectId, SimpleEvent event, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new event in the table calendar_events.
 void insertProject(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new project in the table calendar_projects.
 SimpleEvent loadEvent(int nProjectId, java.lang.String strEventDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of SimpleEvent from the table
 AgendaResource loadProject(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of AgendaResource from the table
 java.util.List<AgendaResource> selectAgendaResourceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of AgendaResources
 java.util.List<SimpleEvent> selectEventsList(int nProjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of Events
 void storeEvent(int nProjectId, java.lang.String strEventDate, SimpleEvent event, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the event in the table calendar_event
 void storeProject(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the project in the table calendar_project
 

Method Detail

deleteEvent

void deleteEvent(int nProjectId,
                 java.lang.String strDate,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events

Parameters:
nProjectId - The Project Id
plugin - The Plugin using this data access service

deleteProject

void deleteProject(int nProjectId,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a Project from the table calendar_projects

Parameters:
nProjectId - The Project Id
plugin - The Plugin using this data access service

insertEvent

void insertEvent(int nProjectId,
                 SimpleEvent event,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new event in the table calendar_events.

Parameters:
agenda - The SimpleEvent object
plugin - The Plugin using this data access service

insertProject

void insertProject(AgendaResource agenda,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new project in the table calendar_projects.

Parameters:
agenda - The AgendaResource object
plugin - The Plugin using this data access service

loadProject

AgendaResource loadProject(int nId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of AgendaResource from the table

Parameters:
nId - The identifier of AgendaResource
plugin - The plugin
Returns:
the instance of the AgendaResource
Throws:
AppException

loadEvent

SimpleEvent loadEvent(int nProjectId,
                      java.lang.String strEventDate,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table

Parameters:
nId - The identifier of theproject
strDate - the old event date
plugin - The plugin
Returns:
the instance of the SimpleEvent
Throws:
AppException

selectAgendaResourceList

java.util.List<AgendaResource> selectAgendaResourceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of AgendaResources

Parameters:
plugin - The plugin
Returns:
The Collection of the AgendaResources

selectEventsList

java.util.List<SimpleEvent> selectEventsList(int nProjectId,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events

Parameters:
plugin - The plugin
nProjectId - The identifier of the project
Returns:
The Collection of the Events

storeProject

void storeProject(AgendaResource agenda,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the project in the table calendar_project

Parameters:
agenda - The reference of AgendaResource
plugin - The Plugin using this data access service

storeEvent

void storeEvent(int nProjectId,
                java.lang.String strEventDate,
                SimpleEvent event,
                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the event in the table calendar_event

Parameters:
event - The reference of SimpleEvent
nProjectId - The identifier of the project
strEventDate - The old date of the event
plugin - The Plugin using this data access service


Copyright © 2007 Mairie de Paris. All Rights Reserved.