diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-09-11 13:14:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-11 13:14:06 +0200 |
commit | 2187f856ce4eadeee88bd8b9ff47719df52ea025 (patch) | |
tree | 9df95fb0db015c0f597237c105ee7c5838396a97 /apps/workflowengine/lib/Check/AbstractStringCheck.php | |
parent | 0cc780ec0a94e6ea2103ee667b111cc38fe81f12 (diff) | |
parent | 228cb240bcfe18410a2ce53a35531cdba98b014d (diff) | |
download | nextcloud-server-2187f856ce4eadeee88bd8b9ff47719df52ea025.tar.gz nextcloud-server-2187f856ce4eadeee88bd8b9ff47719df52ea025.zip |
Merge pull request #16682 from nextcloud/enh/12790/workflow-backend
workflow overhaul
Diffstat (limited to 'apps/workflowengine/lib/Check/AbstractStringCheck.php')
-rw-r--r-- | apps/workflowengine/lib/Check/AbstractStringCheck.php | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/apps/workflowengine/lib/Check/AbstractStringCheck.php b/apps/workflowengine/lib/Check/AbstractStringCheck.php index 0fd728e3496..e86ac6bec17 100644 --- a/apps/workflowengine/lib/Check/AbstractStringCheck.php +++ b/apps/workflowengine/lib/Check/AbstractStringCheck.php @@ -22,9 +22,9 @@ namespace OCA\WorkflowEngine\Check; -use OCP\Files\Storage\IStorage; use OCP\IL10N; use OCP\WorkflowEngine\ICheck; +use OCP\WorkflowEngine\IManager; abstract class AbstractStringCheck implements ICheck { @@ -42,14 +42,6 @@ abstract class AbstractStringCheck implements ICheck { } /** - * @param IStorage $storage - * @param string $path - */ - public function setFileInfo(IStorage $storage, $path) { - // Nothing changes here with a different path - } - - /** * @return string */ abstract protected function getActualValue(); @@ -101,6 +93,16 @@ abstract class AbstractStringCheck implements ICheck { } } + public function supportedEntities(): array { + // universal by default + return []; + } + + public function isAvailableForScope(int $scope): bool { + // admin only by default + return $scope === IManager::SCOPE_ADMIN; + } + /** * @param string $pattern * @param string $subject |