Package com.groiss.cal
Interface CalInfo
- All Known Implementing Classes:
CalInfoAdapter
public interface CalInfo
Source for Calendar Events.
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
Return some argument string, if in one CalInfo implementation you want to distinguish different behaviours (return different event lists).Return all possible captions for thisCalInfo
.default String
return the classname of the cal-source - should be getClass().getName();getName()
Returns the name of thisCalInfo
.Get all possible views for this user.default CalView
Returns the view with the given id for the user.default MultiMap<Persistent,
CalEvent> listEvents
(List<Persistent> objects, Date startDate, Date endDate) This function returns a bunch of dates for each passed objectdefault void
setArguments
(String arguments) The arguments defined in getArguments are set to the instance.
-
Method Details
-
listEvents
default MultiMap<Persistent,CalEvent> listEvents(List<Persistent> objects, Date startDate, Date endDate) This function returns a bunch of dates for each passed object- Parameters:
objects
- the objects the dates should be forstartDate
- range startdateendDate
- range endtime- Returns:
MultiMap
of dates occuring in the range of time
-
getName
String getName()Returns the name of thisCalInfo
.- Returns:
- the name
-
getClassName
return the classname of the cal-source - should be getClass().getName(); -
getCaptions
Return all possible captions for thisCalInfo
.- Returns:
- list of Pairs, first element: name of a css class, second element a description text.
-
getView
Returns the view with the given id for the user.- Parameters:
id
- the view's idu
- the current user- Returns:
- the view
-
getPossibleViews
Get all possible views for this user. This is currently not used.- Parameters:
u
- the current user- Returns:
- a list with all possible views
Pair.first
the view's id -getView(String, User)
should be able to handle this idPair.second
the view's name
-
getArguments
Return some argument string, if in one CalInfo implementation you want to distinguish different behaviours (return different event lists). For example, one instance returns 'all', another 'private'. -
setArguments
The arguments defined in getArguments are set to the instance. This is called before listEvents is called.- Parameters:
arguments
-
-