Skip to content

Commit 581f582

Browse files
feat: Adding new activity configuration
Signed-off-by: Samuelson Brito <samuelsonma@gmail.com>
1 parent cc56909 commit 581f582

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

appinfo/info.xml

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Developed with ❤️ by [LibreCode](https://librecode.coop). Help us transform
7272
<activity>
7373
<settings>
7474
<setting>OCA\Libresign\Activity\Settings\FileToSign</setting>
75+
<setting>OCA\Libresign\Activity\Settings\FileSigned</setting>
7576
</settings>
7677
<filters>
7778
<filter>OCA\Libresign\Activity\Filter</filter>

lib/Activity/Settings/FileSigned.php

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
6+
* SPDX-License-Identifier: AGPL-3.0-or-later
7+
*/
8+
9+
namespace OCA\Libresign\Activity\Settings;
10+
11+
use OCP\IL10N;
12+
13+
class FileSigned extends LibresignActivitySettings {
14+
public function __construct(
15+
protected IL10N $l,
16+
) {
17+
}
18+
19+
/**
20+
* @return string Lowercase a-z and underscore only identifier. The type of table activity
21+
* @since 20.0.0
22+
*/
23+
public function getIdentifier(): string {
24+
return 'file_signed';
25+
}
26+
27+
/**
28+
* @return string A translated string
29+
* @since 11.0.0
30+
*/
31+
public function getName(): string {
32+
return $this->l->t('A document has been <strong>signed</strong>');
33+
}
34+
35+
/**
36+
* {@inheritdoc}
37+
*/
38+
public function getPriority(): int {
39+
return 52;
40+
}
41+
42+
}

0 commit comments

Comments
 (0)