Skip to content

Package: TriggerService

TriggerService

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.scheduler.trigger;
14:
15: import org.eclipse.kapua.KapuaException;
16: import org.eclipse.kapua.model.query.KapuaQuery;
17: import org.eclipse.kapua.service.KapuaEntityService;
18: import org.eclipse.kapua.service.KapuaUpdatableEntityService;
19:
20: /**
21: * {@link Trigger} {@link KapuaEntityService} definition.
22: *
23: * @see KapuaEntityService
24: * @see KapuaUpdatableEntityService
25: * @since 1.0.0
26: */
27: public interface TriggerService extends KapuaEntityService<Trigger, TriggerCreator>,
28: KapuaUpdatableEntityService<Trigger> {
29:
30: /**
31: * Returns the {@link TriggerListResult} with elements matching the provided query.
32: *
33: * @param query The {@link TriggerQuery} used to filter results.
34: * @return The {@link TriggerListResult} with elements matching the query parameter.
35: * @throws KapuaException
36: * @since 1.0.0
37: */
38: @Override
39: TriggerListResult query(KapuaQuery query) throws KapuaException;
40:
41: }