Package com.jalios.jcms.calendar
Class AbstractCalendarEvent.CalendarEventAttendeeSelector
- java.lang.Object
-
- com.jalios.jcms.calendar.AbstractCalendarEvent.CalendarEventAttendeeSelector
-
- All Implemented Interfaces:
DataSelector
,java.util.function.Predicate<Data>
- Enclosing class:
- AbstractCalendarEvent
public static class AbstractCalendarEvent.CalendarEventAttendeeSelector extends java.lang.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)
-
-
Constructor Summary
Constructors Constructor Description CalendarEventAttendeeSelector(Member mbr)
Build a new CalendarEventAttendeeSelector for the specified member.CalendarEventAttendeeSelector(Member mbr, boolean checkReadRight)
Build a new CalendarEventAttendeeSelector for the specified member.CalendarEventAttendeeSelector(java.util.List<Member> mbrList)
Build a new CalendarEventAttendeeSelector for the specified member.CalendarEventAttendeeSelector(java.util.List<Member> mbrList, boolean checkReadRight)
Build a new CalendarEventAttendeeSelector for the specified member.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
Methods inherited from interface com.jalios.jcms.DataSelector
test
-
-
-
-
Constructor Detail
-
CalendarEventAttendeeSelector
public 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
-
CalendarEventAttendeeSelector
public CalendarEventAttendeeSelector(java.util.List<Member> mbrList)
Build a new CalendarEventAttendeeSelector for the specified member.CalendarEvent will be be included even if Member is not able to read the event.
- Parameters:
mbrList
- the memberList
which must be an attendee for the event to be selected- Since:
- jcms-9.0
-
CalendarEventAttendeeSelector
public 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 selectedcheckReadRight
- 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
-
CalendarEventAttendeeSelector
public CalendarEventAttendeeSelector(java.util.List<Member> mbrList, boolean checkReadRight)
Build a new CalendarEventAttendeeSelector for the specified member.- Parameters:
mbrList
- the memberList
which must be an attendee for the event to be selectedcheckReadRight
- 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-9.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 interfaceDataSelector
- Parameters:
data
- the data to evaluate.- Returns:
- true if the data is selected. False otherwise.
-
-