Class CalendarTool
java.lang.Object
com.logicaldoc.calendar.automation.CalendarTool
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(Event event) Initializes lazy loaded collectionsnewEvent
(long tenantId, String title, Date start, Collection<Attendee> attendees, Collection<com.logicaldoc.core.document.Document> documents) Creates a new calendar eventvoid
remove
(long eventId) Deletes an eventvoid
Stores into the database the given calendar envent
-
Constructor Details
-
CalendarTool
public CalendarTool()
-
-
Method Details
-
save
Stores into the database the given calendar envent- Parameters:
event
- the event to save / update- Throws:
com.logicaldoc.core.PersistenceException
- error at data layer
-
initialize
Initializes lazy loaded collections- Parameters:
event
- the event to initialize
-
remove
public void remove(long eventId) throws com.logicaldoc.core.PersistenceException Deletes an event- Parameters:
eventId
- identifier of the event to delete- Throws:
com.logicaldoc.core.PersistenceException
- error at data layer
-
newEvent
public Event newEvent(long tenantId, String title, Date start, Collection<Attendee> attendees, Collection<com.logicaldoc.core.document.Document> documents) throws com.logicaldoc.core.PersistenceException Creates a new calendar event- Parameters:
tenantId
- the current tenanttitle
- the title of the eventstart
- when the event startsattendees
- optional collection of attendeesdocuments
- optional collection of documents- Returns:
- the created event
- Throws:
com.logicaldoc.core.PersistenceException
- error at data layer
-