public List < GoogleEntry > getEntries ( GoogleCalendar calendar , String searchText ) throws IOException { if ( ! calendar . existsInGoogle ( ) ) { return new ArrayList <> ( 0 ) ; } String calendarId = URLDecoder . decode ( calendar . getId ( ) , "UTF-8" ) ; List < Event > events = dao . events ( ) . list ( calendarId ) . setQ ( searchText ) . setSingleEvents ( false ) . setShowDeleted ( false ) . execute ( ) . getItems ( ) ; return toGoogleEntries ( events ) ; }
Gets a list of entries that matches the given text . Recurring events are not expanded always recurrence is handled manually within the framework .