
com.liferay.dispatch.service.DispatchTriggerService 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.dispatch.service;
import com.liferay.dispatch.executor.DispatchTaskClusterMode;
import com.liferay.dispatch.model.DispatchTrigger;
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.transaction.Isolation;
import com.liferay.portal.kernel.transaction.Propagation;
import com.liferay.portal.kernel.transaction.Transactional;
import com.liferay.portal.kernel.util.UnicodeProperties;
import java.util.List;
import org.osgi.annotation.versioning.ProviderType;
/**
* Provides the remote service interface for DispatchTrigger. Methods of this
* service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely.
*
* @author Matija Petanjek
* @see DispatchTriggerServiceUtil
* @generated
*/
@AccessControlled
@JSONWebService
@ProviderType
@Transactional(
isolation = Isolation.PORTAL,
rollbackFor = {PortalException.class, SystemException.class}
)
public interface DispatchTriggerService extends BaseService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add custom service methods to com.liferay.dispatch.service.impl.DispatchTriggerServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface. Consume the dispatch trigger remote service via injection or a org.osgi.util.tracker.ServiceTracker
. Use {@link DispatchTriggerServiceUtil} if injection and service tracking are not available.
*/
public DispatchTrigger addDispatchTrigger(
String externalReferenceCode, long userId,
String dispatchTaskExecutorType,
UnicodeProperties dispatchTaskSettingsUnicodeProperties,
String name)
throws PortalException;
public void deleteDispatchTrigger(long dispatchTriggerId)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public DispatchTrigger getDispatchTrigger(long dispatchTriggerId)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List getDispatchTriggers(int start, int end)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getDispatchTriggersCount() throws PortalException;
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public String getOSGiServiceIdentifier();
public DispatchTrigger updateDispatchTrigger(
long dispatchTriggerId, boolean active, String cronExpression,
DispatchTaskClusterMode dispatchTaskClusterMode, int endDateMonth,
int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
boolean neverEnd, boolean overlapAllowed, int startDateMonth,
int startDateDay, int startDateYear, int startDateHour,
int startDateMinute, String timeZoneId)
throws PortalException;
public DispatchTrigger updateDispatchTrigger(
long dispatchTriggerId,
UnicodeProperties dispatchTaskSettingsUnicodeProperties,
String name)
throws PortalException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy