Documents

Dateien und Ordner

MarktplatzInhalte und DokumenteVersion 0.3.0AGPL-3.0-or-latermanifest

Wofür sie gedacht ist ​

A register of business documents with folder, kind, owner, expiry and confidentiality. It stores references to documents, not the file contents.

Was das Paket leistet und was nicht ​

A register of business documents: folders, document records with kind, owner, expiry and confidentiality, and a draft, published and archived flow. It stores references and, when you upload one, the file itself. Confidentiality is enforced: confidential and restricted documents are visible only to their owner and to documents.manager; public and internal ones to everyone who may read documents.

Moduldetails ​

  • Version: 0.3.0
  • Autor: SpaceCorps
  • Lizenz: AGPL-3.0-or-later
  • Benötigt Kern: ^0.2 (aktuell ist Kern 0.2.0)
  • Reifegrad: Beta
  • Kategorien: Produktivität

Modelle ​

documents_folder ​

A folder that groups documents

Lesegruppe: documents.user. Schreibgruppe: documents.manager.

FeldArtDatenklassePersonenbezogene DatenGruppeAgenten sehenBeschreibung
nametextnoneneindocuments.userim KlartextFolder name
parent_idref → documents_foldernoneneindocuments.userim KlartextThe folder this one sits in
descriptionlongtextnoneneindocuments.userim KlartextWhat belongs in the folder

documents_document ​

A contract, policy, certificate or other document on record

Lesegruppe: documents.user. Schreibgruppe: documents.user.

FeldArtDatenklassePersonenbezogene DatenGruppeAgenten sehenBeschreibung
titletextnoneneindocuments.userim KlartextDocument title
folder_idref → documents_foldernoneneindocuments.userim KlartextThe folder the document is filed in
kindselect (contract, invoice, policy, report, certificate, other)noneneindocuments.userim KlartextType of document: contract, invoice, policy, report, certificate, other
confidentialityselect (public, internal, confidential, restricted)noneneindocuments.userim KlartextWho may see it: public and internal documents everyone who may read documents, confidential and restricted ones only the owner and documents.manager
open_to_allboolnoneneindocuments.userim KlartextWhether everyone who may read documents can see this one: true for public and internal documents
ownertextinternaljadocuments.usermaskiertUser name of the person responsible for the document; the person who creates it unless set otherwise. Owners see their confidential documents
referencetextnoneneindocuments.userim KlartextReference number, for example a contract number
locationtextnoneneindocuments.userim KlartextWhere the file is stored, such as a link or archive box
attachmentfileinternalneindocuments.userim KlartextThe document file itself (PDF, image, text, spreadsheet or office document, up to 25 MiB); served only as a download to people who may read the record
expires_ondatenoneneindocuments.userim KlartextDate after which the document is no longer valid (YYYY-MM-DD)
summarylongtextnoneneindocuments.userim KlartextWhat the document says, in a few lines
stateselect (draft, published, archived)noneneindocuments.userim KlartextDocument status: draft, published, archived

Workflows ​

documents_document ​

AktionBewegtWer sie ausführen darfFreigabe
documents_document.publishstate: draft → publisheddocuments.usernein
documents_document.archivestate: published → archiveddocuments.managernein

Berechtigungsgruppen ​

Von dieser App verwendete Gruppen:

  • documents.manager
  • documents.user

Freigabeschritte ​

Kein Schritt dieser App braucht eine Freigabe, abgesehen vom Löschen von Datensätzen.

Was Agenten tun können und was nicht ​

Ein Agent kann Datensätze dieser App lesen, durchsuchen, anlegen und aktualisieren sowie Aktionen ausführen, die keine Freigabe brauchen, und zwar innerhalb der Berechtigungsgruppen seines Tokens.

Diese Schritte kann er nur vorschlagen, und eine Person muss sie freigeben: documents_folder.delete, documents_document.delete.

Personenbezogene Daten werden als Platzhalter maskiert: documents_document.owner.

Abhängigkeiten ​

Keine.

Installation ​

Installieren Sie sie in der App Customize (Marktplatz) oder über die Kommandozeile:

bash
obop modules install-from documents

Erfordert eine Datenbank und Administratorrechte.

Selbst bauen ​

Der Modulleitfaden zeigt, wie Apps wie diese geschrieben werden