|
||||||||||
| 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 |
createAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new agenda in the table calendar_agendas. |
static void |
createEvent(int nAgendaId,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new event in the table calendar_events. |
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 nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table |
static java.util.List<SimpleEvent> |
findEventsList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
static void |
removeAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an agenda from the table calendar_agendas |
static void |
removeEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events |
static void |
updateAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the agenda in the table calendar_agendas |
static void |
updateEvent(int nAgendaId,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the event in the table calendar_event |
| 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 createAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda - The AgendaResource objectplugin - The Plugin using this data access service
public static void updateAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda - The reference of AgendaResourceplugin - The Plugin using this data access service
public static void removeAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId - The agenda 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 nAgendaId,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.portal.service.util.AppException
nAgendaId - The agenda idevent - the eventplugin - The Plugin using this data access service
fr.paris.lutece.portal.service.util.AppException - AppException
public static void updateEvent(int nAgendaId,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.portal.service.util.AppException
nAgendaId - The agenda idstrTitle - The title of the eventevent - The reference of SimpleEventstrDate - the old event dateplugin - The Plugin using this data access service
fr.paris.lutece.portal.service.util.AppException - Exception thrown if an error is detected
public static void removeEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strDate - The datestrTitle - The titlenAgendaId - The agenda Idplugin - The Plugin using this data access service
public static SimpleEvent findEvent(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId - The agenda idstrEventDate - The event datestrTitle - The title of the eventplugin - The plugin
public static java.util.List<SimpleEvent> findEventsList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agenda
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||