0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-12-06 11:22:41 +01:00

added occ commands to inspect organization providers, organizations and organization roles

This commit is contained in:
Jonathan Treffler 2024-11-03 02:19:17 +01:00
parent 21f3a39b06
commit f85a93aa3a
11 changed files with 202 additions and 9 deletions

View file

@ -2,16 +2,18 @@
namespace OCA\OrganizationFolders\Model;
class OrganizationRole implements \JsonSerializable {
use OCA\OrganizationFolders\Interface\TableSerializable;
class OrganizationRole implements \JsonSerializable, TableSerializable {
public function __construct(
private int $id,
private string $id,
private int $organizationId,
private string $friendlyName,
private string $membersGroup,
) {
}
public function getId(): int {
public function getId(): string {
return $this->id;
}
@ -35,4 +37,13 @@ class OrganizationRole implements \JsonSerializable {
'membersGroup' => $this->membersGroup,
];
}
public function tableSerialize(?array $params = null): array {
return [
'Id' => $this->id,
'Name' => $this->friendlyName,
'Organization Id' => $this->organizationId,
'Members Group' => $this->membersGroup,
];
}
}