com.liferay.calendar.service.CalendarService Maven / Gradle / Ivy
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.calendar.service;
import com.liferay.calendar.model.Calendar;
import com.liferay.portal.kernel.change.tracking.CTAware;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
import com.liferay.portal.kernel.security.access.control.AccessControlled;
import com.liferay.portal.kernel.service.BaseService;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.transaction.Isolation;
import com.liferay.portal.kernel.transaction.Propagation;
import com.liferay.portal.kernel.transaction.Transactional;
import com.liferay.portal.kernel.util.OrderByComparator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.osgi.annotation.versioning.ProviderType;
/**
* Provides the remote service interface for Calendar. 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 CalendarServiceUtil
* @generated
*/
@AccessControlled
@CTAware
@JSONWebService
@ProviderType
@Transactional(
isolation = Isolation.PORTAL,
rollbackFor = {PortalException.class, SystemException.class}
)
public interface CalendarService extends BaseService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add custom service methods to com.liferay.calendar.service.impl.CalendarServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface. Consume the calendar remote service via injection or a org.osgi.util.tracker.ServiceTracker
. Use {@link CalendarServiceUtil} if injection and service tracking are not available.
*/
public Calendar addCalendar(
long groupId, long calendarResourceId, Map nameMap,
Map descriptionMap, String timeZoneId, int color,
boolean defaultCalendar, boolean enableComments,
boolean enableRatings, ServiceContext serviceContext)
throws PortalException;
public Calendar deleteCalendar(long calendarId) throws PortalException;
public String exportCalendar(long calendarId, String type) throws Exception;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public Calendar fetchCalendar(long calendarId) throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public Calendar getCalendar(long calendarId) throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List getCalendarResourceCalendars(
long groupId, long calendarResourceId)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List getCalendarResourceCalendars(
long groupId, long calendarResourceId, boolean defaultCalendar)
throws PortalException;
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public String getOSGiServiceIdentifier();
public void importCalendar(long calendarId, String data, String type)
throws Exception;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public boolean isManageableFromGroup(long calendarId, long groupId)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List search(
long companyId, long[] groupIds, long[] calendarResourceIds,
String keywords, boolean andOperator, int start, int end,
OrderByComparator orderByComparator)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List search(
long companyId, long[] groupIds, long[] calendarResourceIds,
String keywords, boolean andOperator, int start, int end,
OrderByComparator orderByComparator, String actionId)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List search(
long companyId, long[] groupIds, long[] calendarResourceIds,
String name, String description, boolean andOperator, int start,
int end, OrderByComparator orderByComparator)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List search(
long companyId, long[] groupIds, long[] calendarResourceIds,
String name, String description, boolean andOperator, int start,
int end, OrderByComparator orderByComparator,
String actionId)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int searchCount(
long companyId, long[] groupIds, long[] calendarResourceIds,
String keywords, boolean andOperator)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int searchCount(
long companyId, long[] groupIds, long[] calendarResourceIds,
String keywords, boolean andOperator, String actionId)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int searchCount(
long companyId, long[] groupIds, long[] calendarResourceIds,
String name, String description, boolean andOperator)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int searchCount(
long companyId, long[] groupIds, long[] calendarResourceIds,
String name, String description, boolean andOperator,
String actionId)
throws PortalException;
public Calendar updateCalendar(
long calendarId, Map nameMap,
Map descriptionMap, int color,
ServiceContext serviceContext)
throws PortalException;
public Calendar updateCalendar(
long calendarId, Map nameMap,
Map descriptionMap, String timeZoneId, int color,
boolean defaultCalendar, boolean enableComments,
boolean enableRatings, ServiceContext serviceContext)
throws PortalException;
public Calendar updateColor(
long calendarId, int color, ServiceContext serviceContext)
throws PortalException;
}