2019-08-23 10:56:24 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-08-23 10:56:24 -04:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-08-23 10:56:24 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-08-23 10:56:24 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\WorkflowEngine;
|
|
|
|
|
|
|
|
|
|
/**
|
2019-08-27 10:52:00 -04:00
|
|
|
* Interface ISpecificOperation
|
2019-08-23 10:56:24 -04:00
|
|
|
*
|
|
|
|
|
* This interface represents an operator that is designed to work with exactly
|
|
|
|
|
* one entity type.
|
|
|
|
|
*
|
|
|
|
|
* In almost all of the cases it is not necessary to have this limitation,
|
|
|
|
|
* because the action is not connected to the event. This mechanism suits
|
|
|
|
|
* special cases.
|
|
|
|
|
*
|
|
|
|
|
* @since 18.0.0
|
|
|
|
|
*/
|
2019-08-27 10:52:00 -04:00
|
|
|
interface ISpecificOperation extends IOperation {
|
2019-08-23 10:56:24 -04:00
|
|
|
/**
|
|
|
|
|
* returns the id of the entity the operator is designed for
|
|
|
|
|
*
|
|
|
|
|
* Example: 'WorkflowEngine_Entity_File'
|
|
|
|
|
*
|
|
|
|
|
* @since 18.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getEntityId():string;
|
|
|
|
|
}
|