aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Entity
Commit message (Collapse)AuthorAgeFilesLines
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-29/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-311-21/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(workflow): Fix "Call to a member function getUID() on null" with appdataJoas Schilling2023-11-131-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* enh(IMountManager): Add method to get MountPoint from CachedMountInfoJonas2023-10-231-5/+11
| | | | Signed-off-by: Jonas <jonas@freesources.org>
* fix(isLegitimatedForUserId): Setup mountpoints to check file accessJonas2023-10-231-8/+22
| | | | | | | | | | | | | | | This fixes workflows on groupfolders, as it will consider access to files in groupfolders. It also fixes false positives where access to files was limited by other means not taken into account before, e.g. access control. For postDelete events, check for permissions of the parent folder instead, as the file itself no longer exists. Fixes: nextcloud/flow_notifications#71 Signed-off-by: Jonas <jonas@freesources.org>
* Migrate applications away from deprecated ILoggerCôme Chilliet2023-09-211-5/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fixes an undefined index when getAccessList returns an empty arrayArthur Schiwon2021-10-221-1/+1
| | | | | | - [] is a valid return value that should be honored as having no access Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-3/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* File entity to implement IIconArthur Schiwon2020-08-071-1/+9
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Flow File entity implements IContextPortationArthur Schiwon2020-08-051-7/+57
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-5/+4
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use a blank line after the opening tagChristoph Wurst2020-04-091-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix "Call to undefined method OCA\\WorkflowEngine\\Entity\\File::t()"Joas Schilling2020-01-291-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #18162 from nextcloud/enh/noid/url-fileentityblizzz2019-12-191-1/+13
|\ | | | | flow file entity to provide the internal URL
| * flow file entity to provide the internal URLArthur Schiwon2019-12-131-1/+13
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | pass the proper storage-internal pathArthur Schiwon2019-12-171-1/+1
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Set fileInfo in the rule matcherJulius Härtl2019-11-281-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* add convenience interfaces so entities can provide presentable detailsArthur Schiwon2019-11-281-3/+64
| | | | | | the File entity starts with a display text (used by talk) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow user flows when the acting user is legitimate, but not its ownerArthur Schiwon2019-11-281-26/+70
| | | | | | for instance, when a sharee changes a file, the owner can act upon Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* relax dependency on GenericEvent, instead stay compatible with old eventsArthur Schiwon2019-11-131-15/+21
| | | | | | * also fixes tagging events Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* File entity supports tagging events nowArthur Schiwon2019-09-091-1/+18
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* entities equip the RuleMatcher on the events they are aware ofArthur Schiwon2019-09-091-0/+19
| | | | | | Operations will receive the matcher instance Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* introduce GenericEntityEvent and adapt File entityArthur Schiwon2019-09-093-102/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove IEntity's getId in favor of class nameArthur Schiwon2019-09-091-4/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* introducing Entity interfaces and a File one as first implementationArthur Schiwon2019-09-093-0/+161
also adds admin settings that pass entities as initial state Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>