com.groiss.cal
Interface CalInfo

All Known Implementing Classes:
CalInfoAdapter

public interface CalInfo

source for calevents


Method Summary
 java.util.List<Pair<java.lang.String,java.lang.String>> getCaptions()
          return all possible captions for this CalInfo
 java.lang.String getName()
          returns the name of 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
 

Method Detail

listEvents

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

Parameters:
objects - the objects the dates should be for
startDate - range startdate
endDate - range endtime
Returns:
MultiMap of dates occuring in the range of time

getName

java.lang.String getName()
returns the name of this CalInfo.

Returns:
the name

getCaptions

java.util.List<Pair<java.lang.String,java.lang.String>> getCaptions()
return all possible captions for this CalInfo

Returns:
the captions

getView

CalView getView(java.lang.String id,
                User u)
returns the view with the given id for the user

Parameters:
id - the view's id
u - the current user
Returns:
the view

getPossibleViews

java.util.List<Pair<java.lang.String,java.lang.String>> getPossibleViews(User u)
get all possible views for this users

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 id
Pair.second the view's name


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.