summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/workflowengine/lib/Entity/File.php4
-rw-r--r--apps/workflowengine/lib/Manager.php2
-rw-r--r--apps/workflowengine/lib/Settings/ASettings.php2
-rw-r--r--lib/public/WorkflowEngine/IEntity.php14
4 files changed, 2 insertions, 20 deletions
diff --git a/apps/workflowengine/lib/Entity/File.php b/apps/workflowengine/lib/Entity/File.php
index 0ba3502450a..d4f41625e4e 100644
--- a/apps/workflowengine/lib/Entity/File.php
+++ b/apps/workflowengine/lib/Entity/File.php
@@ -41,10 +41,6 @@ class File implements IEntity {
$this->urlGenerator = $urlGenerator;
}
- public function getId(): string {
- return 'WorkflowEngine_Entity_File';
- }
-
public function getName(): string {
return $this->l10n->t('File');
}
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php
index 0a1b7fab6c5..adde5309195 100644
--- a/apps/workflowengine/lib/Manager.php
+++ b/apps/workflowengine/lib/Manager.php
@@ -570,7 +570,7 @@ class Manager implements IManager, IEntityAware {
* @since 18.0.0
*/
public function registerEntity(IEntity $entity): void {
- $this->registeredEntities[$entity->getId()] = $entity;
+ $this->registeredEntities[get_class($entity)] = $entity;
}
public function registerOperation(IOperation $operator): void {
diff --git a/apps/workflowengine/lib/Settings/ASettings.php b/apps/workflowengine/lib/Settings/ASettings.php
index af3208fce27..7423c51fd93 100644
--- a/apps/workflowengine/lib/Settings/ASettings.php
+++ b/apps/workflowengine/lib/Settings/ASettings.php
@@ -131,7 +131,7 @@ abstract class ASettings implements ISettings {
}, $entity->getEvents());
return [
- 'id' => $entity->getId(),
+ 'id' => get_class($entity),
'icon' => $entity->getIcon(),
'name' => $entity->getName(),
'events' => $events,
diff --git a/lib/public/WorkflowEngine/IEntity.php b/lib/public/WorkflowEngine/IEntity.php
index 2e77b741367..5ac1082a5a3 100644
--- a/lib/public/WorkflowEngine/IEntity.php
+++ b/lib/public/WorkflowEngine/IEntity.php
@@ -39,20 +39,6 @@ namespace OCP\WorkflowEngine;
interface IEntity {
/**
- * returns a unique ID of the entity.
- *
- * It can be, but does not need to be the class name of the entitiy. Beware
- * that it will be referenced in the database when rules are established,
- * so it should not change over the course of the app life.
- *
- * Example 1: "OCA/MyApp/Entity/Cat"
- * Example 2: "myapp_Cats"
- *
- * @since 18.0.0
- */
- public function getId(): string;
-
- /**
* returns a translated name to be presented in the web interface.
*
* Example: "File" (en), "Dosiero" (eo)