All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.calendar.service.CalendarServiceUtil Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.calendar.service;

import aQute.bnd.annotation.ProviderType;

import org.osgi.framework.Bundle;
import org.osgi.framework.FrameworkUtil;
import org.osgi.util.tracker.ServiceTracker;

/**
 * Provides the remote service utility for Calendar. This utility wraps
 * com.liferay.calendar.service.impl.CalendarServiceImpl and is an
 * access point for service operations in application layer code running on a
 * remote server. Methods of this service are expected to have security checks
 * based on the propagated JAAS credentials because this service can be
 * accessed remotely.
 *
 * @author Eduardo Lundgren
 * @see CalendarService
 * @generated
 */
@ProviderType
public class CalendarServiceUtil {

	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Add custom service methods to com.liferay.calendar.service.impl.CalendarServiceImpl and rerun ServiceBuilder to regenerate this class.
	 */
	public static com.liferay.calendar.model.Calendar addCalendar(
			long groupId, long calendarResourceId,
			java.util.Map nameMap,
			java.util.Map descriptionMap,
			String timeZoneId, int color, boolean defaultCalendar,
			boolean enableComments, boolean enableRatings,
			com.liferay.portal.kernel.service.ServiceContext serviceContext)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().addCalendar(
			groupId, calendarResourceId, nameMap, descriptionMap, timeZoneId,
			color, defaultCalendar, enableComments, enableRatings,
			serviceContext);
	}

	public static com.liferay.calendar.model.Calendar deleteCalendar(
			long calendarId)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().deleteCalendar(calendarId);
	}

	public static String exportCalendar(long calendarId, String type)
		throws Exception {

		return getService().exportCalendar(calendarId, type);
	}

	public static com.liferay.calendar.model.Calendar fetchCalendar(
			long calendarId)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().fetchCalendar(calendarId);
	}

	public static com.liferay.calendar.model.Calendar getCalendar(
			long calendarId)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().getCalendar(calendarId);
	}

	public static java.util.List
			getCalendarResourceCalendars(long groupId, long calendarResourceId)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().getCalendarResourceCalendars(
			groupId, calendarResourceId);
	}

	public static java.util.List
			getCalendarResourceCalendars(
				long groupId, long calendarResourceId, boolean defaultCalendar)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().getCalendarResourceCalendars(
			groupId, calendarResourceId, defaultCalendar);
	}

	/**
	 * Returns the OSGi service identifier.
	 *
	 * @return the OSGi service identifier
	 */
	public static String getOSGiServiceIdentifier() {
		return getService().getOSGiServiceIdentifier();
	}

	public static void importCalendar(long calendarId, String data, String type)
		throws Exception {

		getService().importCalendar(calendarId, data, type);
	}

	public static boolean isManageableFromGroup(long calendarId, long groupId)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().isManageableFromGroup(calendarId, groupId);
	}

	public static java.util.List search(
			long companyId, long[] groupIds, long[] calendarResourceIds,
			String keywords, boolean andOperator, int start, int end,
			com.liferay.portal.kernel.util.OrderByComparator
				 orderByComparator)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().search(
			companyId, groupIds, calendarResourceIds, keywords, andOperator,
			start, end, orderByComparator);
	}

	public static java.util.List search(
			long companyId, long[] groupIds, long[] calendarResourceIds,
			String keywords, boolean andOperator, int start, int end,
			com.liferay.portal.kernel.util.OrderByComparator
				 orderByComparator,
			String actionId)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().search(
			companyId, groupIds, calendarResourceIds, keywords, andOperator,
			start, end, orderByComparator, actionId);
	}

	public static java.util.List search(
			long companyId, long[] groupIds, long[] calendarResourceIds,
			String name, String description, boolean andOperator, int start,
			int end,
			com.liferay.portal.kernel.util.OrderByComparator
				 orderByComparator)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().search(
			companyId, groupIds, calendarResourceIds, name, description,
			andOperator, start, end, orderByComparator);
	}

	public static java.util.List search(
			long companyId, long[] groupIds, long[] calendarResourceIds,
			String name, String description, boolean andOperator, int start,
			int end,
			com.liferay.portal.kernel.util.OrderByComparator
				 orderByComparator,
			String actionId)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().search(
			companyId, groupIds, calendarResourceIds, name, description,
			andOperator, start, end, orderByComparator, actionId);
	}

	public static int searchCount(
			long companyId, long[] groupIds, long[] calendarResourceIds,
			String keywords, boolean andOperator)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().searchCount(
			companyId, groupIds, calendarResourceIds, keywords, andOperator);
	}

	public static int searchCount(
			long companyId, long[] groupIds, long[] calendarResourceIds,
			String keywords, boolean andOperator, String actionId)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().searchCount(
			companyId, groupIds, calendarResourceIds, keywords, andOperator,
			actionId);
	}

	public static int searchCount(
			long companyId, long[] groupIds, long[] calendarResourceIds,
			String name, String description, boolean andOperator)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().searchCount(
			companyId, groupIds, calendarResourceIds, name, description,
			andOperator);
	}

	public static int searchCount(
			long companyId, long[] groupIds, long[] calendarResourceIds,
			String name, String description, boolean andOperator,
			String actionId)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().searchCount(
			companyId, groupIds, calendarResourceIds, name, description,
			andOperator, actionId);
	}

	public static com.liferay.calendar.model.Calendar updateCalendar(
			long calendarId, java.util.Map nameMap,
			java.util.Map descriptionMap, int color,
			com.liferay.portal.kernel.service.ServiceContext serviceContext)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().updateCalendar(
			calendarId, nameMap, descriptionMap, color, serviceContext);
	}

	public static com.liferay.calendar.model.Calendar updateCalendar(
			long calendarId, java.util.Map nameMap,
			java.util.Map descriptionMap,
			String timeZoneId, int color, boolean defaultCalendar,
			boolean enableComments, boolean enableRatings,
			com.liferay.portal.kernel.service.ServiceContext serviceContext)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().updateCalendar(
			calendarId, nameMap, descriptionMap, timeZoneId, color,
			defaultCalendar, enableComments, enableRatings, serviceContext);
	}

	public static com.liferay.calendar.model.Calendar updateColor(
			long calendarId, int color,
			com.liferay.portal.kernel.service.ServiceContext serviceContext)
		throws com.liferay.portal.kernel.exception.PortalException {

		return getService().updateColor(calendarId, color, serviceContext);
	}

	public static CalendarService getService() {
		return _serviceTracker.getService();
	}

	private static ServiceTracker
		_serviceTracker;

	static {
		Bundle bundle = FrameworkUtil.getBundle(CalendarService.class);

		ServiceTracker serviceTracker =
			new ServiceTracker(
				bundle.getBundleContext(), CalendarService.class, null);

		serviceTracker.open();

		_serviceTracker = serviceTracker;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy