|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.calendar.business.CalendarHome
public class CalendarHome
This class provides instances management methods (selectEventsList, findByPrimaryKey, findAgendasList ...) for Calendar objects ( AgendaResource, Events, ...)
Constructor Summary | |
---|---|
CalendarHome()
|
Method Summary | |
---|---|
static void |
createEvent(int nProjectId,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new event in the table calendar_events. |
static void |
createProject(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new project in the table calendar_projects. |
static AgendaResource |
findAgendaResource(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a AgendaResource whose identifier is specified in parameter |
static java.util.List<AgendaResource> |
findAgendaResourcesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of AgendaResources |
static SimpleEvent |
findEvent(int nProjectId,
java.lang.String strEventDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table |
static java.util.List<SimpleEvent> |
findEventsList(int nProjectId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
static void |
removeEvent(int nProjectId,
java.lang.String strDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events |
static void |
removeProject(int nProjectId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a Project from the table calendar_projects |
static void |
updateEvent(int nProjectId,
java.lang.String strDate,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the event in the table calendar_event |
static void |
updateProject(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the project in the table calendar_project |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalendarHome()
Method Detail |
---|
public static void createProject(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda
- The AgendaResource objectplugin
- The Plugin using this data access servicepublic static void updateProject(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda
- The reference of AgendaResourceplugin
- The Plugin using this data access servicepublic static void removeProject(int nProjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nProjectId
- The Project Idplugin
- The Plugin using this data access servicepublic static java.util.List<AgendaResource> findAgendaResourcesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The plugin
public static AgendaResource findAgendaResource(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- The Primary key of the contactplugin
- The Plugin object
public static void createEvent(int nProjectId, SimpleEvent event, fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda
- The SimpleEvent objectplugin
- The Plugin using this data access servicepublic static void updateEvent(int nProjectId, java.lang.String strDate, SimpleEvent event, fr.paris.lutece.portal.service.plugin.Plugin plugin)
event
- The reference of SimpleEventnId
- The identifier of the projectstrDate
- the old event dateplugin
- The Plugin using this data access servicepublic static void removeEvent(int nProjectId, java.lang.String strDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nProjectId
- The Project Idplugin
- The Plugin using this data access servicepublic static SimpleEvent findEvent(int nProjectId, java.lang.String strEventDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nId
- The identifier of SimpleEventplugin
- The plugin
AppException
public static java.util.List<SimpleEvent> findEventsList(int nProjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The pluginnProjectId
- The identifier of the project
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |