|
||||||||||
| 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,
java.lang.String strTitle,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table |
static java.util.List<SimpleEvent> |
findEventsList(int nProjectId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
static void |
removeEvent(int nProjectId,
java.lang.String strDate,
java.lang.String strTitle,
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,
java.lang.String strTitle,
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 service
public static void updateProject(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 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)
throws fr.paris.lutece.portal.service.util.AppException
agenda - The SimpleEvent objectplugin - The Plugin using this data access service
fr.paris.lutece.portal.service.util.AppException
public static void updateEvent(int nProjectId,
java.lang.String strDate,
java.lang.String strTitle,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.portal.service.util.AppException
event - The reference of SimpleEventnId - The identifier of the projectstrDate - the old event dateplugin - The Plugin using this data access service
fr.paris.lutece.portal.service.util.AppException
public static void removeEvent(int nProjectId,
java.lang.String strDate,
java.lang.String strTitle,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nProjectId - The Project Idplugin - The Plugin using this data access service
public static SimpleEvent findEvent(int nProjectId,
java.lang.String strEventDate,
java.lang.String strTitle,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nId - The identifier of SimpleEventplugin - The plugin
fr.paris.lutece.portal.service.util.AppException
public static java.util.List<SimpleEvent> findEventsList(int nProjectId,
int nSortEvents,
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 | |||||||||