2016-07-26 09:16:34 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2024-05-23 07:26:56 +00:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-07-26 09:16:34 +00:00
|
|
|
*/
|
|
|
|
namespace OCP\WorkflowEngine;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface IManager
|
|
|
|
*
|
|
|
|
* @since 9.1
|
|
|
|
*/
|
|
|
|
interface IManager {
|
2024-02-14 19:48:27 +00:00
|
|
|
/**
|
|
|
|
* @since 18.0.0
|
|
|
|
*/
|
2020-04-10 14:54:27 +00:00
|
|
|
public const SCOPE_ADMIN = 0;
|
2024-02-14 19:48:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @since 18.0.0
|
|
|
|
*/
|
2020-04-10 14:54:27 +00:00
|
|
|
public const SCOPE_USER = 1;
|
2019-08-16 15:17:38 +00:00
|
|
|
|
2020-10-28 13:07:14 +00:00
|
|
|
/**
|
|
|
|
* @since 21.0.0
|
|
|
|
*/
|
|
|
|
public const MAX_CHECK_VALUE_BYTES = 2048;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @since 21.0.0
|
|
|
|
*/
|
|
|
|
public const MAX_OPERATION_VALUE_BYTES = 4096;
|
|
|
|
|
2019-08-09 11:24:48 +00:00
|
|
|
/**
|
2019-12-22 14:04:39 +00:00
|
|
|
* Listen to `OCP\WorkflowEngine\Events\RegisterEntitiesEvent` at the
|
|
|
|
* IEventDispatcher for registering your entities.
|
2019-08-09 11:24:48 +00:00
|
|
|
*
|
|
|
|
* @since 18.0.0
|
|
|
|
*/
|
|
|
|
public function registerEntity(IEntity $entity): void;
|
2019-08-23 14:56:24 +00:00
|
|
|
|
|
|
|
/**
|
2019-12-22 14:04:39 +00:00
|
|
|
* Listen to `OCP\WorkflowEngine\Events\RegisterOperationsEvent` at the
|
|
|
|
* IEventDispatcher for registering your operators.
|
2019-08-23 14:56:24 +00:00
|
|
|
*
|
|
|
|
* @since 18.0.0
|
|
|
|
*/
|
2019-08-27 14:52:00 +00:00
|
|
|
public function registerOperation(IOperation $operator): void;
|
2019-09-05 13:52:11 +00:00
|
|
|
|
|
|
|
/**
|
2019-12-22 14:04:39 +00:00
|
|
|
* Listen to `OCP\WorkflowEngine\Events\RegisterChecksEvent` at the
|
|
|
|
* IEventDispatcher for registering your operators.
|
2019-09-05 13:52:11 +00:00
|
|
|
*
|
|
|
|
* @since 18.0.0
|
|
|
|
*/
|
|
|
|
public function registerCheck(ICheck $check): void;
|
2019-09-09 14:53:59 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @since 18.0.0
|
|
|
|
*/
|
|
|
|
public function getRuleMatcher(): IRuleMatcher;
|
2016-07-26 09:16:34 +00:00
|
|
|
}
|