|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.cal.CalInfoAdapter
public abstract class CalInfoAdapter
default CalInfo
implementation
Constructor Summary | |
---|---|
CalInfoAdapter()
|
Method Summary | |
---|---|
java.util.List<Pair<java.lang.String,java.lang.String>> |
getCaptions()
return all possible captions for this CalInfo |
java.util.List<Pair<java.lang.String,java.lang.String>> |
getPossibleViews(User u)
get all possible views for this users |
CalView |
getView(java.lang.String id,
User u)
returns the view with the given id for the user |
MultiMap<Persistent,CalEvent> |
listEvents(java.util.List<Persistent> objects,
java.util.Date startDate,
java.util.Date endDate)
this function returns a bunch of dates for each passed object |
java.util.List<CalEvent> |
listEvents(Persistent object,
java.util.Date startDate,
java.util.Date endDate)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.groiss.cal.CalInfo |
---|
getName |
Constructor Detail |
---|
public CalInfoAdapter()
Method Detail |
---|
public java.util.List<Pair<java.lang.String,java.lang.String>> getCaptions()
CalInfo
getCaptions
in interface CalInfo
public java.util.List<Pair<java.lang.String,java.lang.String>> getPossibleViews(User u)
getPossibleViews
in interface CalInfo
u
- the current user
Pair.first
the view's id - CalInfo.getView(String, User)
should be able to handle this id
Pair.second
the view's namepublic CalView getView(java.lang.String id, User u)
getView
in interface CalInfo
id
- the view's idu
- the current user
@Deprecated public java.util.List<CalEvent> listEvents(Persistent object, java.util.Date startDate, java.util.Date endDate)
listEvents(List, Date, Date)
instead
object
- the object, the dates should be fetched forstartDate
- enddateendDate
- startdate
public MultiMap<Persistent,CalEvent> listEvents(java.util.List<Persistent> objects, java.util.Date startDate, java.util.Date endDate)
listEvents
in interface CalInfo
objects
- the objects the dates should be forstartDate
- range startdateendDate
- range endtime
MultiMap
of dates occuring in the range of time
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |