com.jalios.jcms.calendar
Class AbstractCalendarEvent.CalendarEventAttendeeSelector

java.lang.Object
  extended by com.jalios.jcms.calendar.AbstractCalendarEvent.CalendarEventAttendeeSelector
All Implemented Interfaces:
DataSelector
Enclosing class:
AbstractCalendarEvent

public static class AbstractCalendarEvent.CalendarEventAttendeeSelector
extends Object
implements DataSelector

This DataSelector selects all the CalendarEvent of which the given member is an attendee (either because he is the author or he is in the list of attendees).

Since:
jcms-4.1.1
See Also:
AbstractCalendarEvent.isAttendee(Member, boolean)

Field Summary
 
Fields inherited from interface com.jalios.jcms.DataSelector
REVISION
 
Constructor Summary
AbstractCalendarEvent.CalendarEventAttendeeSelector(Member mbr)
          Build a new CalendarEventAttendeeSelector for the specified member.
AbstractCalendarEvent.CalendarEventAttendeeSelector(Member mbr, boolean checkReadRight)
          Build a new CalendarEventAttendeeSelector for the specified member.
 
Method Summary
 boolean isSelected(Data data)
          Evaluates if a data must be selected or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCalendarEvent.CalendarEventAttendeeSelector

public AbstractCalendarEvent.CalendarEventAttendeeSelector(Member mbr)
Build a new CalendarEventAttendeeSelector for the specified member.

CalendarEvent will be be included even if Member is not able to read the event.

Parameters:
mbr - the member which must be an attendee for the event to be selected
Since:
jcms-6.1.3, jcms-7.0

AbstractCalendarEvent.CalendarEventAttendeeSelector

public AbstractCalendarEvent.CalendarEventAttendeeSelector(Member mbr,
                                                           boolean checkReadRight)
Build a new CalendarEventAttendeeSelector for the specified member.

Parameters:
mbr - the member which must be an attendee for the event to be selected
checkReadRight - set to true if read right should be checked, false if all CalendarEvent should be included even if Member is not able to read the event
Since:
jcms-6.1.3, jcms-7.0
Method Detail

isSelected

public boolean isSelected(Data data)
Description copied from interface: DataSelector
Evaluates if a data must be selected or not.

Specified by:
isSelected in interface DataSelector
Parameters:
data - the data to evaluate.
Returns:
true if the data is selected. False otherwise.


Copyright © 2001-2010 Jalios SA. All Rights Reserved.