public class AgendaComponent extends DefaultComponent implements AgendaService
Modifier and Type | Field and Description |
---|---|
protected static org.joda.time.format.DateTimeFormatter |
dateTimeFormatter |
protected static String |
QUERY_BETWEEN_DATES |
protected static String |
QUERY_LIMIT |
static String |
SCHEDULABLE_TYPE |
static String |
VEVENT_TYPE |
lastModified
Constructor and Description |
---|
AgendaComponent() |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
createEvent(CoreSession session,
String path,
Map<String,Serializable> properties)
Create a new Event document to the specific path.
|
protected static String |
formatDate(Date date) |
protected String |
getCurrentUserWorkspacePath(CoreSession session) |
DocumentModelList |
listEvents(CoreSession session,
String path,
Date dtStart,
Date dtEnd)
List user readable agendum between both date
|
DocumentModelList |
listEvents(CoreSession session,
String path,
int limit)
List incoming user readable agendum with a limit
|
activate, deactivate, getAdapter, getLastModified, registerContribution, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
public static final String VEVENT_TYPE
public static final String SCHEDULABLE_TYPE
protected static final org.joda.time.format.DateTimeFormatter dateTimeFormatter
protected static final String QUERY_BETWEEN_DATES
protected static final String QUERY_LIMIT
public AgendaComponent()
public DocumentModelList listEvents(CoreSession session, String path, Date dtStart, Date dtEnd)
AgendaService
listEvents
in interface AgendaService
dtStart
- the start datedtEnd
- the end date (included)public DocumentModelList listEvents(CoreSession session, String path, int limit)
AgendaService
listEvents
in interface AgendaService
limit
- the number of events returned must be greater than 0 otherwise NuxeoException is thrownprotected static String formatDate(Date date)
public DocumentModel createEvent(CoreSession session, String path, Map<String,Serializable> properties)
AgendaService
createEvent
in interface AgendaService
path
- base path, if it is blank or "/"; the new event will be created into the UserWorkspaceproperties
- corresponding metadataprotected String getCurrentUserWorkspacePath(CoreSession session)
Copyright © 2017 Nuxeo. All rights reserved.