Create specific resources

About resources

A privilege is a set of Actions that are authorized on a Resource when some Conditions are met. The Datastore resources, actions and properties used in the conditions must be published in PassPort before you start creating privileges.

Phase 1 – Installation

During installation, the Datastore definition file is imported into PassPort. This file contains generic resources that do not depend on your application.

Phase 2 – Customization

Once you have started to configure your application, created Object Types and Editors, you may want to define privileges based on your application data.

Example

You want to authorize:

  • Corrector1 user to only view Collections that have the Source property set to Appli1.
  • Corrector2 user to only access Collections hat have the Source property set to Appli2.

The Source property is specific to the type of collection.

Custom resources are created in the following cases:

  • Collection Type: A custom collection type resource is created if you define Authorizable properties on the Collection Type.
  • Object Type: A custom Object Type resource is created if you define Authorizable properties on the Object Type (AIS_BDI configuration type). The Object Type must have been previously configured in the Designer as a Security Object Type in the Space definition.
  • Collection Editor: A custom Collection Editor resource is created if:
    • You set the Collection Editor as specific in the Collection Editor Selection table.
    • It references a Collection Type that has an authorizable property.
  • Object Editor: A custom Collection Editor resource will be created if:
    • You set the Collection Editor as specific in the Object Editor Selection table.
    • It references a Object Type that has an authorizable property.

You must publish your custom resources in PassPort before they become available in the PassPort privilege editor:

  1. Generate the custom PassPort definition file (CSD) via the exportPassportCSD script.
  2. Import the CSD file using the PassPort user interface.

Related Links