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