feat: project role-bound postboxes
This commit is contained in:
@@ -5,6 +5,7 @@ from govoplan_core.core.institutional import (
|
||||
CAPABILITY_SERVICE_DEFINITIONS,
|
||||
service_launch_capability,
|
||||
)
|
||||
from govoplan_core.core.postbox import CAPABILITY_POSTBOX_PORTAL
|
||||
from govoplan_core.core.modules import (
|
||||
CapabilityDocumentation,
|
||||
DocumentationLink,
|
||||
@@ -61,11 +62,13 @@ manifest = ModuleManifest(
|
||||
"forms",
|
||||
"forms_runtime",
|
||||
"workflow_engine",
|
||||
"postbox",
|
||||
),
|
||||
optional_capabilities=(
|
||||
CAPABILITY_SERVICE_DEFINITIONS,
|
||||
CAPABILITY_SERVICE_AVAILABILITY,
|
||||
*SERVICE_LAUNCH_CAPABILITIES,
|
||||
CAPABILITY_POSTBOX_PORTAL,
|
||||
),
|
||||
permissions=(
|
||||
PermissionDefinition(
|
||||
@@ -103,6 +106,12 @@ manifest = ModuleManifest(
|
||||
)
|
||||
for capability in SERVICE_LAUNCH_CAPABILITIES
|
||||
),
|
||||
ModuleInterfaceRequirement(
|
||||
name=CAPABILITY_POSTBOX_PORTAL,
|
||||
version_min="0.1.0",
|
||||
version_max_exclusive="0.2.0",
|
||||
optional=True,
|
||||
),
|
||||
),
|
||||
capability_factories={
|
||||
CAPABILITY_PORTAL_SERVICE_DIRECTORY: _service_directory,
|
||||
@@ -162,6 +171,34 @@ manifest = ModuleManifest(
|
||||
),
|
||||
},
|
||||
documentation=(
|
||||
DocumentationTopic(
|
||||
id="portal.function-postboxes",
|
||||
title="Portal-facing function Postboxes",
|
||||
summary="Open explicitly published function Postboxes without moving their access rules into Portal.",
|
||||
body=(
|
||||
"When Postbox is installed, Portal can display Postboxes whose exact definition or published template revision is marked portal-visible. "
|
||||
"Postbox re-evaluates the current function assignment, classification, and read authority for every projection. Portal stores no Postbox ACL, "
|
||||
"does not expose vacant or inaccessible addresses, and links back to the authoritative Postbox surface."
|
||||
),
|
||||
layer="configured",
|
||||
documentation_types=("admin", "user"),
|
||||
audience=("user", "operator", "module_admin"),
|
||||
translations={
|
||||
"de": {
|
||||
"title": "Portal-sichtbare Funktionspostfächer",
|
||||
"summary": "Ausdrücklich veröffentlichte Funktionspostfächer öffnen, ohne ihre Zugriffsregeln in das Portal zu verlagern.",
|
||||
"body": (
|
||||
"Ist Postbox installiert, kann das Portal Postfächer anzeigen, deren exakte Definition oder veröffentlichte Vorlagenrevision als portalsichtbar markiert ist. "
|
||||
"Postbox prüft für jede Projektion die aktuelle Funktionszuordnung, Klassifikation und Leseberechtigung erneut. Das Portal speichert keine Postfach-ACL, "
|
||||
"zeigt keine unbesetzten oder nicht zugänglichen Adressen und verweist auf die maßgebliche Postbox-Oberfläche."
|
||||
),
|
||||
}
|
||||
},
|
||||
links=(DocumentationLink(label="Portal", href="/portal", kind="runtime"),),
|
||||
related_modules=("postbox", "idm", "organizations"),
|
||||
metadata={"kind": "guide", "help_contexts": ["portal.postboxes"]},
|
||||
order=20,
|
||||
),
|
||||
DocumentationTopic(
|
||||
id="portal.service-directory",
|
||||
title="Service directory",
|
||||
|
||||
Reference in New Issue
Block a user