org.alfresco.repo.web.scripts.calendar
Class AbstractCalendarListingWebScript

java.lang.Object
  extended by org.springframework.extensions.webscripts.AbstractWebScript
      extended by org.springframework.extensions.webscripts.DeclarativeWebScript
          extended by org.alfresco.repo.web.scripts.calendar.AbstractCalendarWebScript
              extended by org.alfresco.repo.web.scripts.calendar.AbstractCalendarListingWebScript
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
Direct Known Subclasses:
CalendarEntriesListGet, UserCalendarEntriesGet

public abstract class AbstractCalendarListingWebScript
extends AbstractCalendarWebScript

This class provides functionality common across the webscripts which list events.

Since:
4.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
 
Field Summary
protected static java.lang.String RESULT_END
           
protected static java.lang.String RESULT_EVENT
           
protected static java.lang.String RESULT_NAME
           
protected static java.lang.String RESULT_START
           
protected static java.lang.String RESULT_TITLE
           
 
Fields inherited from class org.alfresco.repo.web.scripts.calendar.AbstractCalendarWebScript
activityService, CALENDAR_SERVICE_ACTIVITY_APP_NAME, calendarService, MAX_QUERY_ENTRY_COUNT, nodeService, PARAM_END_AT, PARAM_ISO8601, PARAM_START_AT, PARAM_TIMEZONE, siteService
 
Constructor Summary
AbstractCalendarListingWebScript()
           
 
Method Summary
protected static java.util.Comparator getEventDetailsSorter()
          Returns a Comparator for (re-)sorting events, typically used after expanding out recurring instances.
protected  boolean handleRecurring(org.alfresco.service.cmr.calendar.CalendarEntry entry, java.util.Map entryResult, java.util.List allResults, java.util.Date from, java.util.Date until, boolean repeatingFirstOnly)
          Do what's needed for recurring events.
 
Methods inherited from class org.alfresco.repo.web.scripts.calendar.AbstractCalendarWebScript
addActivityEntry, buildError, buildPagingRequest, createIgnoreEvent, executeImpl, executeImpl, extractDates, getOrNull, parseDate, setActivityService, setCalendarService, setNodeService, setSiteService, useJSONErrors
 
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
 
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESULT_EVENT

protected static final java.lang.String RESULT_EVENT
See Also:
Constant Field Values

RESULT_NAME

protected static final java.lang.String RESULT_NAME
See Also:
Constant Field Values

RESULT_TITLE

protected static final java.lang.String RESULT_TITLE
See Also:
Constant Field Values

RESULT_START

protected static final java.lang.String RESULT_START
See Also:
Constant Field Values

RESULT_END

protected static final java.lang.String RESULT_END
See Also:
Constant Field Values
Constructor Detail

AbstractCalendarListingWebScript

public AbstractCalendarListingWebScript()
Method Detail

getEventDetailsSorter

protected static java.util.Comparator getEventDetailsSorter()
Returns a Comparator for (re-)sorting events, typically used after expanding out recurring instances.


handleRecurring

protected boolean handleRecurring(org.alfresco.service.cmr.calendar.CalendarEntry entry,
                                  java.util.Map entryResult,
                                  java.util.List allResults,
                                  java.util.Date from,
                                  java.util.Date until,
                                  boolean repeatingFirstOnly)
Do what's needed for recurring events.

Returns:
If dates have been tweaked, and a sort may be required


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.