public static com.liferay.calendar.model.CalendarSoap[] search( long companyId, long[] groupIds, long[] calendarResourceIds, java.lang.String name, java.lang.String description, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, java.lang.String actionId) throws RemoteException { try { java.util.List<com.liferay.calendar.model.Calendar> returnValue = CalendarServiceUtil.search( companyId, groupIds, calendarResourceIds, name, description, andOperator, start, end, orderByComparator, actionId); return com.liferay.calendar.model.CalendarSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
public static List<Calendar> getCalendarResourceCalendars(CalendarResource calendarResource) throws PortalException, SystemException { return CalendarServiceUtil.search( calendarResource.getCompanyId(), new long[] {calendarResource.getGroupId()}, new long[] {calendarResource.getCalendarResourceId()}, null, false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, new CalendarNameComparator(true)); }