Releases

ZAZA Enterprise

1.1.106

js-zaza-sdk

0.1.49

Structured data access defaults

By default these are the access rights of project bags, depending on the view:

  • Owner view: full access to structured data for bag specific tables. There's no access here to global project tables;

  • Download view: has only read-only access to structured data for bag specific tables. There's no access here to global project tables;

  • Upload/download view: no access to any table.

SDK can set structured data access upon table creation

When you create a structured data table via the SDK, you can define the access rights:

project.newObject(<tableName>, <isList - true/false>, <isGlobal - true/false>, <keyColumnName>, <access parameter>)
where access can be:

access = {

"read": [Zaza.BagType.Owner, Zaza.BagType.Download, Zaza.BagType.UploadDownload, Zaza.BagType.Upload],

"insert": [Zaza.BagType.Owner],
"update": [Zaza.BagType.Owner],
"delete": [Zaza.BagType.Owner]
}

Currently it is not yet possible to:

  • Change the table access rights afterwards via the SDK;

  • Set the table access rights via the Admin UI.

Deleting structured data tables

When deleting a structured data table, it depends whether there is still data in the table on what will happen:

  • With no data in the table, the table is hard-deleted: you could immediately recreate a table with the same name as the hard-deleted table;

  • With still data in the table, the table is soft-deleted: this to prevent accidental deletes. Currently you cannot yet "undo" the delete; if this is needed, please contact us.
    Because the table is soft-deleted, you cannot create another table with the same name (you will get an error message).

Did this answer your question?