diff --git a/library/Businessprocess/Storage/LegacyStorage.php b/library/Businessprocess/Storage/LegacyStorage.php index b914de4..8c66e43 100644 --- a/library/Businessprocess/Storage/LegacyStorage.php +++ b/library/Businessprocess/Storage/LegacyStorage.php @@ -60,12 +60,7 @@ class LegacyStorage extends Storage } /** - * All processes readable by the current user - * - * The returned array has the form => , sorted - * by title - * - * @return array + * @inheritdoc */ public function listProcesses() { @@ -85,12 +80,7 @@ class LegacyStorage extends Storage } /** - * All process names readable by the current user - * - * The returned array has the form => and is - * sorted - * - * @return array + * @inheritdoc */ public function listProcessNames() { @@ -110,9 +100,7 @@ class LegacyStorage extends Storage } /** - * All available process names, regardless of eventual restrictions - * - * @return array + * @inheritdoc */ public function listAllProcessNames() { diff --git a/library/Businessprocess/Storage/Storage.php b/library/Businessprocess/Storage/Storage.php index 7d8ccb6..71a7faf 100644 --- a/library/Businessprocess/Storage/Storage.php +++ b/library/Businessprocess/Storage/Storage.php @@ -28,10 +28,41 @@ abstract class Storage } /** + * All processes readable by the current user + * + * The returned array has the form => , sorted + * by title + * * @return array */ abstract public function listProcesses(); + /** + * All process names readable by the current user + * + * The returned array has the form => and is + * sorted + * + * @return array + */ + abstract public function listProcessesNames(); + + /** + * All available process names, regardless of eventual restrictions + * + * @return array + */ + abstract public function listAllProcessNames(); + + /** + * Whether a configuration with the given name exists + * + * @param $name + * + * @return bool + */ + abstract public function hasProcess($name); + /** * @param $name * @return BusinessProcess @@ -39,10 +70,13 @@ abstract class Storage abstract public function loadProcess($name); /** - * @param BusinessProcess $name + * Store eventual changes applied to the given configuration + * + * @param BusinessProcess $config + * * @return mixed */ - abstract public function storeProcess(BusinessProcess $name); + abstract public function storeProcess(BusinessProcess $config); /** * @param $name