Skip to content

How to prepare to delegate the responsibility of a dataset during metadata creation

David Schöne edited this page Jul 6, 2021 · 2 revisions

Goal

When a user is entering another user in the metadata of a dataset, this user should get rights automatically. e.g. in the metadata form, there is an owner defined. Entered users should get owner rights.


Introduction

This only works with registered users!


Workflow

Party Management

In the workspace/BAM folder, there is a PartyType.xml document that describes the parties in the system. (e.g. person, institute, project, group). The PartyType.xml (worspace/BAM/PartyType.xml) need to have three important nodes.

  1. Party type for a person in the system Party type person

  2. there must be a dataset party type Party type dataset

  3. and a party relationship type

Party relationship type owner

Mapping

For each metadata structure there must be a mapping between the person or person type in the metadata structure with the party type for a person in the system. For the initial metadata structures the mapping exists but for a new one, the mapping needs to be done.

How to Map

[Example for the ABCD Schema]

the basic person type in ABCD Schema is call MicroAgentP and the system person type from the party management is called Person.

[Screenshot Mapping Person and MicroAgentP]

in the system there is a relationship with the name owner. This relationship needs to map a person in the metadata structure but not to a type. e.g. In the ABCD Schema there is an owner node with a child called person and this person has an attribute full name.

[Screenshot of the metadata form where the owner is shown with the person node and the fullname attr]

[Example of a owner mapping]


Test

  1. Create a dataset with a metadata structure that is prepared with the mapping.
  2. Try to enter a name of a person into the name field of the owner.
  3. If there is a party in the system, then a autocomplete should have a selection of persons.
  4. Select one person form the autocomplete dropdown.
  5. Save the dataset

The user in the metadata form get the right that are defined in the PartyType.xml.

Clone this wiki locally