Documents

Tiedostot ja kansiot

MarkkinapaikkaSisältö ja asiakirjatVersio 0.3.0AGPL-3.0-or-latermanifest

Mihin se on tarkoitettu ​

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

Mitä paketti tekee ja mitä ei ​

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.

Moduulin tiedot ​

  • Versio: 0.3.0
  • Tekijä: SpaceCorps
  • Lisenssi: AGPL-3.0-or-later
  • Vaatii ytimen: ^0.2 (nykyinen ydin on 0.2.0)
  • Kypsyys: Beta
  • Luokat: Tuottavuus

Mallit ​

documents_folder ​

A folder that groups documents

Lukuryhmä: documents.user. Kirjoitusryhmä: documents.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
nametextnoneeidocuments.userselkoisenaFolder name
parent_idref → documents_foldernoneeidocuments.userselkoisenaThe folder this one sits in
descriptionlongtextnoneeidocuments.userselkoisenaWhat belongs in the folder

documents_document ​

A contract, policy, certificate or other document on record

Lukuryhmä: documents.user. Kirjoitusryhmä: documents.user.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
titletextnoneeidocuments.userselkoisenaDocument title
folder_idref → documents_foldernoneeidocuments.userselkoisenaThe folder the document is filed in
kindselect (contract, invoice, policy, report, certificate, other)noneeidocuments.userselkoisenaType of document: contract, invoice, policy, report, certificate, other
confidentialityselect (public, internal, confidential, restricted)noneeidocuments.userselkoisenaWho may see it: public and internal documents everyone who may read documents, confidential and restricted ones only the owner and documents.manager
open_to_allboolnoneeidocuments.userselkoisenaWhether everyone who may read documents can see this one: true for public and internal documents
ownertextinternalkyllädocuments.usermaskattuUser name of the person responsible for the document; the person who creates it unless set otherwise. Owners see their confidential documents
referencetextnoneeidocuments.userselkoisenaReference number, for example a contract number
locationtextnoneeidocuments.userselkoisenaWhere the file is stored, such as a link or archive box
attachmentfileinternaleidocuments.userselkoisenaThe 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_ondatenoneeidocuments.userselkoisenaDate after which the document is no longer valid (YYYY-MM-DD)
summarylongtextnoneeidocuments.userselkoisenaWhat the document says, in a few lines
stateselect (draft, published, archived)noneeidocuments.userselkoisenaDocument status: draft, published, archived

Työnkulut ​

documents_document ​

ToimintoSiirtääKuka voi suorittaaHyväksyntä
documents_document.publishstate: draft → publisheddocuments.userei
documents_document.archivestate: published → archiveddocuments.managerei

Käyttöoikeusryhmät ​

Tämän sovelluksen käyttämät ryhmät:

  • documents.manager
  • documents.user

Hyväksyntävaiheet ​

Mikään tämän sovelluksen vaihe ei vaadi hyväksyntää tietueiden poistamista lukuun ottamatta.

Mitä agentit voivat ja eivät voi tehdä ​

Agentti voi lukea, hakea, luoda ja päivittää tämän sovelluksen tietueita sekä suorittaa toiminnot, jotka eivät vaadi hyväksyntää, tunnisteensa käyttöoikeusryhmien rajoissa.

Se voi vain ehdottaa näitä vaiheita, ja ihmisen on hyväksyttävä ne: documents_folder.delete, documents_document.delete.

Henkilötiedot maskataan paikkamerkeiksi: documents_document.owner.

Riippuvuudet ​

Ei ole.

Asennus ​

Asenna se Customize-sovelluksesta (Marketplace) tai komentoriviltä:

bash
obop modules install-from documents

Vaatii tietokannan ja ylläpitäjän oikeudet.

Tee oma ​

Moduulioppaassa näytetään, miten tällaiset sovellukset kirjoitetaan